Hello Community,
since a very long there are several alternative menu add-ons (xtoc, xtoc28, Advanced TOC, DHTML menu etc.) out there, which offer additional features over the built-in toc() and li() functions. That's basically very nice, but has the drawback that these solutions can't cater for new functionality, and so they would have to be updated every time a new feature related to the TOC is introduced to a new CMSimple(_XH) version.
In CMSimple_XH 1.5.4 the possibility to add a callback parameter to use an individual li() function was added to toc(). That was a first step to make the menu system more flexible, but obviously that's not sufficient.
So I propose that we add even more flexibility to the menu system, either by adding further callbacks, or by rewriting toc() and li() in an object oriented way applying the template method pattern. At least some rewrite seems reasonable, because the code is somewhat unwieldy at present.
Any ideas, suggestions, comments?
Christoph
A more flexible menu system
A more flexible menu system
Christoph M. Becker – Plugins for CMSimple_XH
Re: A more flexible menu system
I'd vote for a better menu system. An easy way to have either vertical or horizontal or both and to style them easily would be great.
B
B
Re: A more flexible menu system
Well, the HTML is the same whether the menu should be horizontal or vertical -- the rest is up to CSS, anyway. I have some doubts that generating this CSS should be built-in to CMSimple_XH; a comprehensive tutorial on styling menus for CMSimple_XH seems to be more appropriate[1], and there are plenty of resources on the web on general styling of menus (some might even work out of the box with CMSimple_XH's menu markup).bca wrote:An easy way to have either vertical or horizontal or both and to style them easily would be great.
PS: [1] http://www.cmsimple-xh.org/wiki/doku.php/toc roughly explains the basics.
Christoph M. Becker – Plugins for CMSimple_XH