Hey guys, i’m trying to figure out if something like
works? In this case it doesn’t work. I build a one pager (https://getkirby.com/docs/cookbook/content-structure/one-pager) and i want to be sure if someone changes the url or name of a page that the snippets are shown correctly. Because nobody can change the template for the snippets it is the safest option but every snippet is shown by its section id (<section id="cases">) so it has to be dynamically.
Okay thank you very much! Got it to work right now. I changed the ID from uid to template and your foreach loop helps me when i use href on a button e.g. from main page snippet cases.php where only 6 cases are shown to template cases.php where all cases are shown. Again, thank you very much! Saved my life