Demand:
Our company needs to remove the front Liferay from the breadcrumb, as shown in figure:
We want to keep only "Welcome" and remove the "Liferay" in front.
Problem Analysis:
To address this need, we first need to find out how this welcome appears, defined in breadcrumb.jsp:
<liferay-ui:breadcrumb showcurrentgroup= "<%= false%>" showcurrentportlet= "<%= false%>" Showguestgroup= "<%= false%>" showlayout= "<%= false%>" showparentgroups= "<%= false%>"/>
We found this <liferay-ui:breadcrumb> definition, which is in the Liferay-ui.tld file:
<tag> <name>breadcrumb</name> <tag-class>com.liferay.taglib.ui.breadcrumbtag< ;/tag-class> <body-content>JSP</body-content> <attribute> <name> Displaystyle</name> <required>false</required> <rtexprvalue>true</rte
xprvalue> </attribute> <attribute> <name>portletURL</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attr ibute> <attribute> <name>selLayout</name> <required>false< ;/required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute
> <name>selLayoutParam</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>showcurrentgroup</
Name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>showCurrentPortlet</name> &
Lt;required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>showGuestGroup</name> <required>false</re
quired> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>showLayout</name> <required>false</required> <rte xprvalue>true</rtexprvalue> </attribute> <attribute> <NAME>SHOWP Arentgroups</name>
<required>false</required> <rtexprvalue>true</rtexprvalue> ;/attribute> <attribute> <name>showPortletBreadcrumb</name> <re
Quired>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag>