Re: Looking for Model Title using Alfresco API service
The getTitle operation will first look into any registered i18n message bundles before falling back to the title in the model XML. Chances are, you have a localisation entry for that type in one of your message properties files.
Thanks for always guiding and helping. If I am getting it right, you mean to say that first it will looking into messages . properties file? As while trying to get desired output I tried changing . properties file in messages of Alfresco in SDK but still was getting Type attached to it for some and for some it was working fine.
Should I try changing both model.xml and model.properties title as same?
Also should I need to change share messages file?.
Re: HiRe: Looking for Model Title using Alfresco API service
Of course you do not have to change the Share properties files if you are only working with the Repository APIs.
There is no need to change model XML and properties files just for i18n/l10n updates, as long as you don't add / remove / rename model types, aspects, properties etc.
Since you are getting "Type" attached you will most definitely have a properties file which contains the exact text you are getting - simply do a search over all text files for that and you should find it. Alfresco never adds a "Type" text to any value maintained in XML or properties on its own.