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.

 

Some problems with metamod

Some problems with metamod

Hi,
I want my categories to be diplayed only on the frontpage.
So, I've installed mod_frontpage_categories and I want this module to be displayed on the frontpage only, so I installed Metamod and marked

if ($option == "com_virtuemart" and JRequest::getVar("page") == "shop.index") return 38;

38 - is an ID for my mod_frontpage_categories.

But it just doesn't work
Debug shows me nothing interesting:

MetaMod debug info:
$option: com_virtuemart
$view:
$id:
$Itemid: 1
$timezone: default
$language: ru-ru
$language_code: ru
$language_region: ru
Including modules:

Why could it be?

Thanks for help

DrAiboleath
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Some problems with metamod

Hi DrAiboleath,

could you please turn on Advanced Debug mode, and post the results of that here?

Also, when you talk about the "front page", are you talking about the front page of Joomla, or the front page of Virtuemart, or both?

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Some problems with metamod

Hi, metamodguy!
I'm talking about virtuemart frontpage (I have set virtuemart as a default menu item in the "mainmenu").

Unfortunately, in the options of metamod I see only Debug: off and on - please, tell me how can I turn it into advanced mode?

DrAiboleath
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Some problems with metamod

Ah, I think you could use an upgrade to MetaMod 2.2c, the latest version.

http://www.metamodpro.com/get-started/download

Just install it over top of the old version (don't uninstall first), and it will keep all your rules in place.

Then you'll find the advanced debug mode.

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Some problems with metamod

Thank you!
I've installed successfully new metamod.
So, for exapmle, I want my module #38 not to appear on the page of the second category,
so I look up in the advanced debug -

if (
$option == 'com_virtuemart'
and JRequest::getVar('page') == 'shop.browse'
and JRequest::getVar('category_id') == '1'
and $Itemid == '1'
and JRequest::getVar('format') == 'html' /*!*/
) return XXX; /* replace XXX with the module ID or position to display */

I change xxx to 38, but module is still displayed on the page.
Can you please tell me, what I'm doing wrong?

And by the way, may be there is some other way to display module on the frontpage of the shop only?

DrAiboleath
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Some problems with metamod

Hi DrAiboleath,

Can I assume that the output above was when you are viewing the FIRST category, then one where you DO want the module to appear?

If so, then this is probably correct PHP for what you want to achieve.

However, you need to follow the other steps on the quick start guide: http://www.metamodpro.com/get-started/quick-start

The key point is that you need to stop your "target" module from appearing EXCEPT for when MetaMod includes the module. The most common way to do this is to DISABLE the target module (unpublish). The MetaMod overrides the "unpublish" flag and just includes the module anyway. But the "unpublish" stops the module from appearing on the pages where the MetaMod *doesn't* include it.

I hope that makes sense... write back if you need more help with it.

2nd question about the front page of the shop:

See http://www.metamodpro.com/support/recip … mart-pages and use the first recipe on that page.

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Some problems with metamod

Thank you, Stephen.
I'd like to say, that the support of your MetaMod is very fast and competent.

May be I didn't understand everything well.

The task is to show module #38 on the frontpage of the shop only(it is the frontpage of the site too), in the position "user2".

What I've done -
1)Unpublished 38' module
2)Set Metamod to 'user2' position
3)In the PHP box wrote
if ($option == "com_virtuemart" and JRequest::getVar("page") == null) return 38;

But, unfortunately, on the category page, for example
http://anything/home.html?page=shop.browse&category_id=1

and on all other pages of virtuemart, for example on the page of the item,

http://anything/home.html?page=shop.product_details&flypage=flypage-ask.tpl&product_id=2&category_id=3

metamod also shows me 38 module.

What should I do in my case?

Thank you for help.

DrAiboleath
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Some problems with metamod

Hi DrAiboleath,

according to the PHP rule that you set, the module should not be showing up on those pages!

Another thing to check - do you have "38" in the Quick Module ID Include box? If it's there, take it out.

I hope that was the problem...

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Some problems with metamod

Oh, thank you, Stephen.
The problem was in Quickmodule include box, now it's working wonderful, just as I want.

Metamod is awesome=)

DrAiboleath
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5910
Total Posts Today:
1
User Info:
 
Total Users:
10152
Newest User:
kasautiizindagiikay
Members Online:
0
Guests Online:
194

Online: 
There are no members online

Forum Legend:

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