Content Item Default value from Presentation or ListContent

May 11, 2016 at 4:09 PM
Is it posible to define content item field default value from
data entered in presentation or ListContent data.
May 11, 2016 at 4:39 PM
please be more specific. real examples help.
May 11, 2016 at 5:04 PM
Whit this I try to solve solution from:
How to get ListContent from Content item

Becouse that way I culd make category be prefilled automaticly from location (instance) of news app,
ant that way I could backtrack category in list of all news.
May 11, 2016 at 7:30 PM
So prefilling is possible, using the prefill property. If you're using the newest 2sxc 8.4.5 or something, you should be able to use something like

@Edit.Toolbar(actions: "new", contentType: "NewsItem", prefill = new { Category = "something" } )

You should have a Sherlock-Snippet in the template editor that helps you with this.
May 11, 2016 at 7:42 PM

missed this in Sherlock-Snippet.