Forums / Setup & design / Using variable in uri command

Using variable in uri command

Author Message

jonathan howes

Wednesday 30 April 2003 10:07:19 am

I am trying to append a viriable to a uri line based on the section the user is accessing

I was trying to use the following

{include uri ="design:leftmenu{$DesignKeys:used.section}.tpl"}

basically I have 11 section templates and each one is really basic and referenced to other templates with a uri that then calls menu bars etc.

The structure is as follows

template_section calls main_content this then accesses which section you are in and call the apprpriate menus - leftmenu(section) where the section is assign un the uri call.

thanks

joanthan

Paul Borgermans

Wednesday 30 April 2003 10:56:26 am

Try this:

{include uri=concat("design:leftmenu",$DesignKeys:used.section,".tpl")}

First steps with operators and functions are somewhat difficult

Keep learning like we all do.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

jonathan howes

Wednesday 30 April 2003 11:48:28 am

Worked like a charm - can't beleive I don't catch this one myself - have used the concat in other places.

Thanks for the help

Jonathan