Hi, everyone!

As some of you may know, I've introduced OOXT (template alternative) a couple 
of weeks ago in OXID (german) Forum. I'm working on it now and need some advice.

First: Menus.

OXID has so many menus, they all are assembled in templates. I would like to 
extract them and assemble in a separate class or smarty-plugin based on a xml 
or ini file.

Simple Example for Categories-Menu:
<menu name="top-categories" type="categories" start="0" end="1" submenus="0" 
activeclass="active" />

Or if you want to show some content-links or mixed menus:

<menu name="infos">
  <item type="content" oxid="12345" />
  <item type="content" oxid="46467" />
  <item type="category" oxid="78888" />
  <item type="view" cl="guestbook" title="GUESTBOOK_TITLE" />
</menu>

To display the menu call {menu name="infos"}. The plugin renders menus based on 
the xml-File using just one shared menu template.

So we don't need to modify the templates every time we need modify the menu.

What do you think?


Mit freundlichen Grüßen aus Hannover
Leonid Lezner


_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to