cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Type label not shown on Change Type window

ncunha
Champ in-the-making
Champ in-the-making
Hello.

According to the wiki, here: http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Model_Localization , the custom type title and description should be set on the Resource Bundle registered in the extension.dictionaryBootstrap bean, but even if so, the Change Type dialog window in Share won't display the custom type label.

Share shows the type properties labels, which are defined in the same Resource Bundle, but in the Change Type window it displays the type name as type.<prefix>_<typeid>. The only type that is shown using a label is the ws:article from the wcmqs model.

Searching around I found that the ws:article label is set in the file \tomcat\webapps\share\WEB-INF\classes\alfresco\messages\wcmquickstart.properties so I tried to copy/edit that file to \tomcat\shared\classes\alfresco\messages\wcmquickstart.properties but it produced no changes.

Directly setting the label using

type.cgdi_comercialOferta=Comercial > Oferta
type.cgdi_comercialPhase0=Comercial > Phase 0
in the \tomcat\webapps\share\WEB-INF\classes\alfresco\messages\wcmquickstart.properties works as expected.

Here's the result:
[img]http://img38.imageshack.us/img38/3042/changetype.th.png[/img]

Can I set the label using a resource bundle the "shared" folder like it's stated in the wiki page? If not how can I do it without hacking in the webapps/…/* volatile folders?

Best regards.
3 REPLIES 3

fstnboy
Champ on-the-rise
Champ on-the-rise
Hi,

Check this post I recently replied: http://forums.alfresco.com/en/viewtopic.php?f=47&t=39202#p114872

Hope that helps to solve your issue.

Adei

paiyyavj13
Star Contributor
Star Contributor
Hi ncunha,

try adding the- "type.<prefix>_<typeid>" in the below file… shud work fine.
C:\Alfresco\tomcat\shared\classes\alfresco\web-extension\custom-slingshot-application-context.xml

Regards,
Vijay.

cfusi
Champ in-the-making
Champ in-the-making
Hi,

a recap:
1) You have to create a resource file (e.g. yourModel.properties ) in which you put the string as Vijay has said. That is
type.<prefix>_<typeid>
2) You have to "say to Alfresco Share" how to read this properties file. You do this in custom-slingshot-application-context.xml file. Please follow the link posted by Adei (http://forums.alfresco.com/en/viewtopic.php?f=47&t=39202#p114872)

Hope this is helpful!!

Cheers