Help to find the correct output in GJ categories

3 weeks 5 days ago #316389 by activha
Hello

Trying to match the category id in order to display some info, i tried this trigger
$_PLUGINS->trigger( 'gj_onBeforeDisplayCategory', array( &$return, &$rows, &$category, &$counters, $user ) );

I use [var3_id] to get the correct category but it seems that the returned $content only displays above all categories.

Can you tell me what I should use to implement some content at the right places, say above all groups displayed ?

Thanks
3 weeks 5 days ago #316390 by krileon
There's no trigger output on category view to output something just before the groups. You'd need to alter the below template file and change how the trigger is handled.

/components/com_comprofiler/plugin/user/plug_cbgroupjive/templates/default/category.php

Suggest doing this in your own custom template folder as altering the defaults will result in your changes lost on update.

This should all be significantly improved in a later release once GJ is rewritten to provide a generalized Community API to support multiple isolated GJ instances (like how you can have multiple different streams in CB Activity) as I'll be redoing most/all of GJs triggers at that point.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Moderators: beatnantkrileon
Time to create page: 0.445 seconds

Facebook Twitter LinkedIn