3 level deep navigation tags


#1

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 »
Homehttp://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.


#2

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?


#3

Dave,

Check back through the mailing-list archives for information about the
sitemap snippet. It does most of what you want.

@Marty H. - would you be willing to share the working code for the
if_ancestor tag? I haven’t looked at it in a while.

Sean


#4

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


#5

I have a plugin that gives you tags that you need to make nested
navigation:

http://svn.artofmission.com/svn/plugins/radiant/plugins/navigation_tags/

On Jun 6, 2007, at 7:25 AM, Sean C. wrote:

(context_page)

the code in your email all that is required to define the

@Marty H. - would you be willing to share the working code
based
Straights

Radiant mailing list
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Radiant mailing list
Post: removed_email_address@domain.invalid
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Ryan H.
Art of Mission, Inc.
3720 Gattis School Rd #800 PMB 245
Round Rock, TX 78664

800-722-1492 (phone)

www.artofmission.com
removed_email_address@domain.invalid


#6

It looks like it just might work! Thanks!

Did you know the tag works in a snippet but does not work in a layout?
It
gets a *undefined method `ancestors’ for nil:NilClass. *(I might have
installed it wrong, all I did was put it in a navigation_tags directory
under vendor/plugins)


#7

Did you know the tag works in a snippet but does not work in a
layout? It
gets a *undefined method `ancestors’ for nil:NilClass. *(I might have
installed it wrong, all I did was put it in a navigation_tags
directory
under vendor/plugins)

Strange - I don’t know why it would do that - I haven’t tried it in a
layout yet. Feel free to modify it; if you want to send me a patch
I’ll see that it gets committed. Also, the tag can be terribly slow
if you have a lot of pages. If you can figure out a way to make it
render faster, that would be much appreciated.

Thanks!

On Jun 7, 2007, at 4:06 PM, dave4c03 wrote:

Here’s some updated code that will work with 0.6. Keep in mind this
Sean

On 6/5/07, Sean C. removed_email_address@domain.invalid wrote:

navigation tags

Search: http://radiantcms.org/mailing-list/search/

Post: removed_email_address@domain.invalid
800-722-1492 (phone)
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Radiant mailing list
Post: removed_email_address@domain.invalid
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Ryan H.
Art of Mission, Inc.
3720 Gattis School Rd #800 PMB 245
Round Rock, TX 78664

800-722-1492 (phone)

www.artofmission.com
removed_email_address@domain.invalid


#8

Check back through the mailing-list archives for information about the
sitemap snippet. It does most of what you want.

@Marty H. - would you be willing to share the working code for the
if_ancestor tag? I haven’t looked at it in a while.

Sorry, just saw this. If you guys still want the extension that I
plugged this into just email me off list.

Cheers,
Marty