paging not working..

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

paging not working..

Postby rabbeltje » Mon Feb 16, 2015 2:38 pm

It's been a while since I made a new site using pivotX, so I may be a little rusty... Anyway: I can't get the [[ paging ]] to work. I've included the following code:

Code: Select all
<p class="entrynavigation"> 
[[ paging action='prev' ]] | 
[[ paging action='curr' ]] | 
[[ paging action='next' ]] 
</p>


The subweblog I am using this code for has a setting to display 5 entries on the frontpage. I have 9 entries by now if I am correct, so there SHOULD be a link to show more entries. However, what it says at the bottom of the page is:

Toon berichten 1-9 van 9

(Show entries 1-9 out of 9).

What am I doing wrong...? Site is located here: http://www.rabbeltje.nl

edit: it doesn't work with the digg-style either by the way
User avatar
rabbeltje
 
Posts: 358
Joined: Mon Aug 25, 2008 11:54 am
Location: Neerbeek, The Netherlands

Re: paging not working..

Postby Harm10 » Fri Feb 20, 2015 4:53 pm

Like the pager shows it is set to show 9 entries.
So are the settings for the number of entries in your subweblog tag or in the settings for the weblog in the dashboard?
Or maybe those settings are not in sync?
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: paging not working..

Postby rabbeltje » Fri Feb 20, 2015 6:42 pm

this is the code from my template:

Code: Select all
      <!-- begin of weblog 'standard' -->
         [[ subweblog name="standard" ]][[ literal ]]
            <div class="entry">
                  
               <h2><a href="[[ link hrefonly=1 ]]">[[ title ]]</a></h2>
               
               [[ introduction ]]
               <p>[[ more ]]</p>

               <div class="meta" style='clear:both;'>
                  [[ date format='%day% %monthname% %year%' ]] |
                  [[ category link=true ]]
                  [[ if ($entry.allow_comments == 1) ]]
                  | [[commentlink]]
                  [[ /if ]]
                  | [[ wzupshow]]
               </div>
            </div>
         
               [[ /literal ]][[ /subweblog ]]

               <!-- end of weblog 'standard' -->

               <p class="entrynavigation"> 
                  [[ paging action='prev' ]] | 
                  [[ paging action='curr' ]] | 
                  [[ paging action='next' ]] 
               </p>


These are the settings in my PivotX-backend:

Image

so it seems to me they match.

The three categories that are displayed have a total of 9 entries. Strangely enough, my frontpage DOES only show 5 entries, however the paging-section says it's showing 9. I'm stumped ;)

edit: I am going to ask a really stupid question... I don't suppose it has anything to do with me using .html-files instead of .tpl-files for my themes..? I've been using the same template files from an older version and I just noticed the newer version of pivotx uses tpl.
User avatar
rabbeltje
 
Posts: 358
Joined: Mon Aug 25, 2008 11:54 am
Location: Neerbeek, The Netherlands

Re: paging not working..

Postby Harm10 » Sat Feb 21, 2015 12:03 am

No it has nothing to do with html or tpl. That should normally work.

I see you have more weblogs on that same web page. My experience is that paging works better if you set the amount and categories on the subweblog tag itself.
You have to repeat that in the paging tag itself. See http://book.pivotx.net/index.php?page=app-b#anchor-paging
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: paging not working..

Postby rabbeltje » Sat Feb 21, 2015 9:57 am

thanks, that did the trick. I suppose I understand why the paging-tag might get confused when there are more subweblogs on one page... Glad to have it solved anyway!
User avatar
rabbeltje
 
Posts: 358
Joined: Mon Aug 25, 2008 11:54 am
Location: Neerbeek, The Netherlands

Re: paging not working..

Postby Harm10 » Sat Feb 21, 2015 10:51 am

Glad that it is solved. Paging is always a tricky part if you have more elements on a web page!
Nice website btw.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)


Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 7 guests

cron