RE: [Zope] Moving the "html_standard_header" in an another folder...
<dtml-with Models> <dtml-var html_standard_header> </dtml-with> This work everywhere in the stack (correct me if I'm wrong), unless the names crash with other names. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Frédéric QUIN Sent: 25 May 2000 13:16 To: zope@zope.org Subject: [Zope] Moving the "html_standard_header" in an another folder... Hello everybody, I'd like to move files like "html_standard_header" in a new folder called "Models". I tried to access to "html_standard_header" like that : <dtml-var Models.html_standard_header> but it didn't work... Wath's the solution ??? Thanks Frederic _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Try this <!--#var "Models.standard_html_header(_.None,_)"--> We use this all over the place peter wrote:
<dtml-with Models> <dtml-var html_standard_header> </dtml-with>
This work everywhere in the stack (correct me if I'm wrong), unless the names crash with other names.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Frédéric QUIN Sent: 25 May 2000 13:16 To: zope@zope.org Subject: [Zope] Moving the "html_standard_header" in an another folder...
Hello everybody,
I'd like to move files like "html_standard_header" in a new folder called "Models".
I tried to access to "html_standard_header" like that : <dtml-var Models.html_standard_header> but it didn't work...
Wath's the solution ??? Thanks Frederic
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
----- Original Message ----- From: Dan Rusch <drusch@globalcrossing.com>
Try this <!--#var "Models.standard_html_header(_.None,_)"-->
One important caveat to keep in mind here: If standard_html_header acquires any object or property that is meant to be context-sensitive (eg. it is defined in the root, overridden in some folders, and overridden again in some documents), then placing it in "Models" can have surprising effects. These can sometimes be fixed by using "this()" instead of "_.None" in the call. Cheers, Evan @ digicool & 4-am
participants (3)
-
Dan Rusch -
Evan Simpson -
peter