[Zope] Using folder name in macro

Andreas Jung lists at zopyx.com
Mon Mar 13 05:27:19 EST 2006



--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         -
   -----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060313/81d0cba8/attachment.bin


More information about the Zope mailing list