Extension

Developer
Supported

EE 1
EE 2
Freebie

Back to this add-on's main page
View Other Add-ons From Doug Avery

     

You must be logged in to post.

Pagination Help - Structure+Freebie

Support Request

shift2design
shift2design

I’m fairly new to Structure, trying to use Freebie to get around some of its’ url quirks, but cannot seem to get pagination working. Here are my url’s, where “blog” is set to be the breaking term and “always parse pagination” is true:

blog (works)
blog/my-article-1 (works)
blog/my-article-2 (works)
blog/p2 (does not work, is essentially just blog index list overflow)

I will eventually also use blog/search/... and blog/archives/... type segments (all using a master template based off blog segment in structure). Am I going about all of this the wrong way?

Doug Avery
# 1
Developer
Doug Avery

Unfortunately, Freebie really can’t refix pagination in Structure. There are a few solutions here:

* Hand-code some PHP pagination stuff (I’ve done it, and don’t recommend it)
* Try Zoo Triggers: http://ee-zoo.com/add-ons/triggers
* Just don’t put any content that needs to be paginated into Structure. You always have the option to just use a traditional template setup for SOME content, while putting other content into Structure.

Cheers,
Doug

shift2design
# 2
shift2design

Ive always used a traditional template/template group setup and we have recently tried using Structure and I cant seem to get my arms around it properly. I was not aware I could use an EE template/group outside of it.

Doug Avery
# 3
Developer
Doug Avery

Yep, you can use them in parallel. Here’s a recommended method we’ve gone with:

* Make a template and a channel called “blog”
* Put your blog template code into this template. Test to make sure categories, pagination, etc work.
* Make a structure page called “Blog”, but give it a URI of something like “blog-entries-XXX”
* Declare it as a “Listing” for the “blog” channel

Now you have a blog that works, but that your users can also see when they’re in Structure. The downsides to this method:

* Your blog isn’t in Structure, so you’ll have to do a little work to make Structure features (getting the “current page”, breadcrumbs, including the blog in a nav) to work
* You’ll need to find a way exclude blog-entries-XXX from navs, the sitemap, etc. I usually just have a status called “Hidden” for this.

EE Surgery
# 4
EE Surgery

This is great add on and very handy.

Is there any possibility of getting it to work with pagination?

It does defeat the purpose a little of Structure however to then advise client to use traditional EE approach.

Thanks for this though, its great but pagination working would make it super great.

Doug Avery
# 5
Developer
Doug Avery

You might try out something like Zoo Triggers for that — I haven’t used it, but heard good things.

http://devot-ee.com/add-ons/zoo-triggers