Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
tpl
System
Hi,
I have a query regarding tpl.There is one item in a dct called "name ".Now in 1 tpl i have to check the value of this item and depends upon this value i have to call other tpl's.For example if the value is "a" then i have to call presentation1.tpl and if it is "b" then presentation2.tpl.I have tried the following code but it is not working properly.Can anyone check this code and suggest a solution.
<?xml version ="1.0" encoding="UTF-8"?>
<iw_pt name="Test">
<iw_perl>
<iw_if expn='{iw_value name=dcr.ProductCatalogue.Products.name"/} eq "a"'>
<iw_then>
<iw_include file='templatedata/Datatype/presentation/presenation1.tpl'/>
</iw_then>
<iw_else>
<iw_include file='templatedata/Datatype/presentation/presentation2.tpl'/>
</iw_else>
</iw_if>
</iw_perl>
</iw_pt>
Find more posts tagged with
Comments
There are no comments yet