Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


hinsert
Beginner Modder
ranks
useravatar
User Info

[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?

The bottom part of the section recipe includes:

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. wink

I am willing to pay for the pro version if it helps to fix this 'problem' or donate. But I need to be sure that this can be 'fixed' smile

Thanks!
hinsert



Edited By:  hinsert
10-Sep-09 10:39:07

Administrator has disabled public posting
metamodguy
useravatar
User Info

Re: [SOLVED] Assign 2 menu's to 1 section

Hi Hinsert,

You're doing exactly the right thing here, putting the two module numbers between quotes, with commas separating.

A couple of things to check:
1 - do you actually have modules with ids of 52 and 57? If not, change these numbers to the right ones on your setup.

2 - you need the entire recipe in there, not just that line. The first part of the recipe calculates the variable "$section_id" so it has to be in there.

Lastly, to get this working you don't need MetaMod Pro, though once you have your rules set up you might decide you want to purchase it if you have layout issues that you can't get around.

If you continue to have problems please include the entire rule into your post; that helps to diagnose problems.

Best regards,
Stephen


Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory

Administrator has disabled public posting
hinsert
Beginner Modder
ranks
useravatar
User Info

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.

Thanks a lot for your help!
hinsert


Administrator has disabled public posting
hinsert
Beginner Modder
ranks
useravatar
User Info

Re: [SOLVED] Assign 2 menu's to 1 section

I have another question about the layout of the menu. Here is an image of the menu (don't try to understand the language wink):
http://i26.tinypic.com/2dm9ite.jpg

The upper menu is the original one while the bottom menu is a result of metamod. It duplicates the menu it seems. Can I fix this by ordering metamodpro, i.e. will the menu look like the original one in the pro version?


Administrator has disabled public posting
metamodguy
useravatar
User Info

Re: [SOLVED] Assign 2 menu's to 1 section

Hi,

the easiest way to solve this is with MetaMod Pro. However you can often get good results in other ways:

1 - try adding a Css Class Suffix to the MetaMod (e.g. "-metamod"). That can often fool the css rules into not recognising that the MetaMod is a module that needs to have borders etc around it.

2 - then, use the "style for included modules" dropdown to experiment with the different options and find one that works for you.


Cheers,
Stephen


Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory

Administrator has disabled public posting
hinsert
Beginner Modder
ranks
useravatar
User Info

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. wink

I really appreciate your quick responds on my questions, thanks a lot!

Best,
hinsert


Administrator has disabled public posting
metamodguy
useravatar
User Info

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.

Can you send some example URLs with SEF turned off, explaining which pages you would want the modules on, and which not? It's probably not hard to make some rules for it.

Cheers,
Stephen


Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory

Administrator has disabled public posting
metamodguy
useravatar
User Info

Re: [SOLVED] Assign 2 menu's to 1 section

I've moved this to a new thread: http://www.metamodpro.com/forums/topic?id=14&p=1


Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory

Administrator has disabled public posting

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
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked