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.

 

Using MetaMod with bespoke component

Using MetaMod with bespoke component

Is it possible to use MetaMod in combination with a bespoke component? We have a website for which we had bespoke component built (similar to Virtuemart's Shopper Groups) and I would like to know if it's possible to use MetaMod with this without any code alteration?

Many thanks

porius
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Using MetaMod with bespoke component

Hi Porius,

Yes, it should be possible to do this. MetaMod is extremely flexible - and that's one of the benefits of making the rules in PHP.

Of course, making the PHP rules is going to be up to you or your programmers.

If you just want to detect different "pages" according to different parts of the URL, you might have good success with turning on MetaMod's "Advanced Debug" mode, then looking at the PHP rules that are generated as you look at each page.

On the other hand, you mentioned "groups" which are likely to be database-based. So you're likely to have to do some database lookups based on the identity of the current user ($user->id). Check out the "Recipes" section on this site, and find some of them that do database lookups to find out how to do it.

If you're not a/the programmer yourself you'll probably find this a big challenge. See if your programmers can help you. If not, I'm for hire for small jobs like this.

Hope that helps,
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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4421
Newest User:
rajajudi14
Members Online:
0
Guests Online:
105

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