Forums / Setup & design / Code to insert the name of the object

Code to insert the name of the object

Author Message

David Barker

Sunday 24 August 2003 9:21:43 am

Hi,
I'm sorry if this is really simple but I can't find it anywhere! All I want is the code I would place in a template to print just the name of the object the user is looking at!

Thanks,
David

Jo Henrik Endrerud

Sunday 24 August 2003 10:55:21 am

You can use {$node.name} to print out the name of the object placed on the current node. To be able to see everything you can print/use on each node you can type {$node|attribute(show)} This wil print a list of every attribute on $node (this can also be used on other objects

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no