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)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

File access

  • uwe2023
  • uwe2023
  • OFFLINE
  • Posts: 111
  • Thanks: 20
  • Karma: 2
1 month 3 weeks ago #339508 by uwe2023
File access was created by uwe2023
Hi,

I am trying to do the following: I have producers and retailers on my site. Not every retailer should see every file on a page or profile. E.g. if there is a Siemens retailer he only should see files for Siemens retailers. And Siemens should only be able to upload files for Siemens retailers. First I thought there could be a way doing it with the types of connections (e.g. connetion-type: Siemens-Retailer). But if, e.g., Miele is loading up a file they also could select the connection type "Siemens-Retailer".

I created a field now "My Producers". Is there a way with the Gallery plugin to enable it that e.g. Siemens files will automatically will be visible in Siemens-Gallery just for Siemens-Retailers?

Best regards Uwe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 month 3 weeks ago #339509 by krileon
Replied by krileon on topic File access
I would create a select field to specify what type of profile they are or a usergroup that gets assigned to them. Next I would create 2 Gallery fields in CB > Field Management. Now use CB Conditional to condition each gallery so they're only accessible to a specific profile type. This should give you 2 distinctive galleries that you can restrict with profile type or any other conditions you want using CB Conditional.


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
  • OFFLINE
  • Posts: 111
  • Thanks: 20
  • Karma: 2
1 month 3 weeks ago #339510 by uwe2023
Replied by uwe2023 on topic File access
Hi Kyle, ok, thank you. That's what I intended to try next. The only thing is that this is a lot of work, because we have round about 100 producers :-(. But ok, if this is the way.... Best regards Uwe

btw....is there eventually an easier way with CB Paid Subscritpions? I guess this addon is something like a shop system, and maybe ....?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 month 3 weeks ago #339511 by krileon
Replied by krileon on topic File access
The Asset for galleries supports substitutions so you could get away with a single gallery field, but use substitutions to determine the asset used. Example as follows.

profile.[uset_id].[cb_profile_type]

cb_profile_type would be the select field for selecting profile type. So for example you might have the following options in the select field.

Option 1
Value: retailer
Label: Retailer
Option 2
Value: consumer
Label: Consumer

This would result in the following assets for the gallery field allowing for gallery isolation per-user per-type.

profile.30.consumer
profile.60.retailer

Hopefully am understanding your needs correctly, but you absolutely do not need a gallery field per producer. Galleries can be dynamically built due to asset substitution support and conditions can be dynamic based off profile owner and profile viewer. With both of those in mind you should only need 1-2 galleries at most.


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
  • OFFLINE
  • Posts: 111
  • Thanks: 20
  • Karma: 2
1 month 3 weeks ago #339513 by uwe2023
Replied by uwe2023 on topic File access
Hi Kyle, thank you for this input.

I am not really sure how to handle this. What is the function of profile.[user_id] ? And "30" or "60" in profile.30 or profile.60: are these numbersan id, and, if yes, I didn't found an id in my profile options field....or are these numbers just numbers, random given?

And: the input area of these values in the gallery field is in Parameters "profile value layout" in tab "layout", or under "display >Thematic assignment"?

Best regards Uwe

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

  • uwe2023
  • uwe2023
  • OFFLINE
  • Posts: 111
  • Thanks: 20
  • Karma: 2
1 month 3 weeks ago #339514 by uwe2023
Replied by uwe2023 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?

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

Moderators: beatnantkrileon
Powered by Kunena Forum