logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Permissions for nodes and dependent fields.

22/02/2025, by Anonymous (not verified)

Hello! While creating the project, an interesting and urgent question arose. If this issue is not resolved at this stage, it will be difficult to restructure the entire project in the future.

Task:
On the site, registered users can add establishments (restaurants, cafes, LLCs, etc.). They have the option to choose from several plans – Free, Standard, and Extended.
The 3 different plans provide different publication rights for the establishment. For example, in the free plan, you can only add up to 3 photos. In the standard plan, up to 20. The free plan does not allow adding products or dishes, nor does it allow creating events. These features are available in the other plans.
As far as I know, rights are assigned to users, not nodes. At this stage, we planned to create a content type for Establishments. Users could add multiple establishments and select plans via a List (Checkboxes/Radios). Then, we planned to create content types for Dishes or Products, Events.

ATTENTION questions!!!
1. How do we change node rights when selecting different plans without changing user rights? Or will each establishment have to be treated as a user???
2. How can we ensure that the Product content type belongs to the Establishment content type if it is created for that establishment???
3. How can we set different numbers of photos for different plans? Or should we just create dependent fields + 3 Image fields? When selecting the desired plan, the field with the required number of images should appear.
4. Which module should we choose for dependent fields? Are there alternatives to conditional_fields? I've heard it's not fully developed for Drupal 7.

Thank you in advance for your answers and help. We just want to avoid hitting a ceiling and get everything right from the start.