Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Path selector in Document Type View modes: 
User avatar
Member
Member
wensveen-evident - 8/8/2011 8:41:07 AM
   
Path selector in Document Type
Hi,

I would like to have a field in my document type where I can select a path. This can be done in webparts with a path selector, but this is not available in document types.
The field type that looks closest is the Document Selector, but this holds a GUID reference instead of a path string.

Any ideas?
Thanks,
Matthijs

User avatar
Member
Member
kentico_michal - 8/8/2011 9:07:18 AM
   
RE:Path selector in Document Type
Hello,

The Document Selector field type is storing only the GUID of the selected item. This is default behavior. If you want to display the alias path according to the given GUID number it is recommended to create the custom function called later in the transformation that would handle this task.

For more information I would like to point you to the following article:
How to display link to a document

Best regards,
Michal Legen

User avatar
Member
Member
wensveen-evident - 8/8/2011 9:12:22 AM
   
RE:Path selector in Document Type
I've just solved my problem. I really just needed the Path selector Form control, but this was not available for document types by default. In Site Manager > Development > Form controls > Path selector, you can just check "Show control in document types".

Didn't know you could do that, but now I do :)

Although I don't quite understand why this is not enabled by default...

Regards,
Matthijs

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/8/2011 9:44:07 AM
   
RE:Path selector in Document Type
Hi,

by default this control is not used in any example document type. Actually, it is used only in web parts. The control can be enabled easily in case it is needed. It would not be a good idea to enable all controls by default. There would be many items in the field selectors.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
wensveen-evident - 8/9/2011 3:44:55 AM
   
RE:Path selector in Document Type
Hi Ivana,
Thanks for your answer.

Maybe some future version could have some UI for selecting field types that are used less often. A "select other..." option in the dropdown could open a popup where one can choose any field type.

The ability to enable a field type when needed solves my problem, so, thanks for the help!
Matthijs