留言板

navigation bar

Thomas K,修改在16 年前。

navigation bar

New Member 帖子: 6 加入日期: 07-8-17 最近的帖子
Hello!

I'm using Liferay 4.3.0 and want to remove the navigation bar (the page selection - here: home, products, services, ...).

I'm using the brochure theme and found the flag: $has_navigation in the portal_normal.vm velocity template.

How do I set/toggle this flag, so that I won't need to change that code?

Thanks for the help!
thumbnail
Jack A. Rider,修改在16 年前。

RE: navigation bar

Regular Member 帖子: 139 加入日期: 07-3-26 最近的帖子
Hello Thomas K

$has_navigation is a calculated field see file "_unstyled\templates\init.vm.

you will find:

## ---------- Navigation ---------- ##

#if ( $navItems )
#set ( $nav_items = $navItems )
#set ( $has_navigation = ($nav_items && $nav_items.size() > 0) )
#end
thumbnail
delang j,修改在15 年前。

RE: navigation bar

Expert 帖子: 252 加入日期: 08-7-14 最近的帖子
Jack A. Rider:
Hello Thomas K

$has_navigation is a calculated field see file "_unstyled\templates\init.vm.

you will find:

## ---------- Navigation ---------- ##

#if ( $navItems )
#set ( $nav_items = $navItems )
#set ( $has_navigation = ($nav_items && $nav_items.size() > 0) )
#end



if i want to add my own navigation which is have selected feature. here my code

#if ($topNav)
	#set ($topNav = $topNav)
	#set ($ade_topNav = ($topNav && $topNav.size() > 0))
#end
#if ($topNav.isSelected())
	#set ($topNav_class = "selected")
#else
	#set ($topNav_class = "")
#end


<a class="$topNav_class" href="/web/guest/4">contact us</a> | <a class="$topNav_class" href="/web/guest/5">sitemap</a>

it's not working. did miss something? please help.
sandeep tripathi,修改在12 年前。

RE: navigation bar

Regular Member 帖子: 100 加入日期: 11-10-19 最近的帖子
hi everyone
i need to create a navigation bar on the page, my page consist of a category navigation and a asset publisher on it when the user click on any of the web content in asset publisher it should show which category that below to .
for eg : if Article Name web content is click then on the navigation bar it should show
Home > Page Name > Category name > Article Name
i try to see the code for navigation bar since the asset publisher and category navigation are to different portlet it show just either category name or article name

if any body have any idea then pls help.
thanks in advance.

Sandeep