Monday 05 November 2007 4:19:12 am
I have a template for a custom node where I need to load locale specific graphics (which contains locale specific text). I have my graphics in folders representing the site access ("images/nor/*" and "images/eng/*" in my custom design). In a page layout I can use:
{def $locale = $access_type.name}
to do this. (ref http://ez.no/doc/ez_publish/technical_manual/3_10/templates/the_pagelayout/variables_in_pagelayout) Is there a solution to get the same value within the context of a node template?
I read the docs, but could find a proper solution here: http://ez.no/doc/ez_publish/technical_manual/3_10/templates/information_extraction/outputting_node_and_object_data The graphics does not related to any specific attributes of the node, I just need the current language or siteaccess (since that's the same thing in my setup).
|