Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > document selector View modes: 
User avatar
Certified Developer v6
Certified Developer v6
keiok-lincintegrated - 6/27/2010 10:17:51 PM
   
document selector
Hi people,

I make a textbox for input a document path.

does anyone know how i can use the document selector to select the location i need an update the textbox path?

Because of upgraded from version 4 to version 5... the selector dialog is different form control changed, i cannot get it works.

Please help, Thank you

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/8/2010 3:39:50 AM
   
RE:document selector
Hi,


1. If I get your point you have a field of document type (?) of Document selector field type. Is it right?

2. What does not work exactly? Do you get any error messages?

By the way, you can import form controls from fresh 5.0 installation to your upgraded site and re-write the old form controls.

Thank you in advance for your reply.


Best regards,
Helena Grulichova

User avatar
Certified Developer v6
Certified Developer v6
keiok-lincintegrated - 7/9/2010 2:36:22 AM
   
RE:document selector
in the custom form, there is a text box field that would need to fill with kentico folder path.

At version 3.1, the code will use javascript to call the document selector popup window for select the folder location and fill the text box with a path like "/images".

but in version 5, i cannot find how to make it happen. as i know i should use the form control. but there is no example or doc for me to know how i can use the form control.

Is anyone have idea on that?

I would like to do something that you can easily find it out in CMS manager, as following:

site manager --> settings tab --> (global) web site --> Default Alias field

you would see a text box and a "Select" button next to it. when you click select, a document sector window will popup and you can select the document / folder you need. click insert button in that popup window. window close and the text box is filled with the path you selected.


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/12/2010 8:56:14 AM
   
RE:document selector
Hello,

You can simply specify the document selector as a Field type. If you edit the field in administration interface select:

Attribute type: Text
Field type: Document selector

Do you have any problems with this approach?


Best regards,
Helena Grulichova

User avatar
Certified Developer v6
Certified Developer v6
keiok-lincintegrated - 7/12/2010 7:55:53 PM
   
RE:document selector
Because this form is a custom form, which is write in a aspx file and set in tool in CMSdesk, do you have any idea can put CMS UI control for custom form use?

I tried to create the tool box items in VS2008 with CMS bin folder some of the control.dll files. but i can't found one can be use in this case, although i can see that is a image/media selector, but i would still need to do some parameter pass to the UI control to get it work. and also, for document selector, the browser popup that with address bar, i can see the URL with Hash encrypted parameter, i must have that parameter with the correct encryted hash value to get it work with my textbox control.


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/22/2010 3:22:45 AM
   
RE:document selector
Hello,


did you try to register the Document selector control which is in:

<web site folder>\CMSModules\Content\FormControls\Documents\SelectDocument.ascx

? It already contains the textbox. Optionally, you could clone the control and make some custom changes.


Best regards,
Helena Grulichova