1
peterr
Can TreeMenuXL only be used for modules ??
  • 2004/9/22 4:40

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

I have been given a new website plan, and there are 12 'major' menu items, and many sub items, in fact a number of sub items of the sub items, quite a 'tree' structure, and this module seems like a nice one for this type of menu usage.

I have installed the module, and it is working fine for displaying the main menu, with 'Homepage' at the top, and then the "News" module as another menu item.

Now I have realised that this module is setup to work to display other modules only, and not blocks of code. (doh).

Is it simply a matter of editing the template for the module, so that I can include blocks as well as modules, or would I be better to install something like 'TinyContent', and then have the 'blocks' appear as sub menu items under the 'TinyContent' module, all to be used with in the TreeMenuXL module.

Hope that makes sense,

Thanks,

Peter

2
peterr
Re: Can TreeMenuXL only be used for modules ??
  • 2004/9/22 4:57

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

Thought it might be a bit more helpful to get advice on this if I displayed the website plan, as follows:

Quote:

Home

About us
-->The Vision
-->History
-->Ps Howard Sands
-->Team Leaders
-->References

Ministry
-->Guest Speaker
-->Seminars
-->Invite us to your church/event/outreach

Coming Team Missions
-->Indonesia Oct 04
-->India Jan 05
-->Indonesia March 05
-->Apply to join us

Past trips
-->India 2002
-->Indonesia 2002
-->India 2001
-->Andaman Is 1998

The Outreach Files
-->Subscribe
-->May 04
-->June 04
-->July 04
-->Aug 04
-->Sep 04

Bookshop
-->Links to bookshop
-->BFTF ministry materials

Teaching Materials
-->Something here ?

Sermon resources
-->Links to online Bible
-->Stories / jokes
-->Other sites

Partnership Opportunities
-->Individual
----->Partners
----->Sponsor a pioneer pastor
-->Churches
----->Partners
----->Bronze partners
----->Silver Partners
----->Gold Partners
----->Sponsor a pioneer pastor

Links
-->Some links

Contact us


Some of the menu links are static information, whilst others will 'grow', like "The Outreach Files", and others will move between (say) past trips and new trips type information. I realise a fair bit of this is "news" related, and may well be better suited to fit under different news categories, however the client does want the website plan to cater for the above, and have the menu links show in the structured format as above. :)

Thanks,

Peter

3
peterr
Re: Can TreeMenuXL only be used for modules ??
  • 2004/9/22 5:13

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

Well, I think I have answered my own question.

The following code in /modules/treemenuxl/blocks/treemenuxl.php

$module_handler =& xoops_gethandler('module');
    
$criteria = new CriteriaCompo(new Criteria('hasmain'1));
    
$criteria->add(new Criteria('isactive'1));
    
$criteria->add(new Criteria('weight'0'>'));
    
$modules =& $module_handler->getObjects($criteriatrue);
    
$moduleperm_handler =& xoops_gethandler('groupperm');
    
$groups is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
    
$read_allowed =& $moduleperm_handler->getItemIds('module_read'$groups);
    foreach (
array_keys($modules) as $i) {


the menu tree is built by modules, and sub links of modules.

Do any of the other menu modules cater for grouping blocks together, and still give the 'tree' type look ??

Peter

4
peterr
Re: Can TreeMenuXL only be used for modules ??
  • 2004/9/22 6:31

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

Well, I have 'links' and 'contact us' sorted out, that was easy, just add the modules.

Can someone please advise what is the best method to address this menu problem please ?

Ideally, I would like it to be client side, the javascript type menu, as TreeMenuXL does, however I see there are other menu modules like:

* multiMenu 1.3.1
* iMenu
* mymenu

The first one mentioned, multiMenu is used (I think, .. hard to tell) athttp://www.arma-sa.com , and this site uses a module called "wfsection" as well as the (normal) news module. That seems to be a suitable method of addressing this issue.

The only way to have it all under TreeMenuXL would be to define everything as a module. I guess I could use a "base" module and simply copy/rename to the new module name, for each main menu item. Seems like a hard way to do it though. :(

Would any of these modules help to have the menu structure as the new website plan requires ?

* TinyContent
* Homepage
* Freecontent
* CJaycontent

Hopefully there is an easy solution to addressing this problem.

Thanks,

Peter

5
peterr
Re: Can TreeMenuXL only be used for modules ??
  • 2005/5/18 6:24

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

Any clues on how to do this, it does seem from the treemenuxl code that it displays only modules, and links/sublinks within modules.

Have been trying wf-sections, nice module to have the hierarchy type effect, but it is not displaying _within_ the 'mainmenu'. :(

Seehttp://www.wf-projects.com/modules/ipboard/index.php?showtopic=1129

for some more info.

Thanks,

Peter

Login

Who's Online

158 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 158


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