Skip to Content Skip to Menu

CB Activity Like & Comments in Category Desc?

  • Compix83
  • Compix83
  • OFFLINE
  • Posts: 36
  • Thanks: 3
  • Karma: 1
3 years 8 months ago #323557 by Compix83
Replied by Compix83 on topic CB Activity Like & Comments in Category Desc?

krileon wrote: Under Output set Display to "return" then see if it outputs.


Hi Krileon.

If I select "return", nothing happens.

Something happens if i select other options, eg "echo" or "var_dump", but the comments section appears at the top of everything and completely busted.

Here is a screenshot.
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
3 years 8 months ago #323562 by krileon
Replied by krileon on topic CB Activity Like & Comments in Category Desc?
Ok, the below appears to work.

Category List View
Global
Triggers: joomla_onContentAfterDisplay
Type: CB Activity
User: Self
Access: Everybody
Conditions
Field: Custom > Value
Custom Value: [var1]
Operator: Equal To
Value: com_content.categories
Action
Mode: Stream
Stream: Comments
Asset: category.[var2_id]
Output
Display: return
Layout:
Code:
<div class="cb_template">[content]</div>
Method: HTML

Category View
Global
Triggers: joomla_onContentAfterDisplay
Type: CB Activity
User: Self
Access: Everybody
Conditions
Field: Custom > Value
Custom Value: [var1]
Operator: Equal To
Value: com_content.category
Action
Mode: Stream
Stream: Comments
Asset: category.[var2_id]
Output
Display: return
Layout:
Code:
<div class="cb_template">[content]</div>
Method: HTML

Again, this is all on Joomla. What context you check against is dependent on the Joomla views usage of onContentAfterDisplay and where the comments are placed are dependent on the Joomla views output of onContentAfterDisplay. For category lists for example this is unfortunately at the very top for whatever reason. Those were the only 2 relevant contexts I could find. You can enable Debug under the Parameters tab of your auto action to see what your condition is checking against as well.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
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 CST to 4:00 PM CST. 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.
The following user(s) said Thank You: Compix83

Please Log in or Create an account to join the conversation.

  • Compix83
  • Compix83
  • OFFLINE
  • Posts: 36
  • Thanks: 3
  • Karma: 1
3 years 8 months ago #323624 by Compix83
Replied by Compix83 on topic CB Activity Like & Comments in Category Desc?
And indeed the comments always appear at the top.

At this point I give up. I thank you for your helpfulness and patience.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum