Hi everyone. I鈥檓 trying to create an If that comprehends a page with an specific template and all its childs. Now I鈥檓 achieving this behavior with the following code, but is not a good solution.
<?php if ($page->template() == 'edici贸n' or $page->parent()->template() == 'edici贸n'): ?>
//code
<?php endif ?>
Anyone knows a better way to do this?
Thanks in advance.