By Date: <-- -->
By Thread: <-- -->

Using folder name in macro





--On 13. MÃrz 2006 10:21:15 +0000 John Poltorak <jp (at) warpix.org> wrote:


How do I use a folder name in a macro?

ie I want to change this

<metal:macro metal:use-macro="context/abc.pt/macros/page">

which is in the folder 'abc'

to

<metal:macro metal:use-macro="context/[folder_name].pt/macros/page">

Your question makes little or no sense.

 <metal:macro metal:use-macro="context/abc.pt/macros/page">
                               ^^^^^^^^^^^^^

This part of the of the value is nothing else than a path expression
defining the path to some ZPT using acquisition. The 'macros' referes to the
ZPTs internal 'macros' datastructure and 'page' is the name of macro to be used.


-aj




----------------------------------------------------------------------- - Andreas Jung ZOPYX Ltd. & Co KG - - E-mail: info (at) zopyx.com Web: www.zopyx.com, www.zopyx.de - -----------------------------------------------------------------------

Attachment: pgpNMzq5rC662.pgp
Description: PGP signature

_______________________________________________
Zope maillist  -  Zope (at) zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )