Fórum

navigation bar

Thomas K, modificado 16 Anos atrás.

navigation bar

New Member Postagens: 6 Data de Entrada: 17/08/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: navigation bar

Regular Member Postagens: 139 Data de Entrada: 26/03/07 Postagens Recentes
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, modificado 15 Anos atrás.

RE: navigation bar

Expert Postagens: 252 Data de Entrada: 14/07/08 Postagens Recentes
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, modificado 12 Anos atrás.

RE: navigation bar

Regular Member Postagens: 100 Data de Entrada: 19/10/11 Postagens Recentes
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