I am creating a module that defines the part / type of product content. Part of the content includes properties that are simple data elements, for example. item number, unit price. But it also includes more complex data - images, long and short (html) descriptions.
I began the journey of using Orchard Fields for complex data. Thus, I get the benefits of the editor from the Text and MediaLibraryPicker fields. I do not need to create these editor features in my editor template.
Most of the data that will be stored in this part of Orchard already exists in another system, but marketers who work in Orchard will want to change / supplement some of the data. When adding a new product content item to Orchard, I would like to request the item number. When the item number is full, I will call the web service to retrieve the product information from the external database. I would like to fill out the fields on the New Products page with this information. Then the marketer will have the opportunity to edit / supplement the information extracted from the external database.
I am just starting out with Orchard and am not sure of a better approach to this. My initial thought was that in razor mode, an AJAX call must be turned on to pull data. Is this a better approach? My view includes only some โfieldsโ, only those that are properties of my view model, and not those that are defined as fields in my migration. I suppose this should not stop me, but it seems strange that the javascript in the view will refer to input elements that are dynamically added for fields in my part of the content.
Is there any other approach I should consider?
Edit
, , , " " . . , , . , โโ .
. , , , . , .
, , , Orchard ( 1.8).