If I've understood correctly what you need, then you can add this to your
site.yaml:
> sorter:
> main_menu:
> attr: meta.main_menu
and then in the header of pages, which should appear in the menu add this:
> ---
> extends: base.j2
> title: Some title
> main_menu: 1
> ---
After this you can use following in your templates in order to generate menu:
> {% for res in site.content.walk_resources_sorted_by_main_menu() %}
> ...
> {% endfor %}
--
Grygoriy Fuchedzhy
~~~~~~~~~~~
<ul>
<li{% if not page.node.module %} class="selected" {% endif %}>
<a href="{{site.content.url}}">Home</a>
</li>
{% for module in site.content.child_nodes if not module.name == 'media' %}
<li {% if page.node.module == module %}class="selected"{% endif %}>
<a href="{{ module.url }}">{{ module.name|title}}</a>
</li>
{% endfor %}
</ul>
~~~~~~~~~~~~~~~~
> --
> You received this message because you are subscribed to the Google Groups "Hyde" group.
> To post to this group, send email to hyde...@googlegroups.com.
> To unsubscribe from this group, send email to hyde-dev+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hyde-dev?hl=en.
>