ci-nested-sets icon indicating copy to clipboard operation
ci-nested-sets copied to clipboard

Path generation

Open ghost opened this issue 8 years ago • 5 comments

It would be nice to add a path field and implement the generation of the full path to the root element.

ghost avatar Mar 07 '18 10:03 ghost

Not sure I understand what you mean, sorry. Do you have an example?

olimortimer avatar Mar 07 '18 11:03 olimortimer

This is in Joomla (https://docs.joomla.org/Using_nested_sets). Also used nested sets but also has 2 additional alias and path fields. Example: first level page-id:1 alias:main path:main second level page id:2 alias:child path:main/child And so on.

ghost avatar Mar 07 '18 13:03 ghost

I may be wrong, but it's like he. https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Table/Nested.php

ghost avatar Mar 07 '18 13:03 ghost

I've not used Joomla for many, many years I'm afraid. Please feel free to contribute to the code with a PR if you wish to add this functionality.

olimortimer avatar Mar 07 '18 14:03 olimortimer

I certainly try, but I'm afraid my code will be relatively terrible :)

ghost avatar Mar 07 '18 14:03 ghost