Hi,
Sorry for such a basic question but my php skills are limited.
I used a snippet for fetching children of a page in the page template.
But I would like to change only 1 line in this snippet (a class actually) depending on which page (uid) it has been called from
I am using something like
<?php if($page->uid() == 'books'): ?>
do ...
<?php if($page->uid() == 'dossiers'): ?>
do...
Is there a simpler way to get the same result or to have the class variable with uid ?
Thank you for your help
Gérard