Customizable printversion template

"Thimo Kraemer" <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization joonis new media
Message-ID <op.ut8cbwlnzfgzcn@joonis-xw4300>
Hello,

there should be a way to customize the predefined printversion templating structure.

We use our own templating structure (eg. without headCSS, headScript, etc). Unfortunately the printversion template breaks this idea, since it is hardcoded and cannot be modified.

Therefore I propose ...

... either to separate this code from the corresponding DTML-Methods by modifying:


f_standard_html_header.dtml - Line 3-12

><dtml-if "REQUEST.get('op','')=='print' or REQUEST.has_key('printversion')"
+ ><dtml-try
+ ><dtml-var print_html_header
+ ><dtml-except
><head
><dtml-var f_headMeta_Locale
><dtml-var headScript
><dtml-var headCStyleSheet
><meta name="Robots" content="noindex,nofollow"
><title><dtml-var "getTitle(REQUEST)"></title
></head
><body class="print"
+ ></dtml-try
><dtml-else


f_standard_html_footer.dtml - Line 1-3:

<dtml-if "REQUEST.get('op','')=='print' or REQUEST.has_key('printversion')"
+ ><dtml-try
+ ><dtml-var print_html_footer
+ ><dtml-except
></body
+ ></dtml-try
><dtml-else


... or to add an additional config property and a modification of:


f_standard_html_header.dtml - Line 3

- ><dtml-if "REQUEST.get('op','')=='print' or REQUEST.has_key('printversion')"
+ ><dtml-if "(REQUEST.get('op','')=='print' or REQUEST.has_key('printversion')) and not getConfProperty('disable_print_template')"


f_standard_html_footer.dtml - Line 1:

- <dtml-if "REQUEST.get('op','')=='print' or REQUEST.has_key('printversion')"
+ <dtml-if "(REQUEST.get('op','')=='print' or REQUEST.has_key('printversion')) and not getConfProperty('disable_print_template')"


-- 

Regards
Thimo Kraemer


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/zms-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/zms-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.