kcl-ddh / kiln

Kiln is a multi-platform framework for building and deploying complex websites whose source content is primarily in XML. It brings together various independent software components into an integrated whole that provides the infrastructure and base functionality for such sites.
Apache License 2.0
34 stars 62 forks source link

Local navigation not displaying #10

Closed philgooch closed 11 years ago

philgooch commented 11 years ago

For example

<menu href="index.html" label="Edition" root="edition"> <item href="test01-01.html" label="Test"/> </menu>

with index.xml and test01-01.xml in xm/tei/edition, index.html is displayed but there is no local navigation to test01-01.hml

ajenhl commented 11 years ago

Is this just because assets/menu/main.xml has a default item for index.html, and you haven't added an entry for test01-01.html? The menu system doesn't perform any magic (or at least it oughtn't), and won't automatically link to items.

ajenhl commented 11 years ago

Is this still a problem? If not, I'll close the issue.

philgooch commented 11 years ago

Happy to have this closed if this was my misunderstanding that <item> inside <menu> would create a sub-entry menu item.

ajenhl commented 11 years ago

After proper investigation, the issue is that the base template (assets/templates/base.xml) specifies that the normalised menu XML should be transformed in the "main-navigation" mode. This mode ensures that subitems are not rendered.

You can change that template, or override the block in a sub-template, to not use that mode and get whatever result you wish.

The menu system needs to be overhauled as per #11, which will make this all less opaque.