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.

 

Module not appearing

Module not appearing

using joomla 1.5.25 / vm 1.1.19 / mm 2.12

using this logic on my breadcrumb module (module position)

module 19 (breadcrumbs) disabled, none for menus, position (breadcrumbs)

metamodule for breadcrumbs enbaled, all menus, position (breadcrumbs)

$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype not = shop.cart, shop.index" ) ) return 19;


given this my breadcrumb module 19 should not appear on my VM pages with shop.cart and shop.index but show on all other pages.

However, it does not.....

Module 19 in of itself works by itself

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

Re: Module not appearing

Anyone have an idea of why this does not work?

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

Re: Module not appearing

Yes, it's a boolean logic problem :-)

What you have above equates to "pagetype is not equal to shop.cart, OR pagetype is not equal to shop.index". If you think about it, that means that there's no possible value that will make this succeed.

What you want is this:

$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = none of shop.cart, shop.index" ) ) return 19;

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

Re: Module not appearing

I just tried that but it didnt work.

I even tried it with the simple logic of :

if ( MM_NOT_LOGGED_IN ) return 19;

yet it didnt work.

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

Re: Module not appearing

If your target module is unpublished, then you need to ensure that "Auto-enable included modules" is set to ALL. Perhaps that's the problem?

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

Re: Module not appearing

Sent you a PM with a video of my issue.

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

Board Info

Board Stats:
 
Total Topics:
1686
Total Polls:
6
Total Posts:
5933
Total Posts Today:
7
User Info:
 
Total Users:
4432
Newest User:
kinggambling14
Members Online:
0
Guests Online:
206

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