101
barryc
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/10 2:04

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


Just a commment:

I think a tree menu option like that would be an excellent addition to MultiMenu. It is similar in style to treeMenuXL, but the latter, when I tried it some time ago, had too many problems with different browsers to be useful.

Barry
Barry Cooper
Sweet Home, Oregon

102
giba
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/10 10:55

  • giba

  • Just can't stay away

  • Posts: 638

  • Since: 2003/4/26


Yes barryc, I too think a tree menu option like that would be an excellent addition to MultiMenu.

Good Idea

103
defwind77
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/10 11:44

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


And I'll 'third' that! A tree menu would be an awesome addition - I'm seeing more and more sites with them these days and they're a great way to deal with large amounts of menu options/site pages...

104
tzvook
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/10 13:54

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


A true WC3 SEO scrollDown will be great too

105
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/10 14:29

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


hi,

tzvook > can you detail a little more you problem ?

concerning a treemenu, i've make a try at :
http://xoops.valentinois.net/modules/contact/
look at this website.
2 'treemenus' are integrated to the theme.
try click on 'preferences'

it is a very quick test ! (30 min to create this template)

it is an adaptation of a script found here.

We can use many treemenus on a same webpage.
only standard and secondary (absolutes and relative) links are considered for the moment.
treemenu must starts with a standard link.
it just an example of adaptation, so, you can try to make your own menu

but if you like this example, i'll try to finish it as soon as possible.

the code used for this template

<!-- Start multiMenu <{$block.mm}> -->

<
link   rel"stylesheet"   type="text/css"   href="<{$xoops_url}>/modules/multiMenu/script/10/css/treemenu.css" />
<
link   rel"stylesheet"   type="text/css"   href="<{$xoops_url}>/modules/multiMenu/script/10/css/config.css" />
<
link   rel"stylesheet"   type="text/css"   href="<{$xoops_url}>/modules/multiMenu/script/10/css/menu.css" />
<
script type="text/javascript" src="<{$xoops_url}>/modules/multiMenu/script/10/js/treemenu.js"></script>
<
script type="text/javascript" src="<{$xoops_url}>/modules/multiMenu/script/10/js/config.js"></script>

<
div align="left">
<
table cellspacing="0" cellpadding="0">
<
tr>
<
td>

<
script type="text/javascript">
<!--
tree<{$block.mm}> = new treemenu('tree<{$block.mm}>'truetruetruefalse);

<{
assign var=put_tree  value=0}>
<{foreach 
item=imenu from=$block.contents}>
<{if 
$imenu.submenu == AND $put_tree == 0}>
   
tree<{$block.mm}>.add(1,'<{$imenu.title}>''main','<{$imenu.linkurl}>''<{$imenu.alt_title}>''',     '');
   <{
assign var=put_tree  value=1}>

    <{elseif 
$imenu.submenu == AND $put_tree == }>
    
tree<{$block.mm}>.add(0,' <{$imenu.title}>''',    '<{$imenu.linkurl}>''<{$imenu.alt_title}>',  '''' );
<{elseif 
$imenu.submenu == OR $imenu.submenu == 2}>
   
tree<{$block.mm}>.add(0,'  <{$imenu.title}>',       'main','<{$imenu.linkurl}>',  '<{$imenu.alt_title}>''''');
<{/if}>
<{/foreach}>
<{
assign var=ul_sec  value=0}>
document.write(tree<{$block.mm}>);
//-->
</script>

</
td>
</
tr>
</
table>
</
div>
<!-- 
End multiMenu <{$block.mm}> -->
</
script>

</
td>
</
tr>
</
table>
</
div>
<!-- 
End multiMenu <{$block.mm}> -->

106
barryc
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/10 14:40

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


I like the treemenu and I'd love to see a finished template.

Barry
Barry Cooper
Sweet Home, Oregon

107
tzvook
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/11 7:10

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hello blueteen ... all
I meant that the menues (as I said b4 about it) is rely too much on JS instead of CSS, and as such is not SEO friendly, at least big parts of it, and these days there's some great scroll down q trees menu that are WC3 and search engines friendly, I posted a link before (http://freshmeat.net/projects/mygosumenu/ ) but there are some more ...


<script type="text/javascript">
<!--
tree01 = new treemenu('tree01'truetruetruefalse);

   
tree01.add(1,'Preferences''main','''Preferences''',     '');
   
        
tree01.add(0,' General Settings''',    '''General Settings',  '''' );
   
tree01.add(0,'  User Settings',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=preferences&op=show&confcat_id=2',  'User Settings''''');
   
tree01.add(0,'  Meta & Footer',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=preferences&op=show&confcat_id=3',  'Meta & Footer''''');
   
tree01.add(0,'  Word Censorship',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=preferences&op=show&confcat_id=4',  'Word Censorship''''');
   
tree01.add(0,'  Search Options',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=preferences&op=show&confcat_id=5',  'Search Options''''');
   
tree01.add(0,'  Mail Setup',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=preferences&op=show&confcat_id=6',  'Mail Setup''''');
    
tree01.add(0,' Modules''',    'http://xoops.valentinois.net/modules/system/admin.php?fct=modulesadmin''Modules',  '''' );
    
tree01.add(0,' Blocks''',    '''Blocks',  '''' );
   
tree01.add(0,'  Visible',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=blocksadmin&selmod=-1&selgrp=2&selvis=1',  'Visible''''');
   
tree01.add(0,'  Hidden',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=blocksadmin&selmod=-1&selgrp=2&selvis=0',  'Hidden''''');
   
tree01.add(0,'  Add custom block',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=blocksadmin#newblock',  'Add custom block''''');
    
tree01.add(0,' Users''',    '''Users',  '''' );
   
tree01.add(0,'  Find',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=findusers',  'Find''''');
   
tree01.add(0,'  Mail',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=mailusers',  'Mail''''');
   
tree01.add(0,'  Ranks',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=userrank',  'Ranks''''');
    
tree01.add(0,' Groups''',    '''Groups',  '''' );
   
tree01.add(0,'  Webmaster',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=groups&op=modify&g_id=1',  'Webmaster''''');
   
tree01.add(0,'  Registered',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=groups&op=modify&g_id=2',  'Registered''''');
   
tree01.add(0,'  Anonymous',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=groups&op=modify&g_id=3',  'Anonymous''''');
    
tree01.add(0,' Misc.''',    '''Misc.',  '''' );
   
tree01.add(0,'  Banner',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=banners',  'Banner''''');
   
tree01.add(0,'  Image manager',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=images',  'Image manager''''');
   
tree01.add(0,'  Smilies',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=smilies',  'Smilies''''');
   
tree01.add(0,'  Avatars',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=avatars',  'Avatars''''');
   
tree01.add(0,'  Template manager',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=tplsets',  'Template manager''''');
   
tree01.add(0,'  Comments',       'main','http://xoops.valentinois.net/modules/system/admin.php?fct=comments',  'Comments''''');
    
tree01.add(0,' News''',    '''News',  '''' );
   
tree01.add(0,'  Admin',       'main','http://xoops.valentinois.net/modules/news/admin/',  'Admin''''');
   
tree01.add(0,'  Create article',       'main','http://xoops.valentinois.net/modules/news/admin/index.php?op=newarticle',  'Create article''''');
   
tree01.add(0,'  Submit new',       'main','http://xoops.valentinois.net/modules/news/submit.php',  'Submit new''''');
document.write(tree01);
//-->

</script>

108
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/11 7:20

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


hello
thanks for the link. (mygosumenu's menus are great)

of course css menus are better than javascript menus.
but in some cases (for some people), javascript is necessary

in the finale version, we have added some pures css menus.

there is, for the moment, 19 available menus, but we can't integrate all menus found on the net
but, using existing templates, everybody could try to integrate his own menu ! (and share it)

considering last posts, i'm currently finishing a treemenu (javascript)

http://xoops.valentinois.net

i'll try to look at your link more closer

109
tzvook
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/11 11:40

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Quote:

blueteen wrote:

i'll try to look at your link more closer


10x

Quote:

thanks for the link. (mygosumenu's menus are great)


mygosumenu's menus were used in the default theme of the 2.2.x XOOPS series

110
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/11 11:47

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


i think that i've finished treemenu's template

http://xoops.valentinois.net
if you can test it ?

there are many possibilities to configure "treemenu".

I chose this approach :
- all standard, secondary (permanent/relative) links are managed.
- category/note links are used to create a new menu in the same block.
- standards links are displayed opened by default
- cookies are used, so, those cookies will be used to restore the menu layout and setting.
(we can change this, by changing some code in the template)
- to change open/close icon, we only have to replace existing icons in the script folder. (same name)

there are some operational requirements :
each menu must start with 2 standards links
(we can change this, by changing some code in the template)
we should not define url for standards links wich have sublinks, they are used to open/close menus.

look at the right menu on this website

and here is the configuration for these links, in multiMenu's admin

Resized Image

i've contacted the author of this menu

he's agree with the fact that his menu is used in xoops's module.
i could remove the link 'created by treemenu' under the menu.

but, of course, i leave all informations in source code and javascript files !
thanks to him !

Login

Who's Online

191 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

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

Latest GitHub Commits