Thanks for you help on this, i'm still struggling....

> The first line does two things: Assigns a blank Hash to
> tag.locals.navigation and also assigns 'tag.locals.navigation' to the local
> variable 'hash'.

If we assign a blank hash to navigation and assign that to a variable
called 'hash' how can it contain any values if we assigned a blank
one?

To establish a baseline I tried copying the existing 'navigation' code
into my custom tag (with name edits) and I'm still getting the 'normal
tag not found error'.

snippet:
<r:navigation_dynamic urls="[Resources: /resources/;Search:
/resources/resources-search/;Health: /resources/food-and-health/;]">
<r:normal><a href="<r:url />"><r:title /></a></r:normal>
<r:here><strong><r:title /></strong></r:here>
<r:selected><strong><a href="<r:url />"><r:title /></a></strong></r:selected>
<r:between> | </r:between>
</r:navigation_dynamic>

head of custom tag;
  tag 'navigation_dynamic' do |tag|
        hash = tag.locals.navigation_dynamic = {}
        tag.expand
        raise TagError.new("`navigation_d' tag must include a `normal'
tag") unless hash.has_key? :normal


error:
`navigation_d' tag must include a `normal' tag

I've dumped my cache and restarted the server a bunch. How can I get
logging to see what is contained in 'tag.locals'?  Can you see what
I'm doing wrong here/

Thanks-
Michael
_______________________________________________
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to