Replies: 1 comment 3 replies
-
Are you willing to share the code, with screenshots of the areas in JCB used... then I see if I can automate that for all ;) as this sounds like a very useful feature. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Joomla has native support for nested sets, which is a method of storing hierarchical data. The bare minimum to getting them working is described here: https://docs.joomla.org/Using_nested_sets
The gist is they have made a table class you can inherit called JTableNested that does most of the work for you. You just have to add a few extra fields and add a bit of code to add the root node if it doesn't exist, make it the parent of items by default, and call functions to insert/reorder items.
JCB makes this pretty easy to implement with fields and custom code, using that article I linked to as reference. I've already done it in my project, I mainly just asked this as a signpost for future searchers, but if there is a way I've missed I'd love to know!
Beta Was this translation helpful? Give feedback.
All reactions