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)
problem using a perl subrutine located in an inclu
panomaat
Hi all,
I am getting crazy trying to call a subroutine.
The sub itself is located in an external tpl.
Example:
### external.tpl ######################
<iw_pt name="link_generation" />
<iw_perl>
sub test{
return "some Value";
}
</iw_perl>
### End of external.tpl ################
### master.tpl #######################
...
<iw_include pt='lexternal.tpl' mode='cwd'></iw_include>
<iw_perl>
$theOutput = &test;
</iw_perl>
...
### End of master.tpl ##################
What rules do apply to the iw_include mechsanism?
Best regards,
Pano
TS 5.5.3, Solaris
Find more posts tagged with
Comments
Nidhi_Agrawal
pt attributes in line..
<iw_include pt='lexternal.tpl' mode='cwd'>
specifies the path to the presentation template to process and include
at the point where the <iw_include> tag occurs.
I think u can not call a function of another template in master template....
you can only include the tpl.and processing of included tpl will be done in that itself.....