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] Kunena

[solved] Kunena

Goodday,

Yesterday i purchased Chameleon, wich is a nice component. But there is a little thing i don't understand (and maybe not possible)
In kunena forum i want a bunch of pages (all with the same catid, but different itemid's) with a different template than the standard.

Is this possible?
The url string is like this: index.php?option=com_kunena&view=category&catid=78&Itemid=1035  The catid is alway's 78 on this part of the site, and the itemid is changing. Can somebody help me with a code and tell me how i can realize that with chameleon within joomla?

chiller99
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: [solved] Kunena

Sure. You can do this in the PHP tab of Chameleon, to detect URL parameters.

In the PHP section, return true to cause the rule to succeed, and fail to make it fail.

So you can make 1 rule per Itemid/catid combination that you want to detect.

eg.

if ( JRequest::getVar("Itemid") == 1035 and JRequest::getVar("catid") == 78) return true;
else return false;

Then in the succeed action for that rule you can set the template to be used.

I wonder if you are saying that you don't care what the Itemid is (because that varies), but you just want to use the same template for all catid=28 pages irrespective of Itemid?

In that case:

if ($option == "com_kunena" and $view == "category" and JRequest::getVar("catid") == 78) return true;
else return false;

I think that should do it.
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
3329 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Kunena

Wauw it is working!!!!! Many thanks.

chiller99
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Posts this week:
7
User Info:
 
Total Users:
5418
Newest User:
outsd2
Members Online:
0
Guests Online:
132

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