cocoon-users mailing list archives

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

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}"/>
  </map:act>
</map:match>

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"/>
  </map:act>
</map:match>

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.



Thanks, 
Peter








---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message