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)
Multiple Presentation templates
mk2004
Is there a way to direct a preview to a default tpl in a datatype using component tpls?
For e.g. I have in my presentation folder the following tpls.
1.main.tpl
2.feature.tpl
3.investors.tpl
mai.tpl includes feature.tpl and investors.tpl(using iw_include tag)
All the above tpls are registered in the templating.cfg because i want to generate seperate html file using each of the component tpl
For e.g.
feature.tpl generates feature.html using iwgen
Problem:
Now when the user clicks Preview on DCT, the template pops up a window to select the appropriate tp for preview.
How do we suppress this popup and use the main.tpl to generate the preview?
Find more posts tagged with
Comments
Johnny
Can the TPL's be programmically determined, rather than manually selected by the user?
If you can figure out which one to use (either by certain values in the form, or if they all needed to be called etc), then you can register only one main "driver" template which then determines which template to include to process the generation.
You could then check if preview was selected (check your PT documentation
http://server/iw/help/tst/pt/
) and hand control over to an appropriate template to handle that event.
John Cuiuli
fjvelasco
Hi
One solution could be make a preview TPL that redirects to another TPL by iwpt_include checking the user, if it's preview and any other conditions... what do you think about this approach?
FJ