Forums de discussion

Maxmize and Minimize

Tony Lim, modifié il y a 14 années.

Maxmize and Minimize

Junior Member Publications: 90 Date d'inscription: 15/04/09 Publications récentes
hello,

How can I give all my users the ability to Maxmize and Minimize portlets abilities only?

Thanks!
thumbnail
kamalkant rajput, modifié il y a 14 années.

RE: Maxmize and Minimize

Expert Publications: 266 Date d'inscription: 10/04/08 Publications récentes
Hi,
For guest we can do in portal-ext.properties while for users u need to customize portlet.vm file of your theme.
it can be done like this

#if ($permissionChecker.isCompanyAdmin($company_id))
$theme.iconOptions()
$theme.iconClose()
#end
so admin only can see all icon . and all other users will get only maximize and minimized icon.
Don't forget to stop and start the server after modifying vm files.

HTH
KamalKant
Tony Lim, modifié il y a 14 années.

RE: Maxmize and Minimize

Junior Member Publications: 90 Date d'inscription: 15/04/09 Publications récentes
Thanks Kamalkant!
thumbnail
Lisa Simpson, modifié il y a 14 années.

RE: Maxmize and Minimize

Liferay Legend Publications: 2034 Date d'inscription: 05/03/09 Publications récentes
That's uber handy and should be placed in the Wiki (HINT TO THE LIFERAY CREW)
thumbnail
Michael Saechang, modifié il y a 14 années.

RE: Maxmize and Minimize

Liferay Master Publications: 576 Date d'inscription: 19/11/07 Publications récentes
Lisa Simpson:
That's uber handy and should be placed in the Wiki (HINT TO THE LIFERAY CREW)


The Forums and Wiki are made up of the contributions from the community. It is up to the community to help one another and share this information. The Wiki can be edited by all users. Please feel free to update the wiki with the information that is shared here.

-mike
thumbnail
Michael Saechang, modifié il y a 14 années.

RE: Maxmize and Minimize

Liferay Master Publications: 576 Date d'inscription: 19/11/07 Publications récentes
kamalkant rajput:
Hi,
For guest we can do in portal-ext.properties while for users u need to customize portlet.vm file of your theme.
it can be done like this

#if ($permissionChecker.isCompanyAdmin($company_id))
$theme.iconOptions()
$theme.iconClose()
#end
so admin only can see all icon . and all other users will get only maximize and minimized icon.
Don't forget to stop and start the server after modifying vm files.

HTH
KamalKant


Hi KamalKant,

The information you shared could be really helpful for the community. If you have time could you add it to the Wiki so that it can benefit users in the future? Thanks!

Wiki-FAQ

-mike
thumbnail
kamalkant rajput, modifié il y a 14 années.

RE: Maxmize and Minimize

Expert Publications: 266 Date d'inscription: 10/04/08 Publications récentes
Hi Michael,
I have added this information in wiki FAQ section in the category of theme related small trick.
Thanks
thumbnail
Michael Saechang, modifié il y a 14 années.

RE: Maxmize and Minimize

Liferay Master Publications: 576 Date d'inscription: 19/11/07 Publications récentes
Hi Kamalkant,

Thanks! I'm sure it will help a lot of people.

-mike