Welcome Guest, Not a member yet? Register   Sign In
Navigation and Templating Question
#3

[eluser]esra[/eluser]
[quote author="sophistry" date="1185394133"]This view library with support for including CSS might be helpful.[/quote]

Off topic but it would probably be neat to extend the Parser library to support View library features.

There is a article and a Menu class on the Wiki by Tamer:

http://codeigniter.com/wiki/DynamicMenu/

I have not used the class myself, but it might solve your needs.

A different approach might be to create a table called menus based on the Adjacency List Model or Nested Sets Model, then populate the menu block dynamically using a query and foreach loop. This would put you in a position where you could changethe menu items from an Admin module or possibly maintain multiple menus for use on different templates. The menu block could be made an independent view fragment by writing a view-specific helper to handle menu item population.

What we have not seen yet used extensively on CI is better use of plugins. It might be possible to build one or more plugins that loaded off-the-shelf menu solutions.


Messages In This Thread
Navigation and Templating Question - by El Forum - 07-25-2007, 12:21 AM
Navigation and Templating Question - by El Forum - 07-25-2007, 09:08 AM
Navigation and Templating Question - by El Forum - 07-25-2007, 12:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB