cancel
Showing results for 
Search instead for 
Did you mean: 

Add Content / wizard framework

ajshaw
Champ in-the-making
Champ in-the-making
Is the add content wizard part of the wizard framework?

If so, where is the xml defining the steps. I have completed customisations to the create content wizard, who's xml is in web-client-config-wizards.xml. I would like to do the same to the Add Content wizard.

Thanks.
5 REPLIES 5

gavinc
Champ in-the-making
Champ in-the-making
Yes and No. The backing bean uses the base classes of the dialog framework but the JSP does not.

As we have to jump through some hoops to support file uploads in a portal server the add content page is having to do some stuff that is not possible in the dialog/wizard container.

The action used to launch the page is "addContent" so this goes through the default JSF navigation rules. Therefore, you could replace this JSP with a your custom version by overriding the JSF navigation rule for addContent i.e.


….
<navigation-case>
   <from-outcome>addContent</from-outcome>
   <to-view-id>/jsp/extension/your-add-content-dialog.jsp</to-view-id>
</navigation-case>
….

For details on how to accomplish this have a look at: http://wiki.alfresco.com/wiki/Customising_An_Alfresco_JSP

ajshaw
Champ in-the-making
Champ in-the-making
Thanks Smiley Very Happy

slothrop
Champ in-the-making
Champ in-the-making
I would like to modify the "Modify Content Properties" dialog that appears after add-content-dialog.jsp if the "showOtherProperties" checkbox is checked.  As far as I can tell this is not generated in add-content-dialog.jsp.

I would like to disable the Finish button unless a boolean custom-aspect property has been set to true.  It appears that I could make a CustomAddContentDialog class which extends AddContentDialog and override the getFinishButtonDisabled() method from BaseContentWizard to return true unless the property has been set to true but it's not apparent how to get a reference to the property to determine its value.

I also would have to change the references in the jsp to the new class but it doesn't look like it is add-content-dialog.jsp that would need to be changed … or is it?

roman
Champ in-the-making
Champ in-the-making
Got problems with the Add Content Wizard.

My aim is to write a custom wizard which is kind a Add Content Wizard with extended functionality. but i would like to keep the standard Add Content wizard too.

i've read this threads:
http://forums.alfresco.com/viewtopic.php?t=9297&highlight=addcontentdialog
http://forums.alfresco.com/viewtopic.php?t=944&highlight=addcontent

but i still don't know which is the right solution.

i need a method of resolution…
it's hurrying

thx in advance

roman
Champ in-the-making
Champ in-the-making
if i change the navigation-case for the addContent action
it has influence on the standard add content wizard behaviour….