Set label template in Archetype using Multinode Treepicker
How do I set the label to show e.g. the document name instead of the document id while using a Multinode Treepicker. This info is not in the json so is there a helper method in Umbraco that I can use for this.
To get the document id I use {{product}} in the data type label
It would be nice that the image below said "Reveal 802" in the lable instead of "1058" and "Flashback Delay" instead of "1081"
Hi Soren,
Yes it can be done but would most likely require the Archetype guys to modify the underlying code a little.
But with an AngularJS service/resource that the Umbraco core guys have written the content node could be querried from the ID you have stored and get more data like the node name in your case.
Awesome, Warren! Thanks for the tip. If I felt more comfortable with Angular I'd try to implement that in the Archetype source. Maybe in a few weeks ;-)
Unfortunately I do not have the time to do a Pull Request to the Archetype guys, but if you bring it to their attention & link back to this thread as reference about the implementation then they would easily be able to do it :)
Set label template in Archetype using Multinode Treepicker
How do I set the label to show e.g. the document name instead of the document id while using a Multinode Treepicker. This info is not in the json so is there a helper method in Umbraco that I can use for this.
To get the document id I use {{product}} in the data type label
It would be nice that the image below said "Reveal 802" in the lable instead of "1058" and "Flashback Delay" instead of "1081"
I'd love this feature also!
Hi Soren,
Yes it can be done but would most likely require the Archetype guys to modify the underlying code a little.
But with an AngularJS service/resource that the Umbraco core guys have written the content node could be querried from the ID you have stored and get more data like the node name in your case.
http://umbraco.github.io/Belle/#/api/umbraco.resources.contentResource
Awesome, Warren! Thanks for the tip. If I felt more comfortable with Angular I'd try to implement that in the Archetype source. Maybe in a few weeks ;-)
Unfortunately I do not have the time to do a Pull Request to the Archetype guys, but if you bring it to their attention & link back to this thread as reference about the implementation then they would easily be able to do it :)
Cheers,
Warren :)
Hi guys,
I had a same issue and I did a quick fix. and i thought i'll share with you guys.
I'm not sure if this is the efficient ways of doing it but it works :)
NOTE: I'm not a Archetype developer or Umbraco official developer
archetype.js @ line 191
Cheers Shinsuke
is working on a reply...