Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)

CB activity 4 auto action fatal error

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
7 years 8 months ago #293242 by activha
Replied by activha on topic CB activity 4 auto action fatal error
That' really great !
Wonderful update :-)

BTW if I need to suppress an activity if the hotspot is removed, how can I retrieve it ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48609
  • Thanks: 8300
  • Karma: 1446
7 years 8 months ago #293248 by krileon
Replied by krileon on topic CB activity 4 auto action fatal error

BTW if I need to suppress an activity if the hotspot is removed, how can I retrieve it ?

You can tell your activity action to load by nothing, by asset only, by asset and owner, or by owner only. Your asset should technically be as unique as possible. Example as follows for CB Gallery.

gallery.photos.PHOTO_ID

So if I load by asset I can edit that activity and unpublish it, update it, etc.. Additionally you can delete by the asset so I could delete that activity entry. Note the delete usage supports a wildcard as well so if you delete the asset "gallery.photos.%" it would delete all photo activity for everyone (unless it's told to load by asset AND owner).


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: activha

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

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
7 years 8 months ago #293313 by activha
Replied by activha on topic CB activity 4 auto action fatal error
I see all the potential of this plugin :-)

Do you have a doc somewhere for the API ?
For instance it would be great to use the module per asset for other components.
But in this case the asset Id has to be dynamic and the module cannot be used.

Can you explain how to integrate ?

Thanks
Jean

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48609
  • Thanks: 8300
  • Karma: 1446
7 years 8 months ago #293324 by krileon
Replied by krileon on topic CB activity 4 auto action fatal error

Do you have a doc somewhere for the API ?

No, you ideally should never have to directly use CB Activity API.

For instance it would be great to use the module per asset for other components.

CB Activity comes with a content prepare plugin and a module. Both support custom asset with substitutions.

But in this case the asset Id has to be dynamic and the module cannot be used.

Asset in all usages supports substitutions. So a module for example can have activity unique to the module by its module id (e.g. byusing [module_id]). More custom substitutions can be added as needed. The content prepare plugin can be unique per article if it's from com_content using [article_id]. Both support [page_id] which makes the asset unique to the current Itemid.

Can you explain how to integrate ?

Best way for 3rd party extensions to integrate is to just fire a CB trigger then act on it using CB Auto Actions. This ensures no dependency to maintain the implementation as that falls on us maintaining CB Auto Actions.


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: activha

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

Moderators: beatnantkrileon
Powered by Kunena Forum