Using Orchard 1.6, I've set up a form that allows the user to upload an image (using a field).
I want the user to be able to navigate to a search page (on the dashboard) that allows them to search through all the uploads relating to this form. Bear in mind, this user will have some authority, so they can access the dashboard (but can't access the 'content' section, which allows the user to search through all the content items). Also, I only want the content items for this content part to be listed.
I've set up a new controller and a view, so the user can access an empty page on the dashboard. In the function, I want to display a list of all the content items for that content type and include a search feature.
The trouble is, where I have done this before I have been using the tables I created myself ("Supplier", for example) and used a loop to add to another list if it's a match, and then display that second list.
However, the content items are saved to their own contentItemRecord
as a column:
<Data><AddressPart>
<Name></Name>
<AddressLine1></AddressLine1>
<AddressLine2></AddressLine2>
<Zipcode></Zipcode>
<City></City>
<Country></Country>
</AddressPart>
</Data>
How can I use this to search?