cancel
Showing results for 
Search instead for 
Did you mean: 

Web-Client custom configuration

buzman
Champ in-the-making
Champ in-the-making
Hi,
  I'm in the process of porting our code/config changes across from v 1.1.2 to the new extension mechanism in v 1.2. I've read through the Wiki pages and forums, but there's a couple of areas I'm not clear on:
  1. Is there a recognised way to make 'extensions' to webclient.properties, rather than editing the original file?

  2. We've made a fair few changes to the faces-config*.xml files. Is there a mechanism we can use to incorporate these changes without having to apply the changes to the original files?
Thanks
Ben
5 REPLIES 5

gavinc
Champ in-the-making
Champ in-the-making
Hi Ben,

Question 1. It's best not to modify our file as this will give you upgrading headaches (although it's unavoidable in some scenarios at the moment, we're working on that for 1.3).

The line

<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>


includes a properties file and allows references via "msg" so you could do the following in your page:

<f:loadBundle basename="your.package.propsfilename" var="yourmsg"/>

and then do things like:

<h:outputText value="#{yourmsg.your_string}" />

This would at least allow you to have a separate file so you don't have to worry about merging when you upgrade.

Question 2. Yes there is, I mentioned it in the reply to your other post: http://www.alfresco.org/forums/viewtopic.php?t=1217

buzman
Champ in-the-making
Champ in-the-making
Gavin,
Just what I was looking for - many thanks again for the help.

Ben

buzman
Champ in-the-making
Champ in-the-making
One related question - having created a separate message bundle properties file, is there any way to tell the core app to look in this alternative bundle when trying to resolve the displayLabelId of a node property?

For instance, if I have a custom properties on my custom node type, and in the webclient config I've defined  :
<config evaluator="node-type" condition="etl:abc">
  <property-sheet>
    <show-property name="etl:clientStatus" displayLabelId="client_status"/>
    <show-association name="etl:policy" displayLabelId="policy"/>
  </property-sheet>
</config>

can I tell the app to look in my alternative resource bundle to get the values of 'client_status' and 'policy'?

Thanks
Ben

gavinc
Champ in-the-making
Champ in-the-making
No, unfortunately there isn't  Smiley Sad

I will add this as an item to look at in the customization improvements for 1.3.

gavinc
Champ in-the-making
Champ in-the-making
Actually thinking about it there is a workaround.

If you don't specify a label at all the title is picked up from the data dictionary. I presume you have a custom model, there should/could be a properties file associated with it for the default title and description. You could rely on these to get the localized strings.

Have a look at http://www.alfresco.org/mediawiki/index.php/Data_Dictionary_Guide#Model_Localization for more info.