Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Matt Passmore
Breadcrumbs
19. März 2013 11:27
Antwort

Matt Passmore

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 25. Februar 2013

Neue Beiträge

By default, my breadcrumb trail looks like this...

intranet - home - departments - finance

1. How do I eliminate 'intranet' from the trail?

2. How do I stop the breadcrumbs from appearing on my home page? Is there an if stmt I can put around the breadcrumb code in portal_normal.vm?

I've seen some previous threads refer to modifications of the portal.properties file. Not sure where to find that, as my dir search returns multiple files with that name.

thanks,
Matt
Rahul Pande
RE: Breadcrumbs
22. März 2013 00:21
Antwort

Rahul Pande

Rang: Regular Member

Nachrichten: 229

Eintrittsdatum: 6. Juli 2010

Neue Beiträge

Hi Matt,

1. How do I eliminate 'intranet' from the trail?

If you are using Liferay 6.0.6 then there are following configuration available in portal.properties file

##
## Breadcrumb Portlet
##

#
# Set this to true to show the Guest community as the top level parent in
# the breadcrumbs. It will only show if it has at least one page.
#
breadcrumb.show.guest.group=true

#
# Set this to true to show the path of parent communities or organizations
# in the breadcrumbs. An community or organization will only be shown if it
# has at least one page.
#
breadcrumb.show.parent.groups=true

2. How do I stop the breadcrumbs from appearing on my home page? Is there an if stmt I can put around the breadcrumb code in portal_normal.vm?

Yes, you can hide breadcrumb conditionally for home page. For that you have to create custom theme and override the portal_normal.vm file. Please refer following link for more information on Theme in Liferay.


Thanks
Rahul
Matt Passmore
RE: Breadcrumbs
5. April 2013 07:26
Antwort

Matt Passmore

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 25. Februar 2013

Neue Beiträge

1. That seemed to work.
I don't see my 'home' page in the breadcrumbs. I hid it, as it was showing up as part of the navigation menu. Is there a way to prevent the home page from appearing as the first menu item without hiding it?

Also, if I nest all my pages under home, they don't populate the navigation. I have to create them on an equal level as the home page. Thus, the home page no longer appears as the parent in the breadcrumb trail.

2. That link appears to take me to general theme info. I'm looking for the syntax, a specific example of an #if stmt for hiding the breadcrumbs on the home page.