This project is read-only.

Placement of two same fields via

Topics: Customizing Orchard
Sep 15, 2013 at 2:40 PM
Edited Sep 15, 2013 at 2:41 PM
I have two same fields (Fields_MediaLibraryPicker ) in blogpost.
I want to display these fields in diferent places
<Match DisplayType="Detail">
<Place Fields_MediaLibraryPicker="Content:before:1"/>  
  [other fields]
<Place Fields_MediaLibraryPicker="Mata:after:1"/>  
How can i identify them one from the other ?
Sep 16, 2013 at 1:36 AM
You can distinguish between them by name, e.g.:
<Match DisplayType="Detail">
<Place Fields_MediaLibraryPicker-MyFieldName1="Content:before:1"/>  
<Place Fields_MediaLibraryPicker-MyFieldName2="Mata:after:1"/>  
(In this example, MyFieldName1 and MyFieldName2 are the technical names of the fields, not the display names).
Sep 16, 2013 at 3:05 PM