Page list teaser and pagination
Permalink Browser Info Environment
I have set display to 5 and pagination if more pages are available but no pagination is showing
Type: | Discussion |
---|---|
Status: | New |
Strange... Have you modified the template (view.php) file at all? Can you verify that there are actually more than 5 pages to list? Try setting the number to 2 and see if that helps (just temporarily as a test).
No mods to template.
yes there are more than 5 pages.
Already tried that.
pagination works when teasers template is not selected.
http://mowhost.cynergic.net/index.php/our-artists/...
thanks
Colin
yes there are more than 5 pages.
Already tried that.
pagination works when teasers template is not selected.
http://mowhost.cynergic.net/index.php/our-artists/...
thanks
Colin
I have tried this block on a new page. I have tried various combinations of settings but can't get the pagination happening on this site with the teasers template. I have looked at the code and can't see anything obvious. It works fine on another site that I tested it on.
Any help would be apreciated as the site is supposed to be going live next week.
Colin
Any help would be apreciated as the site is supposed to be going live next week.
Colin
Huh... I'm totally stumped. I tested out the Page List Teasers on a site of my own and the pagination appears to be working fine under various different circumstances. It's strange that it works with the regular template but not this custom template -- because the pagination code is exactly the same in both.
And what's even stranger is that the HTML for the pagination controls is getting placed on your page, but there are just no numbers or "previous"/"next" links in it -- and I have no idea how that could be happening.
I'm wondering if something got messed up in the custom template itself -- can you find this file on your server:
ZIP it up and then post it here to the forum so I can take a look?
And what's even stranger is that the HTML for the pagination controls is getting placed on your page, but there are just no numbers or "previous"/"next" links in it -- and I have no idea how that could be happening.
I'm wondering if something got messed up in the custom template itself -- can you find this file on your server:
SITEROOT/packages/page_list_teasers/blocks/page_list/templates/teasers.php
ZIP it up and then post it here to the forum so I can take a look?
Here is the file. I have compared it to one that works and cant see any thing wrong.
Colin
Colin
Yeah, you're right -- I don't see anything different either. I wish I knew what the problem was but I have absolutely no clue. You might want to try checking the error logs (both the Concrete5 one which is in Dashboard -> Reports -> Logs, and your server's PHP error log, which is different for every web host so you'll have to ask their tech support how to access that if you don't know already).
-Jordan
-Jordan
I got the following from the error log
Fatal error: Call to a member function getAreaHandle() on a non-object in /home/mowhost/public_html/packages/page_list_teasers/helpers/page_list_teasers.php on line 79
Fatal error: Call to a member function getAreaHandle() on a non-object in /home/mowhost/public_html/packages/page_list_teasers/helpers/page_list_teasers.php on line 79
Hmm... still not sure what that means. I did just notice that only 4 of the 5 people are showing up on the page on your site. I wonder if there's something broken on the 5th person's page? Can you go to your sitemap and move that 5th page (Gabriella Dolby) down lower in the order so it isn't in the first 5 items? Then see if the new 5th item shows up. If it does, then there's some kind of problem with one of the blocks on that person's page. Also try this experiment with the 4th page as well (moving it down lower than the 6th position so it doesn't show up in the first 5 pagination results).
I have pagination set to 4 with an alpha sort as per the side bar page list. I have played with the sort settings with no luck.
I am running out of hair.
Colin
I am running out of hair.
Colin
I'm really sorry but I have no idea why it's not working.
same page with no teaser template selected
I cam across this when using page_list_teasers in custom templates.
I think the issue is related to the RSS settings and a block check that needs verifying before running the method to get the rss url
The line 79
Particularly when i copied a block with a page_list_teaser i found this occured.
So i changed it to:
I think the issue is related to the RSS settings and a block check that needs verifying before running the method to get the rss url
The line 79
//Modification of code found in concrete/blocks/page_list/controller.php // This function forces the use of our custom RSS "tools" file which provides real content excerpts. function getRssUrl($b){ $uh = Loader::helper('concrete/urls'); if(!$b) return ''; $btID = $b->getBlockTypeID(); $bt = BlockType::getByID($btID); $c = $b->getBlockCollectionObject(); $a = $b->getBlockAreaObject(); $rssUrl = $uh->getToolsURL('rss', 'page_list_teasers')."?bID=".$b->getBlockID()."&cID=".$c->getCollectionID()."&arHandle=" . $a->getAreaHandle(); return $rssUrl; }
Particularly when i copied a block with a page_list_teaser i found this occured.
So i changed it to:
//Modification of code found in concrete/blocks/page_list/controller.php // This function forces the use of our custom RSS "tools" file which provides real content excerpts. function getRssUrl($b){ $uh = Loader::helper('concrete/urls'); if(!$b) return ''; $btID = $b->getBlockTypeID(); $bt = BlockType::getByID($btID); $c = $b->getBlockCollectionObject(); $a = $b->getBlockAreaObject(); if($a){ $rssUrl = $uh->getToolsURL('rss', 'page_list_teasers')."?bID=".$b->getBlockID()."&cID=".$c->getCollectionID()."&arHandle=" . $a->getAreaHandle(); return $rssUrl; } }