By selwynpolit on
Hi folks,
can anyone tell me how I can tell what page is being displayed from within page.tpl.php?
thanks
Selwyn
Hi folks,
can anyone tell me how I can tell what page is being displayed from within page.tpl.php?
thanks
Selwyn
Comments
=-=
The front page.
front page?
It seems like this script gets run every time a page is displayed, not only the front page.
Selwyn Polit
https://www.drupalatyourfingertips.com/
That's funny.
Do you mean what node type is being displayed? Can add something like this to the head area:
Then view source.
page title
Sort of. If the page "about" is being displayed in this pass through page.tpl.php, then I want to do something. If the page "mission" is being displayed then I want to do something different. It looks like I could use $title. Is there perhaps a better way, or is that the proscribed way?
thanks for your help.
Selwyn
Well, I got it... If anyone is interested, this is what I did (with help) ...
This was all about making graphic menus sticky..
Selwyn Polit
https://www.drupalatyourfingertips.com/