Lets say the user itself is able to add new branch templates.
And on a homepage item, insert options must consist of items inside that branch templates folder.
In sitecore, insert options can only be set to specific items. When I select a folder as an insert option, sitecore shows that folder item (which is perfectly normal).
I need to make something like either showing items dynamically inside a specific folder, or setting the starting path of insert options browsing dialog.
Is any of this possible ?
Blog post: https://sitecorealekseyshevchenko.wordpress.com/2017/09/19/dynamic-insert-options/
Create 'Dynamic Insert Option' template wich contains the only field 'Starting Path' type of 'Droptree' and source value is '{3C1715FE-6A13-4FCF-845F-DE308BA9741D}' - id of '/sitecore/templates' item.
Then add 'Dynamic Insert Option' template to list of templates in 'Base template' field of the template which should have dynamic insert options.
Patch 'uiGetMasters' processor with such config:
Implement GetDynamicInsertOption processor:
The result see on pic below: