ProBlog - Pagination Problem
Permalink
Hi,
Been having issues with problog pagination on a custom single page and wondered if anyone could shed some light on the issue?
I have tried contacting the developer but although he gave me a great reply this is not working and now I can't get hold of him.
Sorry to cross post but I wanted to open this up to the community
http://www.concrete5.org/marketplace/addons/problog/questions-and-d...
Been having issues with problog pagination on a custom single page and wondered if anyone could shed some light on the issue?
I have tried contacting the developer but although he gave me a great reply this is not working and now I can't get hold of him.
Sorry to cross post but I wanted to open this up to the community
http://www.concrete5.org/marketplace/addons/problog/questions-and-d...

Still having issues with this, can anyone help?
If you have enabled full page caching, just try to disable it and clear your cache. Then try again. I'm having the same issue while ago and this tricks works for me. Maybe it will help you too.
Rony
Rony
Hi,
I have tried that and it didn't help the code ends up like this.
I have tried that and it didn't help the code ends up like this.
<div class="ccm-next-previous-wrapper"> <br> <div class="spacer"></div> </div>
Is the same shown for both logged in and non logged in situation?
Yes, nothing shows up.
I think that the page isn't pulling in the controller, is the code correct?
Still haven't have an answer, really bugging me now.
Did you take chadstrat's advice and try debugging? var_dump() and die() can go a long way in determining why something isn't behaving properly. If you need someone to help debug you can shoot me a PM and maybe we can work something out.
Edit: To be more clear I'm thinking that your problem may be related to the following:
or thereabouts... But going through and making sure thinks like that are getting set properly could go a long way in helping determine where your problem actually is.
Edit: To be more clear I'm thinking that your problem may be related to the following:
or thereabouts... But going through and making sure thinks like that are getting set properly could go a long way in helping determine where your problem actually is.
Yes tried debugging and all I get is null.
Thanks, I'll PM you
Thanks, I'll PM you
Ok, so I managed to get this riddle solved. And the answer is...... It appears that the code (at least the stuff I modified) doesn't handle sites that are using a relative path. In this case Concrete5 was installed to /folderx/ so when it went to try and find other cID's with a similar page path, it was trying to include the DIR_REL configuration variable in the query for the $shorthand variable. The following functions are what I came up with to fix the issue in this particular case:
special emphasis on the
public function getNextPost(){ global $c; $page_path = str_replace('/index.php','',Loader::helper('navigation')->getLinkToCollection($c)); $link = $c->getCollectionHandle(); $shortened = str_replace($link.'/','',$page_path); if(defined('DIR_REL')){ $shortened = str_replace(DIR_REL,'', $shortened); } $cID = $c->getCollectionID(); $db = Loader::db(); $q = "SELECT cID FROM PagePaths WHERE cID > $cID AND cPath LIKE '%$shortened%' ORDER BY cID ASC"; $ncID = $db->getOne($q); $np = Page::getByID($ncID); if($ncID){ return Loader::helper('navigation')->getLinkToCollection($np);
Viewing 15 lines of 34 lines. View entire code block.
special emphasis on the
if(defined('DIR_REL')){ $shortened = str_replace(DIR_REL,'', $shortened); }
Thank you exchangecore for your time and effort on that. I will add this change to the master. Next update should reflect that. Hopefully the core team fixes the darn nex/prev block and I can get rid of this.
Very sorry I have not had time to look into this more. I am away on vacation with my wife for our 15yr anniversary.
Apologies again for not being as accessible as I am normally.
ChadStrat
Very sorry I have not had time to look into this more. I am away on vacation with my wife for our 15yr anniversary.
Apologies again for not being as accessible as I am normally.
ChadStrat
Wow thank you so much for find a solution to this. I think I would have been there for ages and never thought of this. I really appreciate the time you have spent on this.
This is the reason I love Concrete5 we are all here to improve the code base.
Chad:
Hope you are having a good trip and thanks for you input.
This is the reason I love Concrete5 we are all here to improve the code base.
Chad:
Hope you are having a good trip and thanks for you input.