EllisLab text mark
Advanced Search
     
custom pagination location
Posted: 06 July 2012 02:06 PM   [ Ignore ]
Joined: 2011-02-18
196 posts

Can I place the “pagination” in a custom location other than above or below? I have next/previous buttons that are in divs outside the div containing the channel entries tag pair. There must be a way to do this that I haven’t seen on the wiki? Suggestions?

 
Posted: 06 July 2012 02:22 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2011-02-18
196 posts

I haven’t tried this yet but perhaps it would work to place an additional channel entries tag pair with only pagination and no other custom fields.

{exp:channel:entries channel="work"}

<p>By {name} on {comment_date format="%Y %m %d"}</p>
    
{paginate}
        {if previous_page}
            
<a href="{auto_path}">Previous</a> &nbsp;
        
{/if}
        {if next_page}
            
<a href="{auto_path}">Next</a>
        
{/if}
    {
/paginate}

{
/exp:channel:entries} 

 

 
Posted: 06 July 2012 02:35 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2011-02-18
196 posts

Doesn’t seem to work

 
Posted: 06 July 2012 02:45 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey thefifthlion,

Thank you for posting your question here on the ExpressionEngine forums.

Check this thread out. Using an Add-On you can use pagination outside of the tag pair.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 06 July 2012 02:55 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2011-02-18
196 posts

thanks Shane

 
Posted: 06 July 2012 05:23 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey thefifthlion,

My pleasure!

If you need anything else, please just let me know by opening a new thread.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade