Fórum

Default visibility

Pierre Morin, modificado 12 Anos atrás.

Default visibility

Junior Member Postagens: 70 Data de Entrada: 17/05/11 Postagens Recentes
Hello !

I'm making a private website with Liferay and I'd like to avoid users to publish content with "Anyone (Guest Role)" visibility permission.
For example, I'd like to have "Organization Members" selected by default in "Viewable by" permission when a user adds a new event to its calendar on its public page.

Is anyone knows how I can do that ?

Thanks !

Pierre
thumbnail
Dhrutika Parekh, modificado 12 Anos atrás.

RE: Default visibility

Expert Postagens: 435 Data de Entrada: 09/02/09 Postagens Recentes
Hi,

Look at below jsp file \html\taglib\ui\input_permissions\page.jsp

In this you will see code,which is setting this guest by default in drop-down box.
You can replace Guest role by organization member as default in below code.
i.e
<option <%= (inputPermissionsViewRole.equals(RoleConstants.GUEST)) ? "selected=\"selected\"" : "" %> value="<%= RoleConstants.GUEST %>"><liferay-ui:message key="anyone" /> (<liferay-ui:message arguments="<%= guestRole.getTitle(themeDisplay.getLocale()) %>" key="x-role" />)</option>


Regards,
Dhrutika
Pierre Morin, modificado 12 Anos atrás.

RE: Default visibility

Junior Member Postagens: 70 Data de Entrada: 17/05/11 Postagens Recentes
Thank you !
But I don't know what replace by what. ^^
In facts, I'm a newbie on Liferay and I don't really know how to tell it to always select "Organization members" or "Community members" (depends on the context of the call of the JSP).

Do you know how I shouls modify this file ?

Thanks,
Pierre