ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

One pagination for two channels in the single template

June 01, 2011 11:23am

Subscribe [3]
  • #1 / Jun 01, 2011 11:23am

    Hello!
    I have a question. Is it possible to have one pagination for two channels in the single template ?

    Example which does not work correctly in my case. Pagination is only available for “body”, not for “summary”.

    {exp:channel:entries channel="news" limit="5" dynamic="off"  paginate="bottom"}
    {summary}
    {/exp:channel:entries}                            
    
    {exp:channel:entries channel="news" limit="5" dynamic="off" paginate="bottom"}
    {body}
    {paginate}
    {pagination_links}
    {/paginate}
    {/exp:channel:entries}
  • #2 / Jun 02, 2011 4:30am

    Any suggestions ?!

  • #3 / Jun 02, 2011 5:50am

    John Henry Donovan

    12339 posts

    Victor,

    No. Doing like you suggest will not work. The same first 5 summaries will appear on the second page of pagination. What are your intentions doing it this way? Maybe there is another way of looking at this

  • #4 / Jun 02, 2011 7:27am

    I have template with the following structure:

    <div id="left">
    <div>
    {I need to display 3 {summary} entries from channel NEWS}
    </div>
    </div>
    
    <div id="right">
    <div>
    {I need to display 3 {Body} entries from channel NEWS}
    </div>
    
    <div id="pagination">
    {PAGINATION CODE}
    </div>
    
    </div>

    I need to dynamically change the data in the left and right blocks when I use pagination.

  • #5 / Jun 02, 2011 3:33pm

    Brandon Jones

    5500 posts

    Hi Victor,

    Would a purely front-end solution work, where you pull in all the data but “paginate” through it using JavaScript? There are other ways to go about this, but it’s going to require some custom code either way. If you’d like I can move this over to Community Help for you.

  • #6 / Jun 02, 2011 4:33pm

    Hi Victor,
    If you’d like I can move this over to Community Help for you.

    Yes, please!

  • #7 / Jun 03, 2011 2:56pm

    Kevin Smith

    4784 posts

    Hey Victor–

    Got the thread moved over to Community Help so that you can get some community input on this one.

    Kevin

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases