[Yanel-dev] Navigation Framework

Josias Thöny josias.thoeny at wyona.com
Fri Feb 9 21:08:04 CET 2007


Hi,

Here are a few ideas about a navigation framework:

We could create a navigation resource, which generates a navigation xml. 
The other resources would include such a navigation resource and 
aggregate the navigation xml to build a menu etc.
This resource could have a type, e.g.:

- static (the navigation structure is stored in a repository node and 
may be edited by a cms user)

- dynamic (the navigation structure is generated dynamically, using 
either the data repository or the rti repository structure, perhaps via 
the sitetree.

Example:
let's say there's a navigation resource at

   /navigation/static.xml

with rti/rc-property:
   navigation-type: static

content:
   <nav:navigation>
     <nav:node uid="1234" href="../en/about.html">
       <nav:label lang="en">About Yanel</nav:label>
     </nav:node>
   </nav:navigation>

Resource foo.html uses this navigation resource:

rti/rc-property:
   include-navigation: /navigation/static.xml

The resource would then aggregate that and the xslt would create a menu 
out of it.

WDYT?
Maybe the static and the dynamic resource should be two separate 
resources, because one is modifiable and the other isn't.

These are just ideas. Maybe someone comes up with a completely different 
or better solution.

josias





More information about the Yanel-development mailing list