> 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:

> 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)
>
> On 6/6/07, Ryan Heneise <[EMAIL PROTECTED]> wrote:
>>
>> 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 Cribbs wrote:
>>
>>> 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
>>>
>>
>> ------------------------------------------------
>> Ryan Heneise
>> Art of Mission, Inc.
>> 3720 Gattis School Rd #800 PMB 245
>> Round Rock, TX 78664
>>
>> 800-722-1492 (phone)
>>
>> www.artofmission.com
>> [EMAIL PROTECTED]
>>
>>
>>
>> _______________________________________________
>> 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
>

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

800-722-1492 (phone)

www.artofmission.com
[EMAIL PROTECTED]



_______________________________________________
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