Next previous entries?
Posted: 10 December 2009 12:37 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2009-12-10

Hi Andrew,
Does pagination work with this extension?  This is my weblog starter:

{exp:selecteditems name="ComplexFlute"}    
{exp
:weblog:entries weblog="{my_weblog}" entry_id="{selecteditems_id}" orderby="selecteditems" disable="member_data|trackbacks|categories|pagination" status="Published"

and then here is my pagination

         

<class="paginate">
                
{exp:weblog:next_entry weblog="{my_weblog}" status="Published"}<span class="nextPage"> <a href="{path=complex_flute/index}" title="Next page">{next_entry->title}</a></span>
                
{/exp:weblog:next_entry} 
                {exp
:weblog:prev_entry weblog="{my_weblog}" status="Published"}
                
<span class="previousPage"><a href="{path=complex_flute/index}" title="Previous page">{prev_entry->title}</a></span>
                
{/exp:weblog:prev_entry}  
                
</p

But pagination doesn’t seem to work - reads order by date instead.

Thanks

Profile
 
 
Posted: 10 December 2009 02:09 AM   [ Ignore ]   [ # 1 ]  
Administrator
RankRankRankRank
Total Posts:  179
Joined  2006-04-12

If you are using EE 1.6.5+ you can use a different (better) method to display the selected entries.

It is explained a little more here: http://brandnewbox.co.uk/articles/details/selected_items_and_expressionengine_165/ and should give you access to all the standard weblog tag variables.

Andrew

Profile
 
 
Posted: 11 December 2009 10:50 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  2
Joined  2009-12-10

Hi Andrew. Thanks for sending that link, I hadn’t seen that page because the link to it from the original product post here http://brandnewbox.co.uk/products/details/selected_items/ is camoflaged as body text*!

I’ve tried using the new updated code for my selected items but it still doesn’t make the next/previous entries links work. Looking back at the documentation for those it looks like they only take you between entries according to their date, so unless you did some seriously clever customisation I’m presuming they will not follow the Selected Items ordering.

So I’ve just stuck with setting the dates of this group of entries to get my order. Thanks for the Selected Items extension though, it is very useful - much better than having to ask clients to set earlier/later dates to change ordering!

———
*Looking closer again, I see there is a slightly different colour on the links but you might want to bump up the difference between this colour and the body text because I really didn’t notice the links.  Or use the background colour style like you do on the download link, I like that approach and you can’t miss it. Sorry - don’t mean to criticize - just trying to offer some useful user-feedback :-)

Profile
 
 
Posted: 12 December 2009 09:16 PM   [ Ignore ]   [ # 3 ]  
Administrator
RankRankRankRank
Total Posts:  179
Joined  2006-04-12

Hi Emily,

Thanks for the reply. You’re right about the next/previous links - I’d forgotten about that, sorry…

Thanks too for the comment about the link colour - I’ll look into fixing that.

Cheers,
Andrew

Profile