Damn, not a bug. ok

How terrible or difficult would it be to hack it to do what we need?
At the moment we circumvented the problem with Javascript :(

<ul id="navigation">
<r:find url="/products">
        <r:children:each by="title" order="asc">
        <li>
                <a href="<r:child:url/>"><r:child:title /></a>
                <ul id="<r:slug/>" style="display:none;">
                        <r:children:each by="title" order="asc">
                                <li><a href="<r:child:url />"><r:child:title 
/></a>
                        </r:children:each>
                </ul>
        </li>
        </r:children:each>
</r:find>
</ul>

<script type="text/javascript" charset="utf-8">
        var parent_url = $('<r:parent><r:slug/></r:parent>');
        if (parent_url) {
                parent_url.show();
        }
        var child_url = $('<r:slug/>');
        if (child_url) {
                child_url.show();
        }
</script>

On Aug 15, 2007, at 12:49 PM, Sean Cribbs wrote:

> The navigation tag doesn't operate in the context of a given page,  
> only
> with respect to the title and url given in the urls attribute.  So
> essentially, you don't have access to the pages directly.
>
> Sean
>
> Andrew Bloom wrote:
>> I am currently working on a site with a rather convoluted navigation
>> scheme (it wasn't my decision, the graphic designer came up with it,
>> and the client likes it, so I must comply).
>>
>> When trying to simplify and DRY up the navigation snippets I've come
>> across what appears to be a bug. The contents of the snipped are  
>> below:
>>
>> <ul id="navigation">
>> <r:navigation urls="Custom & OEM Products:/products/custom-oem-
>> products | Filter Elements:/products/filter-elements | Filter
>> Housings:/products/filter-housings">
>>    <r:normal><li><a href="<r:url />"><r:title /></a></li></r:normal>
>>    <r:here>
>>      <li>
>>        <a href="<r:url/>"><r:title /></a>
>>        <r:children:each by="title" order="asc">
>>        <ul>
>> -->     <li><a href="<r:child:url/>"><r:child:title/></a></li>
>>        </ul>
>>        </r:children:each>
>>      </li>
>>    </r:here>
>> </r:navigation>
>> </ul>
>>
>> The line with the arrow (the nested LI) is the issue. I have tried
>> making it:
>>
>> <r:child><li><a href="<r:url/>"><r:title/></a></li></r:child>
>>
>> which also fails.
>>
>> The output is quite odd. The LI gets printed the proper number of
>> times, but the url and title are all pointed to the parents.
>>
>> Anyone have any ideas?
>>
>> Thanks,
>> Andrew
>> _______________________________________________
>> Radiant mailing list
>> Post:   [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>>
>
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to