Code I[PHP]
my
@dcr_content_array = iwpt_dcr_list('dcr.root_content.content_sections');
if (($#dcr_content_array) >= 0) {
foreach my $dcr_content (
@dcr_content_array) { my $dcr_sec_subheading =iwpt_dcr_value('dcr_content.sec_subheading');
my $dcr_sec_content =iwpt_dcr_value('dcr_content.sec_content');
iwpt_output("<h2> $dcr_sec_subheading </h2> <p> $dcr_sec_content</p>");
}
}
[/PHP]
Code II[PHP]
<iw_iterate list='dcr.root_content.content_sections' var='foo'>
<iw_if expr="{iw_value name='foo.sec_subheading'/}">
<iw_then>
<h2><iw_value name='foo.sec_subheading' /></h2>
</iw_then>
</iw_if>
<iw_if expr="{iw_value name='foo.sec_content'/}">
<iw_then>
<p><iw_value name='foo.sec_content' /></p>
</iw_then>
</iw_if>
</iw_iterate>
[/PHP]
The above code segment (Code -I and Code -II) from a tpl are reading container item values from a dcr)
The code I & II works fine in Windows Env . The code I works fine in Linux Env
but the code II is not getting any values in the Linux Env
Pls Advice
Thanks
-Vin