john wrote:
> On Nov 10, 2007, at 11:38 AM, Mohit Sindhwani wrote:
>
>> shouldn't the unless_content come *inside* search:results:each ?
>
> That works perfectly. Thanks for the tip, I'm still on the upside of
> the radius learning curve.
>
> thanks,
> john
>
Hi John
You're most welcome!
That's the thing with Radius tags. I guess it does help to get a bit
acquainted with Radius (or learn as you go along - as I ended up doing it).
The simple rule that pulls me through - when you do something like an
:each, it switches the context of the tag to the item being referred to.
Since you wanted to check if the result page had a no-search page part,
you need to switch the context to that page. Hence, the need to do
search:results:each first - roughly translates to:
for each item in the search pages
unless it has a no-search part
show a link to it
end unless
end for
I'm rambling cos it's late - glad to have been of help.
Cheers,
Mohit.
11/11/2007 | 3:22 AM.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant