cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic assign a custom content type

themarcuz
Champ in-the-making
Champ in-the-making
Hi all,
I've created a custom model for alfresco, then I create e set of spaces where I create a rule for each space to specialize all the content in a particular way.
Let say that space1 will specialize all the new content in customType1.
Everything works fine… but I don't like the default way Alfresco handles the specialization. The custom property associated to type1 appears only after the creation wizard. That means that the user should add the new content, give it a title a description, etc, save it… and then go to the details page, edit the details and then add the costum property's values associated with the new type.
I'd like the custom property to be editable right before the saving of the content, durign the wizard… as it happens if the user chooses the custom content type from the "type" combobox selection right after the upload of the new content.
Is the scenario clear?
I'd simply like Alfresco to apply the custom content type during the wizard and not after.

I thought I could configure the UI to populate the "type" combobox with my custom type (deleting the standard content type)… something like: "when you are in a certain custom space type, show just this custom content type". Is that possibile just configuring Alfresco or it needs some kind of customization?
thanks for help
5 REPLIES 5

rbkprod
Champ in-the-making
Champ in-the-making
Was also wondering about this, since it's easy to just press cancel at the "modify custom properties screen". The file will still be uploaded but the user didnt even enter the custom mandatory properties.

zolesz
Champ in-the-making
Champ in-the-making
Have you found a solution yet? We face here the same problem.
A possible solution could be to overide add-content-dialog.jsp and use some beans extending AddContentDialog.java which correspond to my custom types. I could then reference those beans in my custom add-content-dialog-custom.jsp. It would mean I can display and save those properties during the wizard, but I have to implement validation, saving etc myself. I would really prefer a "standard" solution e.g. by configuring alfresco.

inocka
Champ in-the-making
Champ in-the-making
Find out any solution?

croc
Champ in-the-making
Champ in-the-making
The link above was very useful. The problem i have now is after selecting the Content Type that I have create. I want it to automatically select or link it to the aspect so that Metadata form fields will be generated based on the content type. E.g I have an Aspect called Test Aspect, which has three fields. and on the upload screen I have Test Content Type as the Content type. Now i want the Test Aspect to be selected automatically if the Test Content Type was selected on the upload screen.

Thanks,
Croc