Hi,
i am new in liferay , i have a situation where there are few tabs in the application say 2 tabs , on mouse over on any of the tab on status bar user can see the navigation
URL and can move to any of the tab by putting that URL on the address bar though it is disable for him.so therefore i have to hide that status bar text and want to show
something different . not the actual URL. therefore i have made use of javascript my question is that
1) can we use javascript on the navigation.vm file
2)is there some configuration in liferay that this can be done through liferay configutation.
i have used this code in my navigation.vm file
<script language="javascript" type="text/javascript">
function redirect(URL)
{
document.location=URL;
return false;
}
</script>
#if($nav_item.getName() == "Profile" )
<a class="$nav_has_child" href="javascript:void(0)"
onclick="return redirect('/group/kaspersky/basic $nav_item.getTarget()')"><span>$nav_item.getName()</span></a>
#end
#if($nav_item.getName() == "PA" )
<a class="$nav_has_child" href="javascript:void(0)" onclick="return redirect('/group/kaspersky/list $nav_item.getTarget()')" ><span>$nav_item.getName()</span></a>
#end
is this fine any sugesstion would be a great help for me
不適当であることを指摘する場合は、ログインしてください。