1
adwin
change the menu from table to ul & div
  • 2004/10/6 13:25

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


Hi,

I want to change the menu structure that use table (Home, Forum, News Menu on the LeftBlock) into ul & li (css based menu). The class that used is menuTop and menuItem.

Which file I need to modify ? I look everything is writen by smarty.

rgrds
adwin

2
Mithrandir
Re: change the menu from table to ul & div

Your theme's style.css holds the css classes used.

3
russtik
Re: change the menu from table to ul & div
  • 2004/10/8 10:53

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Go to the administration pages and click:

System Admin > Templates

Choose the option to clone your template set, then set the cloned template set to your default. When you've done this choose the the 'List' link next to 'System' in your cloned templates list.

This will give you access to the core templates, scroll down and modify files like 'system_block_mainmenu.html' to achieve the results you want.

Personally I like to copy&paste them into a wysiwyg editor to make the modifications then paste them back when I'm done.

Hope that helps.

4
studioC
Re: change the menu from table to ul & div
  • 2004/10/8 11:06

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


put :

<div id="mainmenu">
    <
ul>
      <
li><class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a></li>
      <!-- 
start module menu loop -->
      <{foreach 
item=module from=$block.modules}>
      <
li><class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
        <{foreach 
item=sublink from=$module.sublinks}></li>
          <
li><class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a></li>
        <{/foreach}>
      <{/foreach}>
      <!-- 
end module menu loop -->
    </
ul></div>


via system admin - template
in file system_block_mainmenu.html after cloning default templateset to eg. default_clone .. instead of that file using tables .. and modify style.css to your needs....

edit:
perhaps have a look at some nice exmaples at:
http://css.maxdesign.com.au/listamatic/vertical08.htm

michael

5
adwin
Re:change the menu from table to ul & div
  • 2004/10/10 8:01

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


thank you for your hints :)
that's very helpfull :)

Login

Who's Online

241 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

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

Latest GitHub Commits