cancel
Showing results for 
Search instead for 
Did you mean: 

Custom *.config.xml within extension module

alejandrogarcia
Champ in-the-making
Champ in-the-making
Hi folks,

Do anybody know whether it would be possible or not to customize any *.config.xml similarly as *.properties are customized  (http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/tu-share-i18n-customize.html)? I did some tests without success.

Thanks in advance.

Regards.
5 REPLIES 5

afaust
Legendary Innovator
Legendary Innovator
Hello,

you can customize some configurations using the enhanced extension module features in Alfresco 4.2. Please see the blog post of David Draper to see if this fits your needs.

Regards
Axel

alejandrogarcia
Champ in-the-making
Champ in-the-making
Hi Axel,

Thanks for your answer and I'm sorry for my late reply.

Perhaps I didn't explain properly my initial question, what I would like to customize are the *.config.xml files of webscripts. For example, I would like to customize toolbar.get.config.xml from the original content:

<toolbar>
   <!– The create content menu can be configured in share-documentlibrary-config.xml –>
   <actionSets>
      <actionSet id="default">
         <action type="action-link" id="onActionDownload" label="menu.selected-items.download" />
         <action type="action-link" id="onActionCopyTo" label="menu.selected-items.copy" />
         <action type="action-link" id="onActionMoveTo" permission="Delete" label="menu.selected-items.move" />
         <action type="action-link" id="onActionAssignWorkflow" asset="document" label="menu.selected-items.assign-workflow" />
         <action type="action-link" id="onActionManagePermissions" permission="ChangePermissions" label="menu.selected-items.manage-permissions" />
         <action type="action-link" id="onActionDelete" permission="Delete" label="menu.selected-items.delete" />
         <action type="action-link" id="onActionCloudSync" asset="document"  permission="CreateChildren" label="menu.selected-items.cloudSync" notAspect="sync:syncSetMemberNode" syncMode="ON_PREMISE" />
         <action type="action-link" id="onActionCloudSyncRequest" label="menu.selected-items.cloudRequestSync" hasAspect="sync:syncSetMemberNode" syncMode="ON_PREMISE"/>
      </actionSet>
   </actionSets>
</toolbar>

To:

<toolbar>
   <!– The create content menu can be configured in share-documentlibrary-config.xml –>
   <actionSets>
      <actionSet id="default">
         <action type="action-link" id="onActionDownload" label="menu.selected-items.download" notAspect="icmr:notDownloadable"/>
         <action type="action-link" id="onActionCopyTo" label="menu.selected-items.copy" notAspect="icmr:notDownloadable"/>
         <action type="action-link" id="onActionMoveTo" permission="Delete" label="menu.selected-items.move" />
         <action type="action-link" id="onActionManagePermissions" permission="ChangePermissions" label="menu.selected-items.manage-permissions" />
         <action type="action-link" id="onActionDelete" permission="Delete" label="menu.selected-items.delete" />
      </actionSet>
   </actionSets>
</toolbar>

Just to remove some actions.

I already know it could be doable by customizing toolbar.lib.js within a extension module, but I'm looking for an easier way. If it is not possible to customize *.config.xml files through extension modules I will just use the web-extension directory…

Regards.

Hi!

I'd also like to know how to do this. I've tried to add a *.config.get.xml file with some custom configuration in it, but it doesn't get picked up by Share.

Kind regards,

Niklas

ddraper
World-Class Innovator
World-Class Innovator
Hi,

It's not possible to customize .config.get.xml files in this way. The reason for this is that the .config.get.xml file will only ever be converted into data stored in the WebScript model by the JavaScript controller. Therefore it should be possible to make customizations directly in the JavaScript controller. Also, we are moving away from using those types of configuration files and actively trying to define everything directly in the controller.

Regards,
Dave

Hi Dave,

Thanks for clarifying it is not possible to do that. Marked as solved.

Regards.