Page 1 of 1

page / page_id / page_name / page_alias

Posted: Tue Dec 08, 2009 8:53 pm
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

Re: page / page_id / page_name / page_alias

Posted: Wed Dec 09, 2009 9:14 am
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}.