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.

Playa Pagination

July 23, 2011 6:54pm

Subscribe [2]
  • #1 / Jul 23, 2011 6:54pm

    upressplay

    18 posts

    I created an Entry that allows the admin to add video entries to 5 different playa fields. I want each output to paginate the entries from each playa field. I’ve tried a variety of different configurations to get it to work. It says in the playa documentation that pagination is disabled by default and that you have to override the disable. I might not be overriding properly. I posted a question in Pixel & Tonic’s forum but haven’t heard back.

    http://help.pixelandtonic.com/brandonkelly/topics/playa_pagination

    Any ideas on what I’m doing wrong? The following are two examples.

    Example 1:

    {exp:channel:entries channel="videos" disable="member_data|trackbacks"}  
        {exp:playa:children field="commercials" limit="2"  paginate="both"}
            <div class="video_content">
                {exp:imgsizer:size src="{video_thumb}" auto="160"} 
                      <a href="/videos/{url_title}" target="_self" rel="noopener">{sized}</a>
                {/exp:imgsizer:size}
                       <span class="title">{title}</span><br>
                       <span class="copy">
                        {exp:char_limit total="140"}
                            {video_description}
                        {/exp:char_limit}
                    </span><br>
                       <a href="http://video/{url_title}" target="_self" rel="noopener">Click Here</a>
               </div>
            {parent:title}
            {paginate}  
            <div id="page_nav">
            Page {current_page} of {total_pages} : {pagination_links}
            </div> 
            {/paginate}    
        {/exp:playa:children}
    {/exp:channel:entries}

     
    Example 2:

    {exp:channel:entries channel="videos"}  
        {commercials  paginate="bottom" disable="member_data|trackbacks" limit="2"}
        <div class="video_content">
            {exp:imgsizer:size src="{video_thumb}" auto="160"} 
            <a href="/videos/{url_title}" target="_self" rel="noopener">{sized}</a>
            {/exp:imgsizer:size}
                   <span class="title">{title}</span><br>
                   <span class="copy">
                    {exp:char_limit total="140"}
                        {video_description}
                    {/exp:char_limit}
                </span><br>
                   <a href="http://video/{url_title}" target="_self" rel="noopener">Click Here</a>
           </div>
    
        {paginate}  
        <div id="page_nav">
        Page {current_page} of {total_pages} : {pagination_links}
        </div> 
        {/paginate}
        {/commercials}
    {/exp:channel:entries}

    Playa ThreadPlaya Thread

    [Mod Edit: Moved to the Community Help forum]

  • #2 / Oct 17, 2011 9:58am

    Jonathan Morgan

    51 posts

    Hi there,

    Did you find a solution to this yet?
    I’m trying to do the exact same thing.

    Cheers.

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

ExpressionEngine News!

#eecms, #events, #releases