Remove Item on Navigation Bar

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 14
Joined: Sun Oct 03, 2010 4:36 am

Remove Item on Navigation Bar

Postby bronskyblu » Sun Oct 03, 2010 8:40 am

I read a lot about this topic, in particular '', but anytime about OJS and not OCS. I still tried to follow suggestions, modifying 'templates/common/header.tpl', without success. Probably there are other files containing the same info that build the navigation bar:

Code: Select all

<ul class="menu">
      <li><a href="{url conference="index" schedConf="index" op="index"}">{translate key="navigation.home"}</a></li>
      <li><a href="{url page="about"}">{translate key="navigation.about"}</a></li>
      {if $isUserLoggedIn}
         <li><a href="{url page="user"}">{translate key="navigation.userHome"}</a></li>
         <li><a href="{url page="login"}">{translate key="navigation.login"}</a></li>
         <li><a href="{url page="user" op="account"}">{translate key="navigation.account"}</a></li>
      <li><a href="{url page="search"}">{translate key=""}</a></li>
      {if $currentConference}
         {if $currentSchedConfsExist}
            <li><a href="{url schedConf="index" page="schedConfs" op="current"}">{translate key="navigation.current"}</a></li>   
         {if $archivedSchedConfsExist}<li><a href="{url schedConf="index" page="schedConfs" op="archive"}">{translate key="navigation.archive"}</a></li>{/if}
         {if $enableAnnouncements}
            <li><a href="{url page="announcement"}">{translate key="announcement.announcements"}</a></li>
         {call_hook name="Templates::Common::Header::Navbar::CurrentConference"}
      {foreach from=$navMenuItems item=navItem}
         <li><a href="{if $navItem.isAbsolute}{$navItem.url|escape}{else}{$navItem.url|escape}{/if}">{if $navItem.isLiteral}{$|escape}{else}{translate key=$}{/if}</a></li>

I simply cut the item I don't want, i.e. from {if $currentConference} to {/if}. Is it correct or may I forget something?
Any suggestion or redirecting to the right old post? ;)
Thanks a lot,

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: Remove Item on Navigation Bar

Postby jmacgreg » Tue Oct 05, 2010 6:20 pm

Hi Gabriele,

Yes, that's more or less what you want to do. You should always test the change you make, and of course try and keep a backup of the file you are modifying, so that you can revert to the original if you need to.


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest