1
jad2000
Customizing the Main Menu w/ custom links
  • 2004/4/20 23:25

  • jad2000

  • Just popping in

  • Posts: 16

  • Since: 2003/4/12


I need to add custom links. I know how to using

name that shows up

but i want to be able to move them up or down. People use custom ones that they made but I want to make sure that the submenu's still come up. How do I do this. I have Tinycontent. Thanks.

2
jad2000
Re: Customizing the Main Menu w/ custom links
  • 2004/4/21 19:06

  • jad2000

  • Just popping in

  • Posts: 16

  • Since: 2003/4/12


Any Help????

3
jmass
Re: Customizing the Main Menu w/ custom links
  • 2004/4/21 19:34

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


I found this little bit of code that allows you to create modules of static content. These are installed as modules and therefore show up in the main menu. You can also have submenu entries of static content... ALL VERY MANUAL CONFIG OUTSIDE XOOPS ADMIN!

I will see if I can find the module template for you if you want.

JMass

4
JackJ
Re: Customizing the Main Menu w/ custom links
  • 2004/4/21 19:56

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Hello jad2000

(Pasted from my post in a previous topic)

To add html links to your main menu (no sub-menus included)

You edit main menu in System Admin and "Templates"

If you are using the default XOOPS template you need to click on "Clone" and then set up the "Clone" as your default template in "General Settings". Call it anything you want. (The default template cant be edited without cloning)

If you are using another theme apart from XOOPS default, it it will normally be based on the XOOPS "default template",--if not, the theme you downloaded would have a "Tar" file to upload into templates (to create its own template)

You may need to click on "Generate" for some modules (in red) to create the files.

After you have set up your default template in general settings, go back to System Admin and "Templates"--your default template will have a tick against it. Now look for the "System" set of files and click on "List"

In there you will find a file called system_block_mainmenu.html

Click on "Edit"

The file should look like this:

(depending on which template you are using)








Notice after the I have added a couple of lines i.e.

Bournemouth
Xoops CMS

(remember to use the "classes" your template is using)

The first line provides a link to a file on my server

The second provides a link to another site, no need for target_blank, but to open in new window add target="_blank" i.e

Xoops CMS

These lines need to be outside the "module menu loop" You could have the links before "" which means they would appear at the top.


Topic:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=14480&forum=20#forumpost74112

Login

Who's Online

354 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 354


more...

Donat-O-Meter

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

Latest GitHub Commits