I am trying to create a simple menu structure. I have a model that
holds category names, and that model has_many with my other model
which is basically a page with an html type field. I want my
"category" names to be menu section headers (no links or anything),
and then under that, I want to do a repeat that will give me a link to
the "pages" of the other model. I can get the name of those pages to
display, but cannot get the link to work. Here is the dryml I have.
All my repeats seem to work, but the <a> tag just seems to have no
effect. Any suggestions?
<def tag="ministry-nav">
<navigation class="ministry-nav" merge-attrs param="default">
<% if MinistryCategory.count > 0 -%>
<% @ministry_categories = MinistryCategory.all %>
<repeat with="&@ministry_categories">
<h2 class="MinistryMenuCategories"><name/></h2>
<repeat with="&this.ministry_posts">
<a><name/></a><br/>
</repeat>
</repeat>
<% end -%>
</navigation>
</def>
Thanks,
Joey
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.