Zen Follower
- Join Date:
- Sep 2007
- Posts:
- 169
- Plugin Contributions:
- 0
VARIABLE / CONSTANT that displays page name?
What's the variable or constant that displays the name of the page?
Like main_page , product_info etc..
thanks!
Views: 1,156
Zen Follower
What's the variable or constant that displays the name of the page?
Like main_page , product_info etc..
thanks!
Sensei
Depends what you're trying to do with the information, and where ...
Zen Follower
I would like to build some swith / else if statements so that some of my menu items will appear on certain levels of the catalog.
Sensei
In v1.3.x, you can usually use $current_page_base to get the value of the "main_page=" setting on the URL. If you're trying to access it from inside a function/class you'll need to global that variable to access it.
Zen Follower
Thanks! I'll give it a shot!:clap:
Tell staff why this post should be reviewed.