cancel
Showing results for 
Search instead for 
Did you mean: 

change the breadcrumb label

pallavi_jain
Champ in-the-making
Champ in-the-making
In Alfresco Explorer breadcrumb, the initial location has the label Company Home.
I want to change this label to My Data.
Are the required changes to be made in breadcrumb.jsp in the following line?
<a:breadcrumb value="#{NavigationBean.location}" styleClass="headbarLink" />

which class should I modify?
please help..
15 REPLIES 15

mitpatoliya
Star Collaborator
Star Collaborator
If you want to change the initial location then that you can do as follow.
Go to user profile,
Under General Preferences you can see "start location".
That you can change to set it to one of the four options available there.

Now as far as Company Home label is concerned if you want to change that I thing you need to customize the UINavigator class which is responsible for generating the breadcrumb.

pallavi_jain
Champ in-the-making
Champ in-the-making
thanks mitpatoliya Smiley Happy
can you please look at the code of UINavigator and mention where to change.
Does it has anything to do with UIBreadcrumb.java?

mitpatoliya
Star Collaborator
Star Collaborator
Yes UIBreadcrumb is the class which is responsible for generating breadcrumb.
And It uses Navigation bean to get the value of current node and append the name of that node in to the path shown in the breadcrumb.
If you see the code of that Navigation bean there is method getLocation() from there You need to return the node of whatever space you want to show on startup.

pallavi_jain
Champ in-the-making
Champ in-the-making
no, mitpatoliya..
I just need to change the label "Company Home" and not the location.
It means the location remains same, and the label changes to "My Data".
the breadcrumb should be like..
My Data>Data Dictionary
instead of
Company Home>Data Dictionary

mitpatoliya
Star Collaborator
Star Collaborator
If you just want to change the label its very simple.
all the labels are fetched from the property file called webclient.properties
there you can find "company_home" label
you can either change the original value or override it to fetch from your property file.

muralidharand
Star Contributor
Star Contributor
Hi,
I also tried this some times back, but it is changing value in the left hand side and but not on the breadcrumb.

pallavi_jain
Champ in-the-making
Champ in-the-making
Murali is right!
I tried overriding properties file.
It does not change the label of the breadcrumb.
Any other suggestion, mitpatoliya?

mitpatoliya
Star Collaborator
Star Collaborator
Yes, I have noticed it in code.
Checkout Navigation bean class
Method : public void processToolbarLocation(String location, boolean navigate)
if (LOCATION_COMPANY.equals(location))

At this point they are passing companyhome node and its name
elements.add(new NavigationBreadcrumbHandler(companyHome.getNodeRef(), companyHome.getName()));

companyHome.getName() needs to be replaced with your name.

pallavi_jain
Champ in-the-making
Champ in-the-making
Thanks alot..
You have been very helpful.
The problem is solved..can i bother you a little more?

I also want the label "Company Home", which appears left to open network icon, to be "My Data".
How can I accomplish this?