I want to display the tag category of nodes before the title, the title field is unavailable in interface, is there a way to do that in node.tpl.php or page.tpl.php (I won't install another module like ds suite just for this purpose). PS: I want to do this everywhere node is displayed.
You could:
if(arg(0)!='node'):
if ($title ):
print $title;
endif;
endif;
//print title only if i am not on node pages
print $node->title anywhere you like in your node.tpl.phpThere other ways to do this in a custom module which sound more efficient, but if this is a single minor task, i guess editing your tpls is a good solution
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With