Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Referencing a TPL and DCR in another workarea
talktome_ys
I have a tpl called a.tpl. In the tpl, I'm attempting to use the iw_include tag to reference a tpl in another workarea.
Ex:
<td class="navpanel" width="{iw_value name='$left_nav'/}" style="vertical-align: top">
<iw_if expn="{iw_value name='dcr.Header'/} =~ 'Gary'">
<iw_then>
<iw_if expn="{iw_value name='dcr.Left Nav Panel'/} ne ''">
<iw_then>
<iw_include pt='/default/main/Intranet/Corporate/WORKAREA/LeadershipCornerWA/templatedata/components/navPanel.tpl' mode='cwd'>
<![CDATA[
$iw_param{Location} = 'left';
$iw_param{navDCR} = iwpt_dcr_value('dcr.Left Nav Panel');
$iw_param{ColorScheme} = iwpt_dcr_value('dcr.ColorScheme');
$iw_param{Theme} = iwpt_dcr_value('dcr.Theme');
]]>
</iw_include>
</iw_then>
</iw_if>
</iw_then>
<iw_else>
<iw_if expn="{iw_value name='dcr.Left Nav Panel'/} ne ''">
<iw_then>
<iw_include pt='/templatedata/components/navPanel.tpl'>
<![CDATA[
$iw_param{Location} = 'left';
$iw_param{navDCR} = iwpt_dcr_value('dcr.Left Nav Panel');
$iw_param{ColorScheme} = iwpt_dcr_value('dcr.ColorScheme');
$iw_param{Theme} = iwpt_dcr_value('dcr.Theme');
]]>
</iw_include>
</iw_then>
</iw_if>
</iw_else>
</iw_if>
</td>
With this code, if $header contains the string Gary, if the Left Nav Panel is not null, get navPanl.tpl and params for specific DCR elements and embed data into a.tpl file.
Is this correct?
Regards,
Find more posts tagged with
Comments
talktome_ys
RESOLVED: Appended the drive letter to beginning of the link.
Ex:
Y:/default/main/....
Regards,