[z3-five] ${portal_url} not resolved in ZCML

Rocky Burt rocky at serverzen.com
Fri Oct 20 18:02:28 CEST 2006


On Fri, 2006-20-10 at 10:53 +0200, Dennis Schulz wrote:
> Hi,
> 
> I tried
> 
> <browser:menu
>    title="user"
>    id="user"
>    />
> 
> <browser:menuItem
>    for="*"
>    menu="user"
>    title="Manage Hours"
>    action="${portal_url}/multiplehours.html"
>    permission="zope2.View"
>    />
> 
> 
> source: 
> http://www.serverzen.net/weblog/archive/2006/01/07/cmf-with-zope-3-on-zope-2
> 
> ${portal_url} cound not be resolved as I tried it
> (Plone 2.5.1, five 1.4.1)
> What do I have to do to have a the menu item inside the Plone Instance 
> for example in a folder like intranet/MApplication?

Depends on how you're trying to access the menu item.  To the normal
Zope 3 machinery, it has no way to convert ${portal_url} to anything.
But with CMFonFive installed where menu items get converted to CMF
actions... Plone will parse those actions and replace ${portal_url} with
the appropriate url.

- Rocky


-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://codespeak.net/pipermail/z3-five/attachments/20061020/64663635/attachment-0001.pgp 


More information about the z3-five mailing list