Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
sravan kumar
breadcrumb implementation in liferay
June 9, 2014 12:43 AM
Answer

sravan kumar

Rank: Junior Member

Posts: 78

Join Date: February 19, 2013

Recent Posts

where i can find breadcrumb implementation in liferay source?
Subhash Pavuskar
RE: breadcrumb implementation in liferay
June 9, 2014 3:12 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

Hi ,

You can find it in source code of portal, in file portal-impl\src\VM_liferay.vm.
Meera Prince
RE: breadcrumb implementation in liferay
June 9, 2014 3:27 AM
Answer

Meera Prince

Rank: Liferay Legend

Posts: 1110

Join Date: February 8, 2011

Recent Posts

Hi
Use following tag and provide required attributes

<liferay-ui:breadcrumb
displayStyle="<%= displayStyle %>"
showCurrentGroup="<%= showCurrentGroup %>"
showCurrentPortlet="<%= showCurrentPortlet %>"
showGuestGroup="<%= showGuestGroup %>"
showLayout="<%= showLayout %>"
showParentGroups="<%= showParentGroups %>"
showPortletBreadcrumb="<%= showPortletBreadcrumb %>"
/>

https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/portlet/breadcrumb/view.jsp

Regards,
Meera Prince
sravan kumar
RE: breadcrumb implementation in liferay
June 9, 2014 4:19 AM
Answer

sravan kumar

Rank: Junior Member

Posts: 78

Join Date: February 19, 2013

Recent Posts

Ho can we enable or disable breadcrumb in liferay themes?
Subhash Pavuskar
RE: breadcrumb implementation in liferay
June 9, 2014 5:52 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

2 ways that i know

1.
You can remove the breadcrum by commenting out the following lines of code in portal-normal.vm file present in path
liferay-tomcat6.x/webapps/ROOT/html/themes/classic/templates

1<nav class="site-breadcrumbs" id="breadcrumbs">
2<h1>
3<span>#language("breadcrumbs")</span>
4</h1>
5
6#breadcrumbs()
7</nav>


Not a good practice to modify the default themes provided by liferay so it's better to do the above changes in your custom theme.

2.

Go to look and feel of your site pages (Public or Private) and add the following CSS
1.site-breadcrumbs { display:none; }