stacey icon indicating copy to clipboard operation
stacey copied to clipboard

Looping Siblings

Open oliveryork opened this issue 9 years ago • 5 comments

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?

oliveryork avatar Nov 23 '15 14:11 oliveryork

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

pbatts avatar Nov 23 '15 17:11 pbatts

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.

oliveryork avatar Nov 26 '15 03:11 oliveryork

Do you still need help with this?

desbest avatar Apr 01 '20 12:04 desbest

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

Sija avatar Apr 01 '20 12:04 Sija

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?

oliveryork avatar Apr 01 '20 13:04 oliveryork