Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > DocumentSelector as a control View modes: 
User avatar
Member
Member
dima - 1/13/2011 5:42:39 AM
   
DocumentSelector as a control
Hello,

Is there anything in the system like the ImageSelector but only for the documents? So I could use it as a link selector?

Thanks

User avatar
Member
Member
kentico_michal - 1/13/2011 7:08:55 AM
   
RE:DocumentSelector as a control
Hi,

There is an Image selection field which you can add into your document type (Site Manager -> Development -> Document types -> Fields -> Field type: Image selection) and which allows you to add image to your document on the From tab.

If it is not want, could you please describe in more detail what exactly you want to accomplish, because I am not sure if I understand you correctly?


Best regards,
Michal Legen

User avatar
Member
Member
dima - 1/13/2011 7:23:10 AM
   
RE:DocumentSelector as a control
There is a control at the moment called CMS.Controls.ImageSelector. I can create a UserControl and in the code behind write the following code.

selector = new ImageSelector();
Controls.Add(selector);

This will allow me to select an image from the tree or from the media library.

That was an example.

What I need:
A similar control that would allow me to select a page from the tree. So I could.

selector = new PageSelector();
Controls.Add(selector);
button = new Button();
Controls.Add(button)

void button_click()
{
selectedPage = selector.value;
}

or something like that.

Hope thats clear

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/13/2011 7:31:39 AM
   
RE:DocumentSelector as a control
Hi,

For this you can use for example the Document Selector form control. Code file is placed here: ~/CMSFormControls/selectdocument.ascx

Best regards,
Ivana Tomanickova

User avatar
Member
Member
dima - 1/13/2011 8:43:02 AM
   
RE:DocumentSelector as a control
Thanks Ivana! Will try that!