Comment to 'About default visibility'
  • Hi all!

    Ok, let me clarify my previous answer with the example when the operator of UNA site wants to make the  "Members only" variant as the default value for "Privacy" (or "Visibility") field in the Groups app.

    First of all, the operator should execute the next query in the database of the UNA site:

    UPDATE `sys_privacy_groups` SET `active`=1, `visible`=1 WHERE `title`='_sys_ps_group_title_members' 

    It's necessary to do because as the first step, by default, the "members" group is disabled.

    After this stage, the operator should enter to the Studio->Forms App and find there the "Groups" module. In the appeared line need to click on "7 displays" link (the number can be different if the operator already added / deleted displays). 

    In the new pages need to find the "Add Group" and click the "9 fields" link (this number can be different too).

    In the new page find the "Privacy" field and click the "Pencil icon" in the same line.

    In the appeared popup you should set the value in the "Default value" field. The "Members" group has "4" value in the system, so you need to set there "4" (2 - this is a "Me Only", 5 - "Friends",  the "Groups" app has the own variants like "c" letter means "Closed").

    Now the "Create a new group" form will have the default value "Members only" in the "Privacy" field.

    PS In the RC9 this way doesn't work for the "Posts" and "Discussions", but it is already fixed https://github.com/unaio/una/issues/1543 and will be available in the RC10.