Blog An exploration of the art and
craft of software development

Dynamic Nav extension

Posted by Marty Haught on Saturday, June 09, 2007

When I had put together the website in Radiant, I needed a way to generate a dynamic navigation that could display children pages easily. While the stock Radius tags that come in Radiant get you very close, there was one tag missing. After an online chat with Sean Cribbs he suggested I write a simple tag called if_ancestors_or_self. We worked through the code together and I made a super small extension that just contained this tag. Now this should probably be included in core Radiant but it hasn’t been yet. However, lately some others have expressed interest in this so I decided to package it up for public consumption. If you would like to use this tag or just look at how I put it together (I did mention it was simple, right?) feel free to download it.

blog comments powered by Disqus