Skip to Content Skip to Menu

File access

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 weeks 4 days ago #339521 by krileon
Replied by krileon on topic File access

I guess, I understood. I have to create activity assets , e.g. profile.30.consumer, profile.60.retailer ...aso and in the gallery field under "Thematic assignment" has to be the value "profile.[uset_id].[cb_profile_type](e.g.)", correct?

Correct. Those fields will substitute into the asset making a per-user per-type specific gallery.


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.

  • uwe2023
  • uwe2023
  • ONLINE
  • Posts: 107
  • Thanks: 18
  • Karma: 2
2 weeks 4 days ago #339532 by uwe2023
Replied by uwe2023 on topic File access
Hi Kyle, ok, I tried it like this. I created an activity strem with the asset "profile30.haendler" (retailer) and a stream with the asset "profile60.endkunde" (customer) (30 and 60 could also be 11 und 12??). Then I created a gallery field "cb_dateien" and disabled everything except file upload and thumbs. The theamtic assignment for this field is "profile.[user_id].[cb_registrierung_als]", where [cb_registrierung_als] is the field with the options for the user profiles.

But it doesn't work. I loaded up a file as retailer. But also the customer sees the file. Any idea, what I did wrong?

Best regards Uwe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 weeks 3 days ago #339535 by krileon
Replied by krileon on topic File access
That just makes the gallery specific to the profile type. To restrict who can see the gallery you need to then use CB Conditional or CB Privacy. Who is supposed to have access to this gallery? Just the profile owner? Specific usergroup? Specific view access level? Users with a specific profile type (via field value)?


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.

  • uwe2023
  • uwe2023
  • ONLINE
  • Posts: 107
  • Thanks: 18
  • Karma: 2
2 weeks 3 days ago #339536 by uwe2023
Replied by uwe2023 on topic File access
Ok. Yes, access should be in relation to the profile type.E.g. customers shouldn't see every (every) file of retailers, retailers shouldn'pt see files of every producer, only of their partner companies. So maybe profile20.haendler.siemens, if an retailer should see files of Siemens?

Best regards Uwe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 weeks 3 days ago #339537 by krileon
Replied by krileon on topic File access
If your asset is "profile.[user_id].[cb_registrierung_als]" then they'll see the gallery entries specific to the profile their viewing which is also specific to their profile type. If you also want to condition this so for example siemens can only see siemens galleries you need to then also condition this field within CB Conditional. The below condition should work to make sure the displayed profile and the viewing user have the same profile type.

Field > Integrations > CB Conditional
Display: Field conditional show
Field: cb_registrierung_als
User: Viewing User
Operator: Equal To
Value: [cb_registrierung_als]
On: Profile View and Userlists View

only of their partner companies

I've no idea what you mean by this but regardless to control who can see the gallery you need to use CB Conditional. If you've other criteria to determine who should see the gallery you can configure it within the condition parameters as needed. CB Conditional supports conditioning against fields, custom values, database queries, custom PHP, and more much so you're basically limitless here.


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.

  • uwe2023
  • uwe2023
  • ONLINE
  • Posts: 107
  • Thanks: 18
  • Karma: 2
2 weeks 3 days ago #339538 by uwe2023
Replied by uwe2023 on topic File access
Hi Kyle, ok, thank you for that.

Just a last, simple question: I am not a coder as you know, I am doing a lot by testing script snippets out :-). And I really dont't know what [user_id] makes. E.g [user="displayedorme] is easy to understand, but [user_id]?

Thanks again and best regards Uwe

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

Moderators: beatnantkrileon
Powered by Kunena Forum