Fórumok

How to custome Documents and Media Permission

thumbnail
Panha Morn, módosítva 10 év-val korábban

How to custome Documents and Media Permission

New Member Bejegyzések: 10 Csatlakozás dátuma: 2013.09.18. Legújabb bejegyzések
Dear all Experts,

I would like to know how to unchecked permissions. I want to get all unchecked when I create a new folder.
Oliver Bayer, módosítva 10 év-val korábban

RE: How to custome Documents and Media Permission

Liferay Master Bejegyzések: 894 Csatlakozás dátuma: 2009.02.18. Legújabb bejegyzések
Hi Panha,

if you want to change the defaults for all newly created folders you should change the "portal-impl \ resource-actions \ documentlibrary.xml" if I rememver right.

HTH Oli
thumbnail
Panha Morn, módosítva 10 év-val korábban

RE: How to custome Documents and Media Permission

New Member Bejegyzések: 10 Csatlakozás dátuma: 2013.09.18. Legújabb bejegyzések
Hi Oliver,

Could you detail the exactly path because I cannot find "portal-impl \ resource-actions \ documentlibrary.xml".

Thanks,
Panha MORN
Oliver Bayer, módosítva 10 év-val korábban

RE: How to custome Documents and Media Permission

Liferay Master Bejegyzések: 894 Csatlakozás dátuma: 2009.02.18. Legújabb bejegyzések
Hi Panha,

you can find it either by extracting portal-impl.jar file (located in the server "WEB-INF \ lib" directory) or you can download the source code. The next step would be to navigate to "portal-impl/ resource-actions" package and search for "documentlibrary.xml". There you will find a model-resource defined as "com.liferay.portlet.documentlibrary.model.DLFolder" where the default permissions are defined for documentlibrary folders. Now override these settings with an ext-plugin (using the eclipse IDE and the Liferay SDK). In current trunk that means the latest development version the following list shows the default permissions which are getting applied when creating a new folder:

...
<site-member-defaults>
	<action-key>ADD_DOCUMENT</action-key>
	<action-key>ADD_SHORTCUT</action-key>
	<action-key>ADD_SUBFOLDER</action-key>
	<action-key>VIEW</action-key>
</site-member-defaults>
...

Greets Oli
thumbnail
Panha Morn, módosítva 10 év-val korábban

RE: How to custome Documents and Media Permission

New Member Bejegyzések: 10 Csatlakozás dátuma: 2013.09.18. Legújabb bejegyzések
Hi Oliver,

Thanks very much for your helping. I've completed and found as well.

For one thing is to get permission from parent folder and sub folder have to inherit ( get the same permission as parent folder) .
Do you have any tips please help.

Best wish,

Panha.