Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Need help with Metamod...
[solved] Need help with Metamod configuration
[solved] Need help with Metamod configuration
Hi,
I´m using Joomla 2.5.6 and just installed Metamod mod_metamod-3-21 for Joomla 1.7-3.4 NOTE: FOR JOOMLA 1.7-3.4 ONLY.
URL public. www.expoconstrudecor.es
I did not used a previous version.
Module just does not work properly – does not appear anyhow.
The module metamod is installed correctly.
Detalles
• Título * MetaMod
• Mostrar: Título Mostrar / show
• Posición: right_top
• Estatus: enabled
• Acceso: public
Asigned menu: all
• PHP
$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype = shop.browse") ) {
$category_id = $vm->info( "category_id" );
if ($category_id == "11") return 166;
if ($category_id == "12") return 168;
}
Both Return modules are enabled; 166 is custom HTML and 164 is mod banner, got ID from Available modules list.
Categories ID from Virtuemart component categories list .
http://www.expoconstrudecor.es/campanasactuales id 11
http://www.expoconstrudecor.es/top-productos id 12
I checked and follow instructions from your page, from this other one http://www.webempresa.com/blog/item/828 … emart.html and youtube tutorial https://www.youtube.com/watch?v=TjTMJM9xJCg
I´ve tried with a few different categories and with diferent modules (from available module list).
Module simply just does not show. Any suggestions?
Thanks, best regards.
Re: [solved] Need help with Metamod configuration
Hi,
I think the issue is that "shop.browse" is VM 1.0 only. Internally the page types (names) changed for VM2.0. I think the page type you are after is going to be "category". Try it this way:
Code:
$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype = category") ) {
$category_id = $vm->info( "category_id" );
if ($category_id == "11") return 166;
if ($category_id == "12") return 168;
}
If you want to double check the names of the different page types, you could use this code to display the page names(types):
Code:
$vm = JomGenius("virtuemart");
echo "VM page type: " . $vm->info("pagetype")."<br>";
Then you can use this inside the check() method.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Need help with Metamod...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 192
- 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