1
wtravel
Dynamic submenu based on query

Hi,

For one submenu I would like to create a new dynamic menu based on the outcome of a database query, similar to that of a custom block I created for one of my own modules. That block should be integrated in the submenu.

The reason why is that I want to keep the structure:

Home
Menu item 1
Custom submenu item a
Custom submenu item b
Custom submenu item c
Menu item 2
Menu item 3

How can I integrate this dynamic menu into the submenu or is there an alternative for this solution?

Regards,

Martijn

2
jmass
Re: Dynamic submenu based on query
  • 2004/2/4 15:22

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


This is a much needed snippet of code. I could see using this type of thing to build a user/group specific knowledge base of anything else user/group specific.

I wish I could help but I am not much of a PHP guru. TCP/IP I can help with, PHP no so much. But I do hack at it, and would love to see an example of this as well.

Jason

3
jmass
Re: Dynamic submenu based on query
  • 2004/2/4 15:23

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


This is a much needed snippet of code. I could see using this type of thing to build a user/group specific knowledge base of anything else user/group specific.

I wish I could help but I am not much of a PHP guru. TCP/IP I can help with, PHP no so much. But I do hack at it, and would love to see an example of this as well.

Jason

4
Mithrandir
Re: Dynamic submenu based on query

hhttps://xoops.org/modules/newbb/viewtopic.php?topic_id=14785&forum=7#forumpost66419

For the news module, I have made the submit news link only show up to users with access.

It is possible with a similar approach to populate the $modconfig['sub'] with items from a database query.

5
jmass
Re: Dynamic submenu based on query
  • 2004/2/4 16:08

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


Thank you so much!

That is exactly what we need. I will give it a try.

Thanks again,

Jason

Login

Who's Online

388 user(s) are online (290 user(s) are browsing Support Forums)


Members: 0


Guests: 388


more...

Donat-O-Meter

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

Latest GitHub Commits