You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Kröpfl <pe...@groebi.com> on 2005/04/21 17:11:51 UTC

sitemap matcher question

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


Re: sitemap matcher question

Posted by Peter Kröpfl <pe...@groebi.com>.
Volker Bublitz <vbu <at> imatics.de> writes:

> 
> did you try
> <map:call function="admin_category_{../1}"/>
>

works. 

Thanks a lot. 
peter


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


Re: sitemap matcher question

Posted by Volker Bublitz <vb...@imatics.de>.
did you try
<map:call function="admin_category_{../1}"/>

greets,
volker


Am 21.04.2005 um 17:11 schrieb Peter Kröpfl:

> 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
>
>


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