Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Using the InsertImageOrMedia Selector View modes: 
User avatar
Member
Member
agerace-ag.state.oh - 2/10/2010 9:08:24 AM
   
Using the InsertImageOrMedia Selector
I'm developing a custom module and I wanted to use the InsertImageorMedia Selector. Can you explain how to use this in a Custom Module?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 2/11/2010 5:09:46 AM
   
RE:Using the InsertImageOrMedia Selector
Hello,

Could you please specify in more detail, where do you want to use this selector and how it should look like? What locations you want to display?

Here is some general information:
You can find the tutorial for creating custom form controls under this link. there is an example of how to import it into Kentico. All the files of the mentioned control are located in the directory ~CMSFormControls\Selectors\InsertImageOrMedia\.

Best regards,
Boris Pocatko

User avatar
Member
Member
TonyG - 2/11/2010 9:14:59 AM
   
RE:Using the InsertImageOrMedia Selector
Yes, I realize I did not explain it well enough.

I use a DetailsView Asp.net control in my Custom Module im creating

Im using the <cms:ImageSelector> however I am having trouble binding it to the ImageGuid that is in a database. How to do I bind this?

User avatar
Member
Member
TonyG - 2/11/2010 2:48:02 PM
   
RE:Using the InsertImageOrMedia Selector
I figured it out, I'm kind of new to the whole Details View control, but this is how I did it.

      <cms:ImageSelector runat="server" id="AppImageSelector"  UseImagePath="true"  Value='<%# Eval("ApplicationImage") %>' /> 


Application Image is a Column of the Image GUID in the database. This really threw me because the Value attribute was not available in the code behind, only on the page.