Forum
Perch Pages Navigation
Hi,
I am trying to use the following PHP statement:
<?php perch_pages_navigation(['template'=>'navigation.html']);?>
which is pointing to a .html template in the navigation folder of templates however it is outputting content no less than 12 times over so is there any reason for this?
That's a bit of a vague question...
How many pages does your site have?
Can you show us the navigation.html template?
What are you expecting to see?
Hi,
The .html template:
The script:
and css
I was expecting to be able to simply add content in the same way that Layouts work but this seems to not be the case in that there are no options which allow.
I'm being honest here - I have no idea what you're doing, but essentially
perch_pages_navigation
runs for each level of navigation and each page per level. I can't see anyperch:pages
tags, so I guess you shouldn't be usingperch_pages_navigation
, as I think you've also realised.Go watch the tutorial videos.