cancel
Showing results for 
Search instead for 
Did you mean: 

Could I allocate a content type to a space?

raquelcasaus
Champ in-the-making
Champ in-the-making
Hello,

I would like to decide what content type users can create into a space. Is it possible?

I would like that my space called "Recipes Repository" have only content with the type: "recipe". When an user click on the create content link, I want that the default or unique content type was "recipe".

Thank you in advance.

Raquel.
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
Not out of the box, but with some customisation and configuration, yes, it's possible.

You could override the CreateSpaceDialog class and the configuration for the 'createSpace' dialog. In the finishImpl() method you could detect whether you are in the "Recipes Repository" space and if you are use your custom content otherwise use the default type.

This wiki page may help too: http://wiki.alfresco.com/wiki/Customising_The_Create_Content_Wizard as it shows how to customise an existing wizard (a dialog has the same concepts).

raquelcasaus
Champ in-the-making
Champ in-the-making
Hi,

Thank you. That´s just what i need.

Raquel.

seraphon
Champ in-the-making
Champ in-the-making
Hi

If you managed to make such a space like the one you described in the first post could you please share the process?

Regards seraphon

raquelcasaus
Champ in-the-making
Champ in-the-making
Hi, all,

I will not do this change due to I don't want to change the source, all my changes will be extensions and configuration. In this way, when I update the Alfresco version I will not loose my changes.

Thank you for your help.

Raquel.
Seville. Spain.