page / page_id / page_name / page_alias

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
zims
Forum Members
Forum Members
Posts: 13
Joined: Mon Mar 24, 2008 8:26 pm

page / page_id / page_name / page_alias

Post by zims »

Hello,

I'm trying to do some page-specific stuff in one of my templates. When I do a {get_template_vars}, I always get a list of four page-related variables that contain the same thing:
page = test
page_id = test
page_name = test
page_alias = test
Why are there four vars, and what exactly are the differences among them? Which one should I use?

Thank you,

zims
Peciura

Re: page / page_id / page_name / page_alias

Post by Peciura »

It does not look like there is any difference among them. I would use {$page_alias} because of it's accurate name. I would also consider using {$content_id}.
Post Reply

Return to “CMSMS Core”