I'm trying to modify a Content Picker in Umbraco in order to allow for a start node to be set when you are using macros.
The start node should either be the current node, or a fixed node. Is there anyway to create this? I've tried to "copy" the Content Picker that already exists but I'm failing, since it isn't allowing me to click the "add" button.
If anyone have struggled with this before, please send me a hint in how to solve it! :)
It allows creating of macro parameters based on a existing datatype. So you can create a MNTP datatype with start node set. And use this to create a macro parameter editor for it.
Content Picker with a Start Node in Macro
Hi!
I'm trying to modify a Content Picker in Umbraco in order to allow for a start node to be set when you are using macros. The start node should either be the current node, or a fixed node. Is there anyway to create this? I've tried to "copy" the Content Picker that already exists but I'm failing, since it isn't allowing me to click the "add" button.
If anyone have struggled with this before, please send me a hint in how to solve it! :)
Hi,
Did you ever solve this?
Thanks,
Lee
Hi guys.
Robert, I'm really interested in knowing if you manage to solve this.
Right now I have a Content Picker as a macro parameter, and I would love to set a start node, instead of the whole content tree.
Thanks!!
You could create a custom data type that inherits a node picker, set that to where you want the root to be
And then you've got to make it available as a macro parameter type
Could you not use the multinode tree picker instead and limit the max number of items to 1 and choose your start node.
Hi, Paul.
The problem is when you try to use it as a macro parameter. You can select Multinode Tree picker, but you can't configure it in a Macro.
You can only set the max items to 1 if you are using it as a data type in a doctype.
Has anyone managed to get it solved?
Hi all,
Have you tried this package ? https://our.umbraco.org/projects/developer-tools/parameter-editor-generator/
It allows creating of macro parameters based on a existing datatype. So you can create a MNTP datatype with start node set. And use this to create a macro parameter editor for it.
Dave
Hi Dave!
Thanks, this package is great. It helped us a lot!
And it would be even greater if it respected versioning, e.g. http://mysite.org/v1/umbraco ;)
Hi Ivan,
What do you mean with versioning ? Are you running Umbraco in virtual directory called v1 ?
Dave
Dave,
Yes, we do. Basically we could have URLs like: mysite.com/v1/umbraco mysite.com/v2/umbraco
As long as new feature comes out, we increment (create new virtual directory) app version.
Hi Ivan,
I think the package does not support that. But is easy to fix.
If you report here : https://github.com/skttl/ParameterEditorGenerator/issues
I will instruct the package creator on how to fix or do a PR.
dave
Thanks, Dave!
I have created the issue: https://github.com/skttl/ParameterEditorGenerator/issues/1
is working on a reply...