Forums / Setup & design / Template and site access

Template and site access

Author Message

laurent le cadet

Wednesday 05 July 2006 7:13:48 am

Hi,

How can we know which site access is use with a template ?
I have to know if it's /fr or /en or /de.

I use {$module_result.uri} in pagelayout, but it doesn't seems to work with templates.

Laurent

Christian Johansen

Wednesday 05 July 2006 7:19:00 am

$module_result only exists in pagelayout.tpl, not in node override templates. To get the url in a node template you can use $node.url_alias or simply $node.url. However, if you require different processing based on different siteaccesses maybe it's best to create different templates for the different siteaccessses?

laurent le cadet

Wednesday 05 July 2006 9:40:56 am

thanks