Additional:
If you want to only allow certain document types to be selected you could just add filter: "docType1, docType2, docType3"
And if you want to add a css class to the not allowed document types add: filterCssClass: "not-allowed not-published"
(not-allowed and not-published is css classes used by Umbraco, it will display them as greyed out and with a cursor of not-allowed.)
dialogService - define startnode
Hey
I'm trying to open a dialog that lists the children of a certain node. Heres some code:
How do i define the startnode?
Or how do i just list all content of a certain type?
Hi Tom
Don't know if you could perhaps benefit from reading Kevin's blogpost here http://blog.imulus.com/kevin-giszewski/umbraco-7-property-editor-weighted-content-list
In one of the code examples he is setting the startnode id like this: startNodeId:4217
Hope this helps.
/Jan
sadly, I couldn't get it to work.
I guess I need to use dialogService.treePicker, but again the documentation is sparse and I have no idea where to start.
So any inputs are welcome...
works :)
Hi Tom
Cool you got it working and thanks for sharing - So it seems that section and treeAlias should be defined? (Mandatory)
/Jan
Update: I didn't manage to get the solution above to work.
I'm currently running Umbraco 7.5.10
I had to use
customTreeParams
Additional: If you want to only allow certain document types to be selected you could just add
filter: "docType1, docType2, docType3"
And if you want to add a css class to the not allowed document types add:
filterCssClass: "not-allowed not-published"
(
not-allowed
andnot-published
is css classes used by Umbraco, it will display them as greyed out and with a cursor of not-allowed.)is working on a reply...