I am trying to understand use of "iw_include".Following things are not specified not clearly in manual or the example is not clear.1) There ar two attributes ptlocal and docroot. For including a file from within TeamSite , I am using ptlocal and to include a file from filesystem , I have to use docroot. Is this right ?
ptlocal
docroot
mode
2) If this iw_include tag includes TPL from a different workarea A1, how will it be compatible for the DCR of workarea A2 ? How will it become available for use in workarea A2, as in templating.cfg, its configured for workarea A1 ?
3) Can we use iw_include for cross branch inclusion ?
4) For what kind of display shall we use iw_include ? As an iw_include will not be compatible for the data and DCR of different data types ?
I have tried to understand these things for a while by examples but still cant iunderstand.Thanks
There is nothing that states that an iw_include'd PT is tied to a specific DCT, it is however tied to at least a partial set of fields that could appear in more than one DCT
Typical usage is for common elements, e.g. header/footer. So you'd have a header.tpl and a footer.tpl that are each iw_included by weather.tpl and deptInfo.tpl. There isn't really any requirement for where header.tpl and footer.tpl have to reside and they don't have to be "registered" templates in templating.cfg either.
Hi, It would be great if u can give an example.My understanding is that we can include different tpl's other than specified in templating.cfg. by giving the absolute/relative path of the file.