Enable or Disable Web Parts for a Repository
- Last UpdatedJun 06, 2024
- 1 minute read
To enable or disable the Web Parts
We recommend to enable Security for the repositories while working in the Production environment.
-
Connect Farm database.
-
Query the properties column for the specified repository, as shown in below code snippet:
SELECT Properties, * FROM SKRepository
WHERE Name = 'RepositoryName'
It will display the record for the specified repository, select the properties column value and copy it. It will look something like this:
<properties>
<property key="spexplorerDisplayLimit"><![CDATA[0]]></property>
<property ey="sourceelements"><![CDATA[WORKFLOWELEMENTS\Default]]></property>
<property key="fromemail"><![CDATA[admin@domain.com]]></property>
<property key="toemail"><![CDATA[admin@domain.com]]></property>
<property key="alertuser"><![CDATA[False]]></property>
<property key="filewatcher"><![CDATA[]]></property>
<property key="enablesecurity"><![CDATA[True]]></property>
<property key="enablewebparts"><![CDATA[True]]></property>
<property key="isadminconfigured"><![CDATA[True]]></property>
<property key="isThemeEnabled"><![CDATA[True]]></property>
<property key="theme"><![CDATA[Default]]></property>
<property key="isDMSEnabled"><![CDATA[False]]></property>
<property key="AutoMapActiveDirectoryProviders"><![CDATA[True]]></property>
</properties>
-
Modify the property value for enablewebparts property to ‘True/False’.
-
Update the column value for the specified repository.
UPDATE SKRepository
SET Properties = 'Modified properties'
WHERE Name = 'RepositoryName'
-
Do an IISRESET.