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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex.ksis created an issue. See original summary.

alex.ksis’s picture

Here are two patches for rc5 and 8.x-1.x-dev.
PR: https://github.com/goalgorilla/open_social/pull/488

alex.ksis’s picture

Since there were found some problems with nodes that were created programmatically, here are new patches.

ribel’s picture

nielsvandermolen’s picture

Title: Change default visibility setting for content » Setting to change the default visibility setting for content
Issue summary: View changes
FileSize
301.98 KB

Tested the functionality and looked at the code.

Also tested the more edge cases of content in groups which is working correctly.

xinyuma’s picture

This feature is quiet interesting. What is the use case of this feature?

nielsvandermolen’s picture

To 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).

nielsvandermolen’s picture

Status: Needs review » Reviewed & tested by the community
frankgraave’s picture

Status: Reviewed & tested by the community » Fixed

This pull request for this feature has been merged. It will be shipped in our next 1.4 release!

  • frankgraave authored 26a609f on 8.x-1.x
    Merge pull request #488 from goalgorilla/feature/2899562-default-...
  • alex.ksis committed 39e9dfc on 8.x-1.x
    Issue #2899562 by alex.ksis: Fix default visibility for programmatically...
  • alex.ksis committed 795ab99 on 8.x-1.x
    Issue #2899562 by alex.ksis: Add ability to change default visibility...
  • alex.ksis committed f71cc2e on 8.x-1.x
    Issue #2899562 by alex.ksis: Add hook_update to remove default values
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.