I’m still stuck with this one, can somebody help me please?
I’m not able to add a else statement for page collections-permanentes
that render the archives filter by tags…
<?php if ( ($p = page('productions') ) && $p->children()->unlisted()->isNotEmpty() ) {
snippet('fil_archives', ['productions' => $p->children()->unlisted()]);
}
else ($p->children()->is(collections-permanentes) ) {
snippet('fil_archives', ['productions' => $p->children()->filterBy('tags', 'collections', ',')])
} ?>