11
pinchecl
Re: Adding a plain url link into mainmenu
  • 2009/12/5 7:50

  • pinchecl

  • Friend of XOOPS

  • Posts: 193

  • Since: 2005/4/22


Ok tnx Ghia, editing the templateset did the trick. That makes me wonder though. I am 100% sure I edited the right file from the right spot. When I download it the changes are there. Oh well, it works now :)

12
ghia
Re: Adding a plain url link into mainmenu
  • 2009/12/5 8:48

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Maybe the general system preference for checking templates needed to be on, altough I always believed that updating the module was doing the same trick.

We need once a clear and complete explaination of all the various paths from template change at the various places to display for this template and template set stuff.

13
pinchecl
Re: Adding a plain url link into mainmenu
  • 2009/12/5 11:59

  • pinchecl

  • Friend of XOOPS

  • Posts: 193

  • Since: 2005/4/22


It is something that came with this version. I was using 2.0.16 before and could simply modify a template, empty the cache and voila. Not a big thing though as long as things can be sorted out by this community and the supporting members :)

14
chefry
Re: Adding a plain url link into mainmenu
  • 2010/3/11 20:13

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


ok, i just tried to accesshttps://xoops.org/modules/smartfaq/faq.php?faqid=261
How do I add custom links in the main menu?

and the FAQ gives "Sorry, you don't have the permission to access this area. "

I want to add a custom block to my menu that will take the user to an xforms page. Inserting a block seems to be the only way I can think of to be able to set group permissions to the page.

So... as the FAQ isn't working, how do I add a simple html link to a block? Everything I try just shows the link text (not even a link)

15
sailjapan
Re: Adding a plain url link into mainmenu

Putting a block in a block? Seems like a hard way to do it to me...

go to admin>system>blocks> and click on 'edit' for the 'Main Menu' block (system_block_mainmenu.html) and you should find the code (edit template) looks something like this:

<table cellspacing="0">   
<
tr>
     <
td id="mainmenu">
       <
class="menuTop" href="<{$xoops_url}>/">Home ホーム</a>
       <!-- 
start module menu loop -->
       <{foreach 
item=module from=$block.modules}>
       <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/" title="<{$module.name}>"><{$module.name}></a>
         <{foreach 
item=sublink from=$module.sublinks}>
           <
class="menuSub" href="<{$sublink.url}>" title="<{$sublink.name}>"><{$sublink.name}></a>
         <{/foreach}>
       <{/foreach}>
       <!-- 
end module menu loop -->
     </
td>
   </
tr>
 </
table>


Add your link (regular html will do fine) after the
end module menu loop -->

part.

Login

Who's Online

236 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

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

Latest GitHub Commits