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.

 

[solved] Show in Categories - Not Articles

[solved] Show in Categories - Not Articles

I am wondering if this can show a module on a specific category, but not the articles within it (and if so, how to go about doing it). Essentially here's a visualization of what I'm going for (I'm on Joomla 1.7):

I have my pages:

Index(Home)
Sports
Sports->Soccer
Sports->Soccer->The Latest News of Soccer (article title)

What I'd like to do is show a module that only shows up on Sports->Soccer (Not other categories within Sports, and not on the articles that are under it either). Essentially:

mysite.com/sports (no module)
mysite.com/sports/soccer (MODULE)
mysite.com/sports/soccer/the-latest-news-of-soccer (no module)
mysite.com/sports/baseball (no module)

Thanks in advance!

raptorak
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] Show in Categories - Not Articles

Hi,

I'm not sure that MetaMod is going to work in Joomla 1.7 so well as J1.7 is outdated and a serious security risk... but it may work and there's no risk in trying.

The good news is that you can do exactly what you are asking for in MetaMod. Try the following code:

if ($content_genius->check('category_title = soccer') and $content_genius->check('pagetype starts with category')) return XXX;
// replace XXX with the module id of the module you want to display

Easy :-)

Please ensure that you follow the setup instructions in the Quick Start guide closely: http://www.metamodpro.com/metamod/quick-start

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: [solved] Show in Categories - Not Articles

Thank you! I'm going to give this a go. The reason I haven't upgraded to 2.5 yet is because I've tried 8x now and all 8x I end up with various errors (which apparently relate to MooTools being changed to something else in 2.5) and have no idea how to fix it since I can't figure out exactly what is throwing the error.

raptorak
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] Show in Categories - Not Articles

Brandon,

I want to report back that it worked flawlessly. Thank you for your assistance!

raptorak
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] Show in Categories - Not Articles

Glad that's working for you - thanks for reporting back.

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4388
Newest User:
wilmer7878
Members Online:
2
Guests Online:
152


Forum Legend:

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