cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kröpfl <>
Subject sitemap matcher question
Date Thu, 21 Apr 2005 15:11:51 GMT

I would want do something like this

<map:match pattern="admin/category/*">
  <map:act type="auth-protect">
    <map:parameter name="handler" value="user"/>
    <map:call function="admin_category_{1}"/>

to call flow functions. e.g 
url: admin/category/new --> flow function: admin_category_new() 

Unfortunately I get the following error:

Resource not found
Function "javascript:admin_category_()" not found

Could somebody please explain to me why this error happens?

if I do it without *, {1} like this:

<map:match pattern="admin/category/new">
  <map:act type="auth-protect">
    <map:parameter name="handler" value="user"/>
    <map:call function="admin_category_new"/>

everything works fine.

Since I have many functions like admin_category_new() my sitemap contains lots
of (possibly) redundant information. It would be nice if my sitemap was shorter.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message