Hi,
I've tried searching around but couldn't find it anywhere. How can I print the page id, it's alias and hopefully the same two of the current page's parent? I have tried $gCms->variables['page_name'] but without any luck.
All this is related to my quest to avoid multiple templates =)
Thanks!
Page id, alias and parent variables?
- Oskar Rough
- Forum Members
- Posts: 40
- Joined: Tue Aug 26, 2008 9:45 pm
Re: Page id, alias and parent variables?
You don't say where: page template or menu templateOskar wrote: I've tried searching around but couldn't find it anywhere. How can I print the page id, it's alias and hopefully the same two of the current page's parent? I have tried $gCms->variables['page_name'] but without any luck.
Alby
- Oskar Rough
- Forum Members
- Posts: 40
- Joined: Tue Aug 26, 2008 9:45 pm
Re: Page id, alias and parent variables?
Sorry, it's the page template. And using the newest 1.5.3.alby wrote: You don't say where: page template or menu template
Alby
Re: Page id, alias and parent variables?
Then:Oskar wrote:Sorry, it's the page template. And using the newest 1.5.3.alby wrote: You don't say where: page template or menu template
Alby
page id: $content_id
alias: $page_alias
parent: you must use CGSimpleSmarty or build a UDT
Alby