cancel
Showing results for 
Search instead for 
Did you mean: 

set default webapp

tonizz
Champ in-the-making
Champ in-the-making
do you know how to set as default webapp folder another different from ROOT ??? I have tried from "edit web project settings" but the option is disabled.

Thanks
7 REPLIES 7

kvc
Champ in-the-making
Champ in-the-making
Ah!  No means currently.  Recommendation:  make the source code modification, file an issue in JIRA, and add the modified source code to the JIRA ticket.  We evaluate the contribution for possible clean-up, QA, and inclusion in both our Community and Enterprise codebase (Enterprise being point-in-time branches of the Community codeline for stabilization and maintanence releases).

This would be a great contribution!

Kevin

vijay_alfresco
Champ in-the-making
Champ in-the-making
Even in Alfresco 2.9.0 (dev 646), this is not fixed, please let me know which files to modify

vijay_alfresco
Champ in-the-making
Champ in-the-making
Currently, the deployment option in the WCM accepts only the IP. We have configured 10 websites in WCM and each website should go to a different folders on the remote location.

We have setup deployment receiver and everything seems to work good for one website as the ROOT folder files of one of the webproject are copied to ROOT folder on the remote location. For the other webprojects, I need to create a webfolder for each webproject with a different name and need to select the folder when ever I need to copy content which is a tedious process and then I can deploy to a folder with that name on remote location and hence I need to have an option to override the ROOT with the new webfolder name.

Thanks,
Vijay

vijay_alfresco
Champ in-the-making
Champ in-the-making
I found the files to be modified, the files are

1. alfresco\jsp\wcm\create-website-wizard\details.jsp
<h:inputText id="webapp" value="#{WizardManager.bean.webapp}" size="45" maxlength="256" disabled="false" />


2. alfresco\WEB-INF\classes\alfresco\web-client-config-properties.xml
        
<show-property name="wca:defaultwebapp" read-only="false" />


and now I am able to modify the default webfolder from ROOT


Thanks,
Vijay

vijay_alfresco
Champ in-the-making
Champ in-the-making
The following template should also be modified to take dynamic project name

classes\alfresco\templates\webscripts\org\alfresco\portlets\mywebfiles.get.html.ftl


Change
<#assign moditems = avm.getModifiedItems(storeId, username, "ROOT")>

to
<#assign moditems = avm.getModifiedItems(storeId, username, "${wp.name}")>

kvc
Champ in-the-making
Champ in-the-making
Vijay:


NICE!  Could you possibly file a JIRA issue (a feature improvement) and append your updated source code?  This sounds like we need to review to potentially include in future distributions!


Kevin

vijay_alfresco
Champ in-the-making
Champ in-the-making
Created a JIRA issue under

http://issues.alfresco.com/browse/WCM-993