Dave, Here's some updated code that will work with 0.6. Keep in mind this doesn't describe how to hook it up.
tag 'if_ancestor_or_self' do page = tag.globals.actual_page ancestors = page.ancestors context_page = tag.locals.page tag.expand if context_page == page || ancestors.include?(context_page) end Sean dave4c03 wrote: > I got a *undefined tag `if_ancestor_or_self'. > > *I found your email at > http://lists.radiantcms.org/pipermail/radiant/2006-September/001968.html. Is > the code in your email all that is required to define the > if_ancestor_or_self tag? > > On 6/5/07, Sean Cribbs <[EMAIL PROTECTED]> wrote: > >> Dave, >> >> Check back through the mailing-list archives for information about the >> sitemap snippet. It does most of what you want. >> >> @Marty Haught - would you be willing to share the working code for the >> if_ancestor tag? I haven't looked at it in a while. >> >> Sean >> >> dave4c03 wrote: >> >>> I would like to convert http://sanjosechiropractic.com/ to a radiant >>> >> based >> >>> site. However, it seems to me radiant does not yet have navigation tags >>> >> to >> >>> deal with a 3 level deep menu. For example, see » >>> Home<http://sanjosechiropractic.com/index.html>» About >>> Chiropractic <http://sanjosechiropractic.com/chiropractic.html> » >>> >> Straights >> >>> and Mixers for the sort of menu structure required. >>> >>> What is the current status of work being done in this area? >>> >>> I know it is possible to solve the problem by hard coding the menu >>> information into the site. however, that is unacceptable, I need to >>> generate all navigational menus from the radiant file structure. >>> _______________________________________________ >>> 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 > > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
