cancel
Showing results for 
Search instead for 
Did you mean: 

Limit Length of File Names

pixelwind
Champ in-the-making
Champ in-the-making
Hey there,

I'm trying to customize the Alfresco webclient for my needs. It it possible to limit the shown filename in the browse.jpsg to for example 32 characters?  I need this because some files have a very long filename and this destroy the layout.

Thanks for your replies
Anddreas
6 REPLIES 6

gavinc
Champ in-the-making
Champ in-the-making
There isn't anything out of the box to do this.

You could however change the queryBrowseNodes() method in BrowseBean and modify the "name" property for each node if the name is too long.

pixelwind
Champ in-the-making
Champ in-the-making
hey gavinc, thx for your reply. in which file do i have to do your mentioned modfications?

gavinc
Champ in-the-making
Champ in-the-making
org.alfresco.web.bean.BrowseBean, you'll find it in the web client project.

pixelwind
Champ in-the-making
Champ in-the-making
hm, i think the follwing one is a stupid question, but where do i find the file, folder, path…. ? i do not understand the path org.alfresco.web.bean.BrowseBean

kevinr
Star Contributor
Star Contributor
Download the SDK - then once you have unpacked it all, you want to look at the Java code called BrowseBean.java in the web-client project folder.

Thanks,

Kevin

pixelwind
Champ in-the-making
Champ in-the-making
Ok, thanks. I will dowload the SDK and try your hint. Andreas