Keyword

onContentAfterDisplay

  • Jean Machuron
  • Jean Machuron's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #175390 by Jean Machuron
onContentAfterDisplay was created by Jean Machuron
Hello I need to adjust the "Include Context" parameter under the "Comments and Likes" tab of CB Activity Bot for it to output in K2.

I don't know what your context is exactly, but it's probably com_k2.article for article view. If that's not correct then can somebody tell me what the context is for the onContentAfterDisplay event in k2 usage.

Thanks a lot
The topic has been locked.
More
4 years 7 months ago #175395 by JoomlaWorks
Replied by JoomlaWorks on topic onContentAfterDisplay
Try "com_k2.item".

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
  • Jean Machuron
  • Jean Machuron's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #175398 by Jean Machuron
Replied by Jean Machuron on topic onContentAfterDisplay
Thanks a lot ! working great :-)

Do you have an idea to limit a display to specific k2 categories ? is it doable with assets only ?
The topic has been locked.
More
4 years 7 months ago #175413 by JoomlaWorks
Replied by JoomlaWorks on topic onContentAfterDisplay
Can you provide more context please?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
More
4 years 7 months ago #175414 by JoomlaWorks
Replied by JoomlaWorks on topic onContentAfterDisplay
If you refer to the plugin event only (onContentAfterDisplay) then the only way to limit filtered K2 categories is by preselecting or excluding categories, either with some field/param control in the plugin you're building or hardcoded if it's for a custom (one off) project.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
  • Jean Machuron
  • Jean Machuron's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #175415 by Jean Machuron
Replied by Jean Machuron on topic onContentAfterDisplay
We use CB Activity Bot with context to display activities within com_content and com_k2 articles.
Works fine with com_k2.item but a way to filter display with categories would be great.
Maybe you could get in touch with CB team on this to further integrate k2 in activities display ?
The topic has been locked.
More
4 years 7 months ago #175430 by JoomlaWorks
Replied by JoomlaWorks on topic onContentAfterDisplay
I'm pretty sure they could have done this on their own if they wanted to.

K2 has one of the easiest APIs in the Joomla community. You can even grab a user's items via JSON (I assume that's what you want to do on each user's view on CB) and display it anywhere, even in CB. Just append ?format=json to any listing view in K2. Can't get any simpler...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
  • Jean Machuron
  • Jean Machuron's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #175438 by Jean Machuron
Replied by Jean Machuron on topic onContentAfterDisplay
That's absolutely perfect !!!
We were searching a way to integrate items/articles in a native web app and I must say that this is exactly what was requested and I did not even knew it !

Love that :-)
The topic has been locked.
More
4 years 7 months ago #175445 by JoomlaWorks
Replied by JoomlaWorks on topic onContentAfterDisplay
Great :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.

Powered by Kunena Forum