Disable the Public Communities view in Communities
We can control whether the Public Communities view is available in the organization's deployment of Communities by editing settings in communities-config.xml. We can disable the Public Communities view so that users can only see the restricted communities they belong to.
- Use the wsadmin client to access and check out the Communities configuration files.
- Access the Communities configuration files:
- Check out the Communities configuration files:
./wsadmin.sh -lang jython
execfile("communitiesAdmin.py")
CommunitiesConfigService.checkOutConfig("/tmp", "cell_name")
To get cell name...
print AdminControl.getCell()
- Open communities-config.xml in a text editor.
- To disable the Public Communities view, add the following lines after the <comm:tagCloud> element and before the <comm:communityHandle> element:
<!-- Community Page Configuration --> <comm:communityPages> <comm:item name="publicCommunities" value="disabled"/> </comm:communityPages>
- Save the changes.
- After making changes, check the configuration files back in, and we must do so during the same wsadmin session in which you checked them out for the configuration changes to take effect. You must also stop and restart the Communities server. See Applying property changes in Communities for information about how to save and apply the changes.
Results
The disabled page no longer displays in the Communities user interface. If a user tries to navigate to the page by entering its URL directly into the address bar, a message indicating the page has been disabled displays.
Parent topic:
Administer Communities
Related: