Re: [Radiant] Children + Siblings

2009-01-12 Thread Andrew Neil


On 12 Jan 2009, at 20:43, Paul Ingles wrote:




class="selected"  
class="item">

 
   



I think what you need to do is wrap the above section of code in a  
 tag. If the "Items Intro" has the url: /items you would do  
something like:



   
   class="selected"  
class="item">


  
   


That way, it will always find the children of the "Items intro" page,  
even if the page you are on *is* a child of "Items intro".


You might need to tinker with the if/unless_self conditions to apply  
the appropriate classes.


If you find yourself wanting to work with sibling pages, instead of  
child pages, then check out the sibling_tags extension:


http://github.com/nelstrom/radiant-sibling-tags-extension/tree/master

This is useful, for example, if you want to provide "Next" and  
"Previous" links.


Hope this helps,
Drew
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Children + Siblings

2009-01-12 Thread Paul Ingles

Yep, worked perfectly. Thank you!

On 12 Jan 2009, at 21:06, Nate Turnage wrote:


On Mon, Jan 12, 2009 at 2:43 PM, Paul Ingles  wrote:


Hi,

I'm trying to show a side-menu with a section, so, for example:

- Welcome
+ Items Intro
++ Item A
++ Item B

I'd like to show a list with "Items Intro, Item A, and Item B" on  
the Items

Intro, Item A, and Item B pages- with my current page highlighted.

At present, I'm doing something similar to:


   class="selected"
class="item">

  




I believe that if you wrap that snippet with ...  you should be good.



~Nate
___
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


Re: [Radiant] Children + Siblings

2009-01-12 Thread Nate Turnage
On Mon, Jan 12, 2009 at 2:43 PM, Paul Ingles  wrote:

> Hi,
>
> I'm trying to show a side-menu with a section, so, for example:
>
> - Welcome
> + Items Intro
> ++ Item A
> ++ Item B
>
> I'd like to show a list with "Items Intro, Item A, and Item B" on the Items
> Intro, Item A, and Item B pages- with my current page highlighted.
>
> At present, I'm doing something similar to:
>
> 
> class="selected"
> class="item">
>  
>
> 
>
>
I believe that if you wrap that snippet with ...  you should be good.



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