Joe. I assume that you are using Manuel Meurer's Parameterized-Snippets from the syntax (as opposed to my Variables extension) to do this. Neither of our tools (or any radius tags, for that matter) allow this kind of nested parsing out of the box.

I believe that Manuel modified Radius to do just what you want (http://github.com/manuelmeurer/radius/tree/master). You'll have to install his version of Radius to somehow overwrite the built-in Radiant one.

-Chris

Joe Van Dyk wrote:
Hi,

I have a snippet that contains this code:

     <r:find url="<r:var name='match' />">
       <r:if_ancestor_or_self>current</r:if_ancestor_or_self>
     </r:find>">

r:var is an extension that lets me pass arbitrary values in to
snippets.  So, I'd be calling that snippet with something like:
      <r:snippet name="snippet" match="/url/of/page" />

However, I think since the r:var call is in quotes, it's being passed
directly to the r:find tag method, without first being evaluated.

Is there a way to evalulate the r:var tag, and then have the result be
sent to r:find as the url argument?

Thanks,
Joe
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to