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)
Includes or Include files in DCT
Tanuj
Hi
Is there any way to do includes in DCTs.
I have many DCTs which share common code and I want to share that
code is there anyway to do that.
Thanx
Tanu
Find more posts tagged with
Comments
rapid
Search the forums. There have been posts about this. i remember reading that someone maintains the includes someplace and all their DCTs include the common code.
You can basically use inline to include well-formed XML. Read the Templating manuals.
Rishi Athalye
TeamSite 5.5.2>>6.1 on W2K
iwovGraduate
See documentation for <inline> tag
hitc
for input templates, you can use inline
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data-capture-requirements SYSTEM "datacapture5.0.dtd">
<data-capture-requirements
type="content"
name="standard_page"
>
<inline
command="/iwenv/iw-home/iw-perl/bin/iwperl /default/main/template_web/includes/WORKAREA/includes/templates/standard_page/input/datacapture.ipl
/>
</data-capture-requirements>
for output templates,you can use iw_include,you can pass parameters using iw_param{name of the param}
<?xml version="1.0" encoding="UTF-8"?>
<iw_pt name="navigation_tree">
<iw_include
pt="/default/main/template_web/includes/WORKAREA/includes/templates/navigation_tree/output/display_navigation.tpl"
mode="ptlocal">
<![CDATA[
$iw_param{tpl_path} = iwpt_get_pt_name();
]]>
</iw_include>
</iw_pt>
to get the parameters back,just do "my $var= $iw_arg{tpl_path};"
Tanuj
Thanx Guys, this works for me.