Page id, alias and parent variables?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Oskar Rough
Forum Members
Forum Members
Posts: 40
Joined: Tue Aug 26, 2008 9:45 pm

Page id, alias and parent variables?

Post by Oskar Rough »

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!
alby

Re: Page id, alias and parent variables?

Post by alby »

Oskar 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.
You don't say where: page template or menu template

Alby
User avatar
Oskar Rough
Forum Members
Forum Members
Posts: 40
Joined: Tue Aug 26, 2008 9:45 pm

Re: Page id, alias and parent variables?

Post by Oskar Rough »

alby wrote: You don't say where: page template or menu template
Alby
Sorry, it's the page template. And using the newest 1.5.3.
alby

Re: Page id, alias and parent variables?

Post by alby »

Oskar wrote:
alby wrote: You don't say where: page template or menu template
Alby
Sorry, it's the page template. And using the newest 1.5.3.
Then:
page id: $content_id
alias: $page_alias
parent: you must use CGSimpleSmarty or build a UDT

Alby
Post Reply

Return to “CMSMS Core”