Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
It is difficult to change default visibility setting which is used for topics, events and nodes. We had a request from a customer to change the default option to "public" instead of "community".
Solution
Add a new option in admin panel where we could change default visibility for all content. (see attached image).
Comment | File | Size | Author |
---|---|---|---|
#7 | Post Default public visibility.png | 78.42 KB | nielsvandermolen |
#7 | Topic Default public visibility.png | 21.29 KB | nielsvandermolen |
#5 | Configuration to set content visibility.png | 301.98 KB | nielsvandermolen |
#3 | default-visibility-settings-2899562-3.patch | 15.18 KB | alex.ksis |
#3 | default-visibility-settings-rc5-2899562-3.patch | 14.42 KB | alex.ksis |
Comments
Comment #2
alex.ksis CreditAttribution: alex.ksis as a volunteer and at Lemberg Solutions, Open Social for Open Social commentedHere are two patches for rc5 and 8.x-1.x-dev.
PR: https://github.com/goalgorilla/open_social/pull/488
Comment #3
alex.ksis CreditAttribution: alex.ksis as a volunteer and at Lemberg Solutions, Open Social for Open Social commentedSince there were found some problems with nodes that were created programmatically, here are new patches.
Comment #4
ribelComment #5
nielsvandermolen CreditAttribution: nielsvandermolen at Open Social for Open Social commentedTested the functionality and looked at the code.
Also tested the more edge cases of content in groups which is working correctly.
Comment #6
xinyuma CreditAttribution: xinyuma at Open Social commentedThis feature is quiet interesting. What is the use case of this feature?
Comment #7
nielsvandermolen CreditAttribution: nielsvandermolen at Open Social for Open Social commentedTo set the default option to public visibility when creating content or posts in the community (see attached screenshots). There could be more use-cases if we add more visibility options (e.g. only for my friends / followers).
Comment #8
nielsvandermolen CreditAttribution: nielsvandermolen at Open Social for Open Social commentedComment #9
frankgraave CreditAttribution: frankgraave for Open Social commentedThis pull request for this feature has been merged. It will be shipped in our next 1.4 release!