By ezichko on
hi:
i am currently learning about if statements.
i have the following in page.tpl
if ($page == 1):
print $name / print $title
endif;
what i want is to show the node author before the node title in the node page but this doesnt seem to work.
Also,
when a user clicks on a taxonomy term i want to put some text before it like
if ($page == taxonomy term page):
Tag / print $title
endif;
i dont know how to check for the term page anyway.
thanks for your help
Comments
As far as I know the $page
As far as I know the $page variable only shows, that a single node/page is displayed instead of a listing. If you want to get something deeper regarding what page you're on, then perhaps the arg(int) function is better:
I have no immediate idea though, how to get the author's name into the title :-(