Creating DW Template to output two different versions of an html file
Posted on 2006-04-12
I need to know if it is possible to use DW Templates to output two different versions of an HTML page from one single template interface. Basically, I need to publish content to two separate directories. One file would be a complete version with all of the content that was entered into the template (so, an entire valid HTML document). The other file, would essentially be a "stripped down" version of the complete one. The stripped version would contain basically the page's title (identified by <div id="pagetitle">) and what would be considered the "meat" of the page (everything inside <div id="maincontent">). Everything else, all the regular stuff that makes an HTML page (i.e. <html>, <head>, <body>, etc.) would be stripped. If this is possible, I would also like to know if it is something that can be user-defined. Meaning, would there be a way for the page creator to indicate whether or not a stripped version should be created?
I hope this is enough information, please let me know if there is anything else I can add.