Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Document Types & Forms View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/27/2012 10:16:21 PM
   
Document Types & Forms
Looking for a way to reuse a document type across multiple sites on a single instance. For instance if I take the FAQ doc type and site 1 uses the fields out of the box. Then on site 2 I need to add 2 more fields but those fields should not be available to site 1.

What's the best way to go about this task without creating a whole new very similar document type?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/1/2012 4:03:09 AM
   
RE:Document Types & Forms
Hi,

cannot you simply create a new document type which will inherit from the original document type, setting Inherit fields from document type?

Then you could use this child document type only on the Site 2.

Best regards,
Ivana Tomanickova

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 10/3/2012 9:17:01 AM
   
RE:Document Types & Forms
So thats an idea but idealy what I'd like to do is just use the same doc type and create Alternative Forms. I guess now the question is how do I display a specific alternative form on the Page>Form tab of a document in the CMSDesk. By default it chooses the main form and I'd like to have them different per site.

User avatar
Member
Member
davids-kentico - 10/5/2012 3:43:08 AM
   
RE:Document Types & Forms
Hi.

Do I get this correctly that you want to have a single document type on multiple sites and have some fields available only on one of the sites?

If so, and you don't mind storing empty values in those fields on other sites, you can just hide them on the sites where you don't want the fields to be available on.

1. Edit your document type.

2. On the Fields tab, select the field that you want to hide.

3. Scroll down to Field advanced settings and enter a macro condition into the Visible condition box. Example:

CurrentSite.SiteName == "CorporateSite"


4. Save the field.

This will display the editing field only on the Corporate site and hide it on the other sites.

You gotta make sure though, that the fields are allowed to store empty values (check the Allow empty value box when editing the field).

Does this make sense?