[Radiant] <r:navigation> Accessing Page Parts
Phillippe
phillippekuntz at hotmail.com
Tue Nov 14 14:49:30 CST 2006
> Phillippe wrote:
>> All I get in place of <r:content part="alt_title" /> is the current
>> pages alt_title and not that of the pages that are being linked in the
>> navigation.
>>
>> Is there any way to access page parts rather than just the main
>> <r:title>, <r:slug>, et al?
John W. Long said - on 14/11/2006 7:57 AM->
> No. The <r:navigation /> tags are poorly designed and don't actually
> switch the context of the tags like other Radiant tags do. You may need
> to resort to using <r:if_url matches="..."> blocks.
>
> --
> John Long
> http://wiseheartdesign.com
Agreed, and I realised that the context never changed about 5 minutes
after posting. I went with some simple <r:find_url> along with a snippet
to save some repetition. It's not very elegant or as DRY as I'd like but
it'll do.
More information about the Radiant
mailing list