1
Hadesteam
Custom link in system menu
  • 2017/5/16 16:23

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


I want the main system menu to display a link to a particular article - how do I do it?

2
Zap_English
Re: Custom link in system menu

my menu or hard coded

you can use mymenu to recreate your entire menu, including the new stuff, and then make the admin menu show only to admin

3
Hadesteam
Re: Custom link in system menu
  • 2017/5/16 17:19

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


Problem solved ;)

themes/xbootstrap/modules/system/blocks/system_block_mainmenu.html

<ul class="nav nav-pills nav-stacked">
<
li class="<{if !$block.nothome}>active<{/if}>"><a href="<{xoAppUrl }>" title="<{$block.lang_home}>"><span class="glyphicon glyphicon-home">span> <{$block.lang_home}>a>li>

    <{foreach 
item=module from=$block.modules}>
    <
li class="<{if $module.highlight}>active<{/if}>">
        <
a href="<{$xoops_url}>/modules/<{$module.directory}>/" title="<{$module.name}>"><span class="glyphicon glyphicon-ok">span>
            <{
$module.name}>
        a>
        <
ul>
            <{foreach 
item=sublink from=$module.sublinks}>
                <
li>
                   <
class="dropdown" href="<{$sublink.url}>" title="<{$sublink.name}>"><{$sublink.name}>a>
                li>
            <{/foreach}>
        ul>
    li>
<{/foreach}>

ul>


Just added this code:

<li>
                   <
a href="http://www.kulturystyka.org.pl/modules/news/article.php?storyid=852" title="Programy do ukĹ‚adania diet"><span class="glyphicon glyphicon-ok">span>
Programy do ukĹ‚adania dietya>

                li>


Results on my site - right menu.

4
Zap_English
Re: Custom link in system menu

Hard coding links is not a good idea. You should have used mymenu

Login

Who's Online

415 user(s) are online (317 user(s) are browsing Support Forums)


Members: 0


Guests: 415


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits