SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

Display Link to any page in the main menu.
Modify the system_block_mainmenu.html template under 'System'

As an example, I have used the formulaire module
Use the following code:
Quote:







Here , I have displayed a link to the first form in the formulaire module instead of the link to the formulaire homepage.

Of course, the module must be installed and has a weight different from zero.




The comments are owned by the author. We aren't responsible for their content.
user

 how?


Quote:

Display Link to any page in the main menu.


Let's say that I have a page: mypage.txt
How can I add a link to it in main menu?

Acording to this FAQ I can add a link only if I have a module instaled.
Thank you in advance.

 
user

 Re: how?


I would be interested in how to do this as well.

 
user

 Re: how?


Hi,

If this is the default template for Main Menu:

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}>a>
      
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a>
        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}>a>
        <{/foreach}>
      <{/foreach}>
      
    td>
  tr>
table>



Here is how you could add permanent "Lost password" link, that will be visible only for not loged users:

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}>a>
      
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a>
        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}>a>
        <{/foreach}>
       <{/foreach}>
      
    td>
  tr>
  <
tr>
    <
td id="lpass">
      <{if !
$xoops_isuser}>
      <
br />
      <
a href="<{$xoops_url}>/user.php#lost"><{$smarty.const._MB_SYSTEM_LPASS}>a>
      <
br />
      <{/if}>
    td>
  tr>
table>


Hope this helps

 
user

 Re: how?


Thanks Stefan! That is just what I needed!

 
user

 Re: how?


How about displaying a link to a certain module for anonymous users. My guestbook link only displays under the main menu after a registered user logs in. I would like the guestbook link to show up under main menu without having to login. Is this the same thing I need to do? Unfortunately the guestbook does not have it's own "blocks" administration.

 
user

 Re: how?


Ok...I followed the instructions...and the Guestbook link now appears to anonymous users. However, anonymous users are not permitted to view this module. Again...this module does not have it's own "permissions" tool to grant anonymous access. Where can I set this?

 
user

 Re: how?


Sorry....I found my answer. I had to go to Control Panel/System | Groups. I granted the anonymous group module access there. Didn't realize this was here. Thanks.

 


Login

Who's Online

278 user(s) are online (6 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 278


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!

Did you know ?

You can use Google Analytics with your website!

Random question

after i installed module. these information showed at the end of page. what's the problem? what should i do to fix it. thanks a lot!

Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 629
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Warning [Xoops]: Smarty error: unable to read resource: "db:jobs_adlist.html" in file d:\appserv\www\xoops\class\smarty\Smarty.class.php line 1084
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\class\template.php line 260
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 761
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 809
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 867