Forum
perch navigation with custom sublink
I want to create some custom sub menu navigation (dynamically). but I don't want to modify level1.html file every time I want to add.
How can i supply sub menu <li> tag or print variable from session.
any help please?
I don't understand the question. Can you show us what you are trying to do including your code please?
This is how my level1.html looks like
I want to Spring 2016 <li> part to be dynamic, right now I have it as static
You could pass it into the template from the page. In the page you could source it from a content region.
https://docs.grabaperch.com/docs/templates/passing-variables-into-templates/
Drew,
I did pass using that link, but the HTML does not render well.
I am not sure what you mean by "In the page you could source it from a content region". ?
What do you mean by "the HTML does not render well" ?
"the HTML does not render well" means "it converts HTML into encoded so < converts to " or something similar for all html tags.
if there was a way to display "raw" variable, that would be perfect
Add
encode="false"
.that is exact magical piece of code I was looking for.
Thanks Drew