Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Trying to get Metamod to show modules in Articles

Trying to get Metamod to show modules in Articles

Hi,

I've been trying to get modules to appear in only certain articles, and I happened upon Metamod. Seems like it'll do everything I want, there's even a recipe like it was specifically built for me!

My problem is that I can't get the modules to even show up! I believe I've installed it correctly (just install the file in the Joomla backend, correct?), set 'none' for the menu assignment, gave it a position titled 'metamod', published = 'yes'. Set a module to 'metamod', grab the ID number and plunk it into Metamod.

I'm down to trying something simple like:

if (
$itemid == '67'
) return 44;
else return;

..and nothing is appearing, making me believe I screwed up the configuration somewhere. Is there more I have to put into my template file? Or did I miss some step along the way?

Any help is GREATLY appreciated!

Thanks in advance

byzmaster
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Trying to get Metamod to show modules in Articles

Hi byzmaster,

It sounds like you read all the instructions and are doing the right things.

Except... you wrote $itemid instead of $Itemid which is a problem since it's case-sensitive.

Try that - it will probably work smile

I have to wonder though... why are you doing just a simple test on Itemid? This is directly equivalent to selecting the particular menu item that you want the module to appear on, using the standard "menu assignment" control. So you could achieve the same result without the use of MetaMod.

If you're just doing this to experiment, fair enough. There are so many other things that you can do with MetaMod...

Hope that solves it anyway,
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: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Trying to get Metamod to show modules in Articles

Haha, silly me.

I just tried it though, and it's still a no-go. I was trying to copy paste the 'article per category' recipe and put my own numbers in, but that wasn't working either.

I realize this whole support request is fairly vague, but I'm totally at a loss here. Is there something that's supposed to go into the main template index.php file?

byzmaster
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Trying to get Metamod to show modules in Articles

No, you don't need to put anything into the index.php file.

With the recipe you are using, have you tried turning on Debug mode in MetaMod? That will give you some more information about what's going on. If you turn that on and still can't see anything then you've forgotten something in the setup... perhaps enabling the MetaMod? Assigning it to the right pages? Assigning it to a module position that exists in your template?

We'll get to the bottom of it!

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

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Trying to get Metamod to show modules in Articles

It's enabled, but what do you mean assigning it to the right pages?

Module position, I've got '<position>metamod</position>' in the templateDetails.xml.

I turned on debug mode, but nothing is appearing anywhere on my site (hockeyutopia.com, if you want to have a looksee).


*Also, thanks for taking time to reply to me!

Edited By: byzmaster
25-Oct-09 06:17:45

byzmaster
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Trying to get Metamod to show modules in Articles

Hi byzmaster,

I have a feeling you're making things far too complicated for yourself... there's no need at all to touch the templateDetails.xml file or any other files in your installation!

1 - install the MetaMod module using the normal Joomla installer
2 - in Extensions->Module Manager click on "New" then on the link for "MetaMod" to create a brand new one.
3 - when you are on the editing screen for MetaMod, turn it on (Enabled: Yes), and turn on debugging mode. Also, make sure that Menu Assignment is set to "All", and the Module Position is set to a module that appears on your page (in your case, "debug" or "footer" would be good to use, since they are out of the way).
4 - save the MetaMod.

Now, refresh the front page of your site. Do you see the debug output in the debug or footer positions? If not then something else is wrong. But you really should see something.

Once you get some output, then we can start to work on the recipe for your situation!

Cheers,
Stephen

p.s. what version of Joomla are you running, and what version of MetaMod?

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

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Trying to get Metamod to show modules in Articles

Joomla - 1.5.13
Metamod - 2.1

Well, seems like I just had to play with the menu assignments, as it's working! It seems like the module is showing up on every page now with an empty space. Is it possible to get rid of that white space, or is that a Metamod Pro thing?

byzmaster
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Trying to get Metamod to show modules in Articles

Finally you get some output! That's great news.

If the "white space" you are getting is as a result of these conditions:
- MetaMod is assigned to the page
- MetaMod is not producing any debug output
- MetaMod is not including any other modules
- and some horizontal space is showing up that doesn't appear when MetaMod is turned off and no other modules are assigned to that module position on that page

... then yes, it's probably a MetaMod Pro thing.

You can try to minimise the number of pages that the MetaMod is assigned to. If the MetaMod is not assigned to a page then it can't contribute to the problem.

But ultimately, MetaMod Pro fixes the issue because it is able to COMPLETELY remove empty MetaMods from the page, so your template does not see them, and thinks that there are no modules assigned to that module position... therefore does not reserve any space for them.

See the FAQ for it:  http://www.metamodpro.com/support/faq/2 … etamod-was

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

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1698
Total Polls:
6
Total Posts:
5945
Total Posts Today:
1
User Info:
 
Total Users:
5610
Newest User:
idim4
Members Online:
1
Guests Online:
384

Online: 
bseba9l

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked