Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > create custom document type "file" View modes: 
User avatar
Member
Member
Philip - 7/2/2009 8:29:27 AM
   
create custom document type "file"
Hello,

I would like to create a customized version of the document type "file". It's basically identical to the default document type file, but it contains two additional fields.

If I create a new document type similar to file, the behaviour is not as I would like it. i.e. if I open an URL of a document type file (ex. \file1.aspx) and that file has an attachment (ex. file1.pdf), the file attachment is automatically opened and displayed in the browser.
However in my custom document type, it does not display the attachment.

Could somebody give me a hint how I can make the custom document type behave similar to the document type file?

(The only difference I can find is the query "selectattachments", which the custom document type misses.)

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 7/5/2009 2:57:03 AM
   
RE:create custom document type "file"
Hi Philip,

Unfortunately, this feature is hard-coded for CMS.File document type only. Could you please eventually add new fields directly to CMS.File document type and use this document type instead?

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Philip - 7/6/2009 3:00:55 AM
   
RE:create custom document type "file"
Thank you for your answer.

User avatar
Member
Member
lisa@lisadowdell.com - 4/3/2012 4:34:38 PM
   
RE:create custom document type "file"
Has this changed for version 6.0, or is this the only way I can have the same functionality of the CMS.File document type?

User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 4/4/2012 9:51:12 PM
   
RE:create custom document type "file"
Hello.

This functionality has not been changed since previous version, so it is still the same.

Best Regards,
Radek Macalik