[SOLVED] Assign 2 menu's to 1 section First I have to say that MetaMod is really a powerful module with a great functionality. However, since I do not know much about PHP I would like to solve a problem I have: how to let one section show more than 1 menu?
Code:if ($section_id == 19) return 52;/* on section 19, return module 52*/ How should I code it if I need more modules to return?
Code:if ($section_id == 19) return "52,57";/* on section 19, return module 52 and 57*/ does not work (no menu shows up), so do I have to convert variables to arrays or something? I am not really into PHP, so hopefully the cure is not to hard. Edited By: hinsert 10-Sep-09 10:39:07 |
|
|
|
Administrator has disabled public posting |
Re: [SOLVED] Assign 2 menu's to 1 section Hi Hinsert,
|
|
|
Stephen Brandon |
Administrator has disabled public posting |
Re: [SOLVED] Assign 2 menu's to 1 section My bad, I thought that the complete menu existed of section blog links, but the one I mentioned was just a category blog. I changed the link to the section (as it only consisted of that 1 category) and now everything works fine.
|
|
|
|
Administrator has disabled public posting |
Re: [SOLVED] Assign 2 menu's to 1 section Hi,
|
|
|
Stephen Brandon |
Administrator has disabled public posting |
Re: [SOLVED] Assign 2 menu's to 1 section Thanks again! It was easily solved by using the -metamod suffix and keeping the style at XHTML. The final problem I am trying to solve is how to let this module work with the component FJRelated, as that component works with keywords in stead of section/category id's. I guess a new recipe is needed for that so I assume it is not an easy solution. |
|
|
|
Administrator has disabled public posting |
Re: [SOLVED] Assign 2 menu's to 1 section Re: FJRelated, I tried to find documentation on the web about this but didn't come up with anything useful.
|
|
|
Stephen Brandon |
Administrator has disabled public posting |
Re: [SOLVED] Assign 2 menu's to 1 sectionI've moved this to a new thread: http://www.metamodpro.com/forums/topic?id=14&p=1 |
|
|
Stephen Brandon |
Administrator has disabled public posting |
- Index
- » MetaMod
- » MetaMod General Support
- » [SOLVED] Assign 2 menu's to 1 section
Board Info
- Board Stats: Total Users: 3073 Total Topics: 1195 Total Polls: 7 Total Posts: 4448 Posts this week: 19
- User Info: Newest User : mdfavionics Members Online: 0 Guests Online: 94
- Online There are no members online
- Topic
- New
- Locked
- Sticky
- Active
- New/Active
- New/Locked
- New Sticky
- Locked/Active
- Active/Sticky
- Sticky/Locked
- Sticky/Active/Locked

































