Links to next/previous entry and two posts at same time

Creating and modifying plugins.
Post Reply
FF
Regular
Posts: 18
Joined: Fri Feb 02, 2007 11:56 pm

Links to next/previous entry and two posts at same time

Post by FF »

Hya,

Today I posted two entries with exact the same time (scheduled publication).
The 'Links to next/previous entry'-plugin doesn't show them next to eachother, while they have different numbers.

http://www.xarno.nl/dagboek/index.php?/ ... htend.html
http://www.xarno.nl/dagboek/index.php?/ ... htend.html

at http://www.xarno.nl/dagboek/ entry 145 is posted above 146, I thought the latest number would be on top. Maybe this is the problem?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Links to next/previous entry and two posts at same time

Post by garvinhicking »

Hi!

Actually, the pagination plugin does not use the Entry IDs, but the entry's timestamp. If they are exactly the same, then the pagination plugin uses the first entry as the one. In your case this will make trouble. I suggest you to never publish entries on exactly the same timestamp; at least the second should vary, but sadly the second is not editable in the default s9y backend.

So I can sadly only suggest you to change the minute the two entries are posted in.

I don't know how the plugin could be recoded so that it would account for entry's timestamp AND the entry id. That would require at least one additional SQL lookup, making it "cost" a lot more to execute the plugin...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply