Template variable not taking effect?
Posted: Tue Jul 17, 2007 10:55 pm
I am running CMS 1.0.7 with PHP 5.2.1, MySQL 5.0.27, and Apache 1.3.37. So far CMS is installed and running perfectly (great software!).
I do have one issue. I am using pretty URLS per the instructions in the documentation and it's working fine. I'm using the template variable $page_name to selectively hide and show content in the sidebar of the site based on the current page being browsed.
For some reason I cannot read the vaule of $page_name when going to the url without a trailing directory (such as home). When I add the '/home/' the content appears.
This is wrong: http://maverick.webassetvault.com
This is right: http://maverick.webassetvault.com/home/
Does anyone know how I can fix this so that http://maverick.webassetvault.com shows the sidebar content? I'm confused since this is the same page.
I've got a variable dump turned on if it's helpful to anyone.
Thanks!
I do have one issue. I am using pretty URLS per the instructions in the documentation and it's working fine. I'm using the template variable $page_name to selectively hide and show content in the sidebar of the site based on the current page being browsed.
For some reason I cannot read the vaule of $page_name when going to the url without a trailing directory (such as home). When I add the '/home/' the content appears.
This is wrong: http://maverick.webassetvault.com
This is right: http://maverick.webassetvault.com/home/
Does anyone know how I can fix this so that http://maverick.webassetvault.com shows the sidebar content? I'm confused since this is the same page.
I've got a variable dump turned on if it's helpful to anyone.
Thanks!