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)
iw_perl problem
BENMAY
I have the following snippet:
<iw_perl>
<![CDATA[
if($club eq "bom" || $club eq "srr"){
iwpt_output("<TD VALIGN=\"TOP\" align=\"left\"><img src=\"../../../TemplateData/images/SetPanel/minisite2/minisite_re_top_branding_$club.gif\" BORDER=\"0\" ALT=\"\" HEIGHT=\"$height1\" WIDTH=\"$width1\" ALT=\"OTS_alt_tag_club_top_branding\"></TD>");
}else{
iwpt_output("<TD VALIGN=\"TOP\" align=\"left\"><img src=\"../../../TemplateData/images/SetPanel/minisite2/minisite_re_top_branding.gif\" BORDER=\"0\" ALT=\"\" HEIGHT=\"$height1\" WIDTH=\"$width1\" ALT=\"OTS_alt_tag_club_top_branding\"></TD>");
}
]]>
</iw_perl>
which is breaking the iwgen process. I see the following error in the error.log:
/default/main/bom/WORKAREA/NewMember/templatedata/NewMember/G_NavBar_FSE_Theme_Two/presentation/G_NavBar_Menu1All_FSE.tpl: Could not process template: /.iwmnt/default/main/bom/WORKAREA/NewMember/templatedata/NewMember/G_NavBar_FSE_Theme_Two/presentation/G_NavBar_Menu1All_FSE.tpl
The old version of this code block worked fine and read:
<iw_perl>
<![CDATA[
iwpt_output("<TD VALIGN=\"TOP\" align=\"left\"><img src=\"../../../TemplateData/images/SetPanel/minisite2/minisite_re_top_branding.gif\" BORDER=\"0\" ALT=\"\" HEIGHT=\"$height1\" WIDTH=\"$width1\" ALT=\"OTS_alt_tag_club_top_branding\"></TD>");
]]>
</iw_perl>
What about the if/else block is breaking this TPL!? Thanks!!!
Find more posts tagged with
Comments
Migrateduser
Has the variable $club been defined?
To debug, try running iw-home/bin/iwpt_compile.ipl from a command prompt.
Brinko Kobrin
Interwoven Staff Engineer