Changing default new document contents
(I swear, I read the answer to this earlier today, but now cannot track it down.) Is there a document or method which gets copied or instantiated to provide what's put into a new document (or method) by default? I mean the <!--#var standard_html_header--> <h2><!--#var title_or_id--></h2> <p> This is the <!--#var id--> Document. </p> <!--#var standard_html_footer--> To put it the other way around, can I modify or replace that, for a folder, by saving the different version under a reserved name id? And expect that then subsequent new documents anywhere under that folder will start out with my modified starter text. Somewhere I got the idea that dtcTemplate was the reserved name, but that doesn't seem to work. Thanks, Mitch Marks -- Mitchell Marks (773) 702-6041 AAC-010A CUIP: Chicago Public Schools / Univ. of Chicago Internet Project http://cuip.uchicago.edu/cuip Restore ``Under City Stone'' mural, 55th at Lake Park underpass!
Mitchell Marks wrote:
Is there a document or method which gets copied or instantiated to provide what's put into a new document (or method) by default? I mean the
<!--#var standard_html_header--> <h2><!--#var title_or_id--></h2> <p> This is the <!--#var id--> Document. </p> <!--#var standard_html_footer-->
I'm not sure if this is the answer you're looking for, but if you modify lib/python/OFS/DTMLDocument.py around line 268 (if I remember right) it looks like the default document contents could be changed. - Craig -- Craig Allen - Managing Partner - Mutual Alchemy Information Architecture - http://alchemy.nu
A
I'm not sure if this is the answer you're looking for, but if you modify lib/python/OFS/DTMLDocument.py around line 268 (if I remember right) it looks like the default document contents could be changed.
Thanks for the suggestion. That file is where a lot of grepping led me, in fact. But I don't want to change it for the whole site, just within a particular tree. I guess the best thing will be to leave it as is and make a changed standard_html_header. Thanks, Mitch Marks -- Mitchell Marks (773) 702-6041 AAC-010A CUIP: Chicago Public Schools / Univ. of Chicago Internet Project http://cuip.uchicago.edu Quick quiz: Do "Border Collie" and "Border Ballad" refer to the same border?
participants (2)
-
Craig Allen -
Mitchell Marks