论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Jack Tian
breadcrumb issue or not
2012年7月24日 下午7:52
答复

Jack Tian

等级: New Member

帖子: 6

加入日期: 2012年5月7日

最近的帖子

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
附件:
Jack Tian
RE: breadcrumb issue or not
2012年7月24日 下午8:40
答复

Jack Tian

等级: New Member

帖子: 6

加入日期: 2012年5月7日

最近的帖子

I also found the #breadcrumbs() In portal_normal.vm velocity template file, where it defined? how to change the breadcrumbs()?
附件:
Muzakir Khan
RE: breadcrumb issue or not
2012年7月24日 下午11:38
答复

Muzakir Khan

等级: Regular Member

帖子: 112

加入日期: 2012年3月14日

最近的帖子

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
2012年7月24日 下午11:59
答复

Jack Tian

等级: New Member

帖子: 6

加入日期: 2012年5月7日

最近的帖子

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?
附件:
Jack Tian
RE: breadcrumb issue or not
2012年7月25日 上午3:12
答复

Jack Tian

等级: New Member

帖子: 6

加入日期: 2012年5月7日

最近的帖子

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>