Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > New Document types + File Upload View modes: 
User avatar
Member
Member
izzuddin-istar.com - 9/28/2010 3:30:15 AM
   
New Document types + File Upload
ALrite here how it goes

1) I managed to create 1 document types name : [ star.gallery ]

2) I tried to have something similar as : [ CMS.File ]

3) With plus 1 more field in new table name

4) I managed to insert data using standard form AND
NOT using this 2 page for new page and edit
[ ~/CMSModules/Content/CMSDesk/New/NewFile.aspx ]
[ ~/CMSModules/Content/CMSDesk/View/ViewFile.aspx ]

5) But the thing is the format type is different...

User image

6) Coz i need it to create Image gallery which read from this folder. But it doesnt show
anything

7) Is there any other way instead of cloning the NewFile.aspx

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/6/2010 6:43:08 AM
   
RE:New Document types + File Upload
Hi,

I am sorry but I am not sure if I am getting the right meaning.

What is the name of the document (file) you have created in the content tree?
Do you want to have different document type icons for each file type?

The image gallery is pre-defined to list only document type "CMS.File". You need to modify the web part code behind file \CMSWebParts\Viewers\Documents\ImageGallery.ascx.cs and set the ClassNames property:

lstImages.ClassNames = "cms.file";

to be like this:

lstImages.ClassNames = "cms.file;star.gallery ";

(or only star.gallery if you do not want to list the cms.file documents).

You may also need to modify the transformation and change the column names (field names) to match the names in your custom docment type.

Best regards,
Juraj Ondrus