Hi
I am having a wierd problem. I am trying to generate the index page using a set of DCRs. When I run the presentation template using the CLT iwpt_compile.ipl with -ocode, and then run the ipl, I get the desired output, no errors. But through the GUI it doesn't give me the same output when i click on either preview or generate ( no errors, just doesn't display the links to the DCRs).
Background: I copied the same DCTs & PTs which works in TS 5.5.2 to the new TS 6.1 env & also the dcrs and then set the EAs on them. I am using the old "iwov" style DCT in the new env. I am not sure what is causing this but this code should have worked in the new env, correct? I am using the perl "foreach" to go through the dcrlist and this list is huge(Maybe this is causing this?) and I use iwpt_output to output the content. Is there an alternative?
Here is a portion of my code:
#
@pr_list has the sorted list of press releases
my $loop_first = 1;
my $loop_last = 10;
foreach my $prec (
@pr_list ) {
$loop_counter++;
next if ($loop_counter < $loop_first);
if ($loop_counter > $loop_first) {
# output separator row
iwpt_output('<tr>
<td colspan="3"><img src="/bsc/images/shared_clearPixel.gif" border="0" height="20"></td>
</tr>');
}
# output row containing the link
iwpt_output ('<tr valign="top">
<td class="contentheader2" nowrap valign="top">
'.$mon[$prec->{month}].' '.$prec->{day}.', '.$prec->{year}.'
</td>
<td><img src="/bsc/images/shared_clearPixel.gif" border="0" width="20" height="1"></td>
<td valign="top">
<a href="pr/'.$prec->{file}.'">'.TitleCase($prec->{title}).'</a>
</td>
</tr>');
last if ($loop_counter >= $loop_last);
}
if ($loop_counter < $loop_first) {
iwpt_output ('<tr>
<td colspan="3">No news releases are available. Please check back later.</td>
</tr>');
When i run the iwpt_compile.ipl, I get all the content, but when I try to preview or generate, I get "No news releases are available. Please check back later"
Can anybody help?
TS 6.1 SP2, Solaris 9
Thanks