Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Jack Tian
breadcrumb issue or not
24 de Julho de 2012 19:52
Resposta

Jack Tian

Ranking: New Member

Mensagens: 6

Data de entrada: 7 de Maio de 2012

Mensagens recentes

First time to page, the breadcrumb links is "Liferay-> site-a-local-> Site-a-cms-> Home", and when i click the document and media portlet's home link in this page, the breadcrumb changed to "Liferay-> Site-a-cms-> Home", it missing the site info, is it a bug for the breadcrumb? actually, i want link to "Liferay-> site-a-local-> Site-a-cms-> Home" even click the home or not... any idea?







thanks
Jack
Anexo

Anexos: 无标题.png (45,7k)
Jack Tian
RE: breadcrumb issue or not
24 de Julho de 2012 20:40
Resposta

Jack Tian

Ranking: New Member

Mensagens: 6

Data de entrada: 7 de Maio de 2012

Mensagens recentes

I also found the #breadcrumbs() In portal_normal.vm velocity template file, where it defined? how to change the breadcrumbs()?
Anexo

Anexos: 无标题1.png (35,5k)
Muzakir Khan
RE: breadcrumb issue or not
24 de Julho de 2012 23:38
Resposta

Muzakir Khan

Ranking: Regular Member

Mensagens: 112

Data de entrada: 14 de Março de 2012

Mensagens recentes

Jack Tian:
I also found the #breadcrumbs() In portal_normal.vm velocity template file, where it defined? how to change the breadcrumbs()?

Can you be still more clear.. You did not find the #breadcrumb() where it is defined or what??.. if you need to change the look and feel of breadcrumb, then you have to specify your css in custom.css of your theme..
Jack Tian
RE: breadcrumb issue or not
24 de Julho de 2012 23:59
Resposta

Jack Tian

Ranking: New Member

Mensagens: 6

Data de entrada: 7 de Maio de 2012

Mensagens recentes

Muzakir Khan:
Jack Tian:
I also found the #breadcrumbs() In portal_normal.vm velocity template file, where it defined? how to change the breadcrumbs()?

Can you be still more clear.. You did not find the #breadcrumb() where it is defined or what??.. if you need to change the look and feel of breadcrumb, then you have to specify your css in custom.css of your theme..


Now i found how the #breadcrumbs() work, i don't want to change the style of breadcrumb, but i think the breadcrumb links was very strange when click the home link in the document and media portlet! For example, In the page, you click the page named 'Site-a-local', the breadcrumb displayed full path, but if you click the Home link in the page, the breadcrumb displayed " Liferay Site-a-cms Home", missing Site-a-local.... Why different?
Anexo

Anexos: 无标题2.png (19,9k)
Jack Tian
RE: breadcrumb issue or not
25 de Julho de 2012 03:12
Resposta

Jack Tian

Ranking: New Member

Mensagens: 6

Data de entrada: 7 de Maio de 2012

Mensagens recentes

find the answer: change portal-web\docroot\html\portlet\document_library\view_resources.jsp line78, change showParentGroups to true; will make two breadcrumb display the same value.

Before:

<div class="portal-breadcrumb">
<liferay-ui:breadcrumb showCurrentGroup="<%= layout.isTypeControlPanel() %>" showParentGroups="<%= false %>"
showCurrentPortlet="<%= layout.isTypeControlPanel() %>" showGuestGroup="<%= !layout.isTypeControlPanel() %>"
showLayout="<%= true %>" showPortletBreadcrumb="<%= true %>" />
</div>

After

<div class="portal-breadcrumb">
<liferay-ui:breadcrumb showCurrentGroup="<%= layout.isTypeControlPanel() %>" showParentGroups="<%= true%>"
showCurrentPortlet="<%= layout.isTypeControlPanel() %>" showGuestGroup="<%= !layout.isTypeControlPanel() %>"
showLayout="<%= true %>" showPortletBreadcrumb="<%= true %>" />
</div>