kolber / stacey

Cheap & easy content management
http://staceyapp.com
MIT License
1.04k stars 131 forks source link

Looping Siblings #144

Open oliveryork opened 9 years ago

oliveryork commented 9 years ago

I recently upgraded to 3.0 and I'm discovering that when using next_sibling on the last child page, it returns nothing. Previously in 2.3, it looped back around to the first child. Does anyone know any way to get this functionality back?

pbatts commented 9 years ago

This functionality is not available in 3.0. You can hide empty "Next project" and "Previous project" links on the last and first project pages. Here is a link. https://github.com/kolber/Stacey-Snippets/wiki/Hiding-Empty-Next-project-and-Previous-project-links

oliveryork commented 9 years ago

Yeah that's what I'm using at the moment.

I did like the way it looped around though and I was trying to recreate that functionality with twig filters. Seems the current version of Stacey hasn't upgraded to a newer twig version which has the filters I need for that.

desbest commented 4 years ago

Do you still need help with this?

Sija commented 4 years ago

@desbest Nice timing, just ~5 yrs l8r... :D

oliveryork commented 4 years ago

Haha, as a matter of fact I don’t need help with this anymore. Got too much time on your hands because of the rona?