Skip to Content Skip to Menu

Activity stream and Assets

  • uwe2023
  • uwe2023
  • ONLINE
  • Posts: 107
  • Thanks: 18
  • Karma: 2
1 year 1 month ago #335191 by uwe2023
Activity stream and Assets was created by uwe2023
Hi,
I want to create different "categories" of activitiy streams that will only be visible to specific user groups. I guess the correct way is to create assets as "categories" for the different streams and filter them?

I read the examples in the asset field carefully :-). But for me it is not really clear how to create the specific asset? Can I choose a free term for that, or is the asset a combination of several substitutions? E.g. in your example there is mentioned an asset called "global.cars". What is this the example for? Or is global.cars an example for a free choosen term?
Best regards Uwe
 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
1 year 1 month ago #335200 by krileon
Replied by krileon on topic Activity stream and Assets
Asset can be whatever you want. It's just a term to determine where a post belongs. With CB Activity 6.0.0 this will be easier since activity streams are just normal stored in the database objects that you can even specify the view access level for. For now though yes you need to make a Joomla menu item or a field with your custom assets. I recommend maintaining the following structure for an asset.
Code:
TARGET_ORIGIN . TARGET_TYPE . TARGET_ID . OBJECT_ORIGIN . OBJECT_TYPE . OBJECT_ID . VERB

Example as follows.

profile.30.field.20

This is broken down as follows.

TARGET_TYPE = profile
TARGET_ID = 30
OBJECT_TYPE = field
OBJECT_ID = 20

An asset for a CB GroupJive group would be like the following.

groupjive.group.10

Which breaks down as follows.

TARGET_ORIGIN = groupjive
TARGET_TYPE = group
TARGET_ID = 10

In this case since there's no explicit object specified then the object is just whatever the target is.

This structure is CB Activity 6.0.0 compatible. So when creating custom usages it's ideal to follow this, but it's not required. So for example all of the following are fine.

global.cars
global.movies
movies.scary
custom.1
custom.2
custom.3


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum