Welcome Guest, Not a member yet? Register   Sign In
Dynamic array for UL method in HTML helper
#4

[eluser]JoostV[/eluser]
I always use MPTT in that case. You fetch the entire tree in just two queries, creating navigation is easy once you figure out the recursive function for that.

However:
- it takes quite some time to wrap your head around.
- if you use it in a cms it is vital that only one person at a time is allowed to make changes to the categories or you iwll end up in an epic disaster. If that's no problem for you I'd be happy to post my code on Github for you. It'll take some time preparing, though.


Messages In This Thread
Dynamic array for UL method in HTML helper - by El Forum - 07-30-2011, 09:21 AM
Dynamic array for UL method in HTML helper - by El Forum - 07-30-2011, 03:55 PM
Dynamic array for UL method in HTML helper - by El Forum - 07-30-2011, 05:22 PM
Dynamic array for UL method in HTML helper - by El Forum - 07-31-2011, 02:57 AM
Dynamic array for UL method in HTML helper - by El Forum - 07-31-2011, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB