New link at navigation bar

gab man Posted in Technical Support 9 years ago

How do I add a new link at navigation bar?

[user name] [Home] [new link] [new link]

I need to know route , directory/folder/file, the new link it will send to an other installation of ossn but in other language, or maybe some other application like mobile, help, costumer services, create a page, advertisers, etc

Replies
German Michael Zülsdorff Replied 7 years ago

Sure.
Since Ossn comes with jquery built-in already, you can develop a component adding your menu HTML wherever you want like

$(document).ready(function(){
    $( "ANY_EXISTING_OSSN_ANCHOR" ).after( "YOUR_HTML" );
});

See the "Readmore" component and jquery docs for more information.

cl Maximiliano Kauer Replied 7 years ago

Hi
Is is possible to extend the menu in a component rather than modifying topbar.php?
Maybe something like ossnregistersections_menu('menubar', ...)

Indonesian Arsalan Shah Replied 8 years ago

Have a look into : components\OssnNotifications\plugins\default\notifications\page\topbar.php

Turkish Fatih Bayram Replied 8 years ago

How I can add a link in the new ossn version? Because this little tut is wrong for the actual ossn version

Indonesian Arsalan Shah Replied 9 years ago

Open the file themes/default/page/page.php

Find a div with class name 'ossn-topbar-menu' its on line 78

Add a following code in the div:

<li><a href="#">New Link </a></li>