Forum
Excluding current page from navigation output
Hello,
I am using the following to output navigation on my page:
<?php
perch_pages_navigation(array(
'from-path' => '/mypath',
'template' => 'mytemplate.html',
'hide-extensions' => true
));
?>
Now I would like to exclude the page that I am currently on, from the navigation, is this possible?
Mike
Hello Mike,
One option would be to exclude it in the template with conditional tags:
Thank you, Hussein. I was using
<perch:if exists="current_page">...</perch:else>..."
, but it was not working.not-exists
works.</perch:else>
should be<perch:else />
or<perch:else>