When I add a new page from the admin panel it doesn't dynamically add to the navigation bar. I've had to go into the header.tpl file to manually enter it.
Two issues I'm having:
1. Is there a way to use smarty code for the ahref to the page?
2. For the if statement to set the page to active I only have the option of $pagename eq "page" for it work with a custom page. However I have more than one custom page so they are all showing as active. Is there a different variable I could use? I try writing in the page name I've assigned but it doesn't work.