Custom snippet and pagelist #7
Replies: 3 comments 2 replies
-
What version do you use? Is caching disabled? What does the snippet look like? |
Beta Was this translation helpful? Give feedback.
-
Hello Marc value 01 ). It works well in the single page but not appears when insert the page in a pagelist (based on skel.
Then, using shared variables in the snippet :
It looks well in the single page, but not in the pagelist… Thanks for helping :) |
Beta Was this translation helpful? Give feedback.
-
What do you want to achieve with that snippet? Why do want to set session variables in a loop? In general, pagelist snippets work very differently. You should not use the same snippet in a pagelist and in a snippet block. A pagelist snippet only renders the current page in a loop. It should not contain other logic. Take a look at the snippets that are included with the standard theme. |
Beta Was this translation helpful? Give feedback.
-
Hi Marc
I'm using a custom snippet in one of my pages.
This snippet looks good while I'm looking at the page preview.
But totaly disabled when the page is part of a pagelist.
It looks like the pagelist cannot support a custom snippet.
Sorry for my dirty english.
Thanks for helping :)
Beta Was this translation helpful? Give feedback.
All reactions