Module

Archived
Forum
(read-only)

Structure Channel

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Mark Croxton

     

auto_path returning EE pagination, pagination links has no ?

Bug Report

Rob Hodges
Rob Hodges

Hi Mark,

Lovely little add-on here, unfortunately I’m getting an issue with it. I’m running EE 2.5.5 and Structure 3.3.8 (with Freebie) as well as the latest version of Structure Channel from your github.

I’m using the structure channel tags without pagination_param or paginate_base (not sure if these are required?)

{pagination_links} renders the URLs like this: http://www.site.com/blog&page=1

{auto_path} renders the URLs like this: http://www.site.com/blog/P10 etc

Any ideas?

Thanks,

Rob

Rob Hodges
# 1
Rob Hodges

Hm. Looks like the old {related_entries} tag doesn’t work either. Think I’ll have to find another solution for this scenario!

Mark Croxton
# 2
Developer
Mark Croxton

You do need to set a pagination_base - see the example on the main add-on page. It doesn’t add the ? by default because it makes no assumptions about what you want in your query string. I don’t think the autopath will work as it’s not part of CI’s pagination class.

Rob Hodges
# 3
Rob Hodges

Aha. Thanks for the reply. You might want to take the auto_path bit out of the example and say the base is req. in the notes when you get a chance. Still unsure why relationships don’t work though!

Anyway, I’ll work it out somehow :)

Thanks,
Rob