Blog Paging Sequence - how should it work

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/13/2011 10:57:14 AM
Gravatar
Total Posts 133
J

Blog Paging Sequence - how should it work

Hi

I am using a blog module and trying to understand how the next/prev sequences are controlled.

Currently I have 9 posts in the blog but 2 of them never show up in the next prev sequence even though they are listed on the main blog page.

Am I missing some setting?

 

J

 

9/13/2011 11:15:18 AM
Gravatar
Total Posts 18439

Re: Blog Paging Sequence - how should it work

They should show up, is it a public site where I can see it?

Can you reproduce it on the demo site?

Best,

Joe

ps moved this thread from the Developer Forums since it is not a question about  working with the source code.

9/13/2011 11:27:12 AM
Gravatar
Total Posts 133
J

Re: Blog Paging Sequence - how should it work

Hi Joe

The site is on our development/staging server which is restricted by IP on the firewall - if you can let me have your external IP I can add you to the access list.

Ah I noticed it had vanished - while I was re-editing it! Sorry about that.

What got lost was further testing reveals that whether going forward or backwards 2 are missing BUT they not the same 2 one will only show going forward and another going back - th eonly thing I can think is it is to do with having the same start date set as dd/mm/yyyy entered manuall so hh:mm all 00:00 - will try to fix by frigging the dates. This is testing prior to trying to import a whole load of posts from an existing site so I was trying to get a better understanding of what is needed.

 

John (entity formally known as thefatman)

9/13/2011 11:32:16 AM
Gravatar
Total Posts 133
J

Re: Blog Paging Sequence - how should it work

Ha! that was it - you cannot have 3 posts with identical start dates - 2 is fine but if 3 the 3rd never shows hence the different results going forward and going back. Will fix my imports to make the start datetimes unique.

Cheers

John

9/16/2011 8:59:36 AM
Gravatar
Total Posts 133
J

Re: Blog Paging Sequence - how should it work

Have reproduced this on the demo site - see 3 posts John Test 1,2 3 - try the next prev links. It seems to be caused by having the exact same date set on the post - not normal but I think it should cope with that

Cheers

J

9/16/2011 9:25:53 AM
Gravatar
Total Posts 18439

Re: Blog Paging Sequence - how should it work

Hi John,

Without the dates being different at least by a second then there really is no previous or next post. Conceptually posts that are at the exact same time are not previous or next to each other. There is no way to find the previous or next post if we can't base it on the publication date being less than or greater than the current post since that is what the sequence is based on. Using the UI this would not happen unless you do it on purpose. If you are importing posts you should factor this in and adjust the times during import so they are not exactly the same.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.