There are a lot of places where liferay can tuned and tweaked . I shall discus some of them.
Most of these tweaks can be done by looking at Portal Properties 6.0.5
1. How do you completely hide portlets with borders that users don’t have permission to see?
To change this feature for all the portlets in the portal, set the following parameter in portal.properties to "false":
layout.show.portlet.access.denied=false
To change this feature on a per portlet level, set the "show-portlet-access-denied" parameter in liferay-portlet.xml to "false" for a particular portlet. The setting in liferay-portlet.xml will override the setting in portal.properties.
2. How do you completely hide portlets with borders that are inactive?
To change this feature for all the portlets in the portal, set the following parameter in portal.properties to "false":
layout.show.portlet.inactive=false
To change this feature on a per portlet level, set the "show-portlet-inactive" parameter in liferay-portlet.xml to "false" for a particular portlet. The setting in liferay-portlet.xml will override the setting in portal.properties.
3. How do you display/store images in Liferay?
There are 2 ways to display images in Liferay:
1) There is a portlet called "Image Gallery" that can be used to upload images to the portal. These images can then be accessed in your HTML in the following way:
Obviously, this may not be the optimal way to access images because you would have to know each image's ID in order to display it. However, this is probably the quickest and least intrusive way to do it.
2) Images can be put into the theme of your page. Each theme has the same directory structure, and one of those directories is the "images" directory. Within the images directory, we've further divided the image files into more granular directories (e.g., blogs, document_library, message_boards, etc.). You can create your own directory and place any image files that you may need here. You would then access the files in the following way:
4. What are some suggestions on improving start up time under a VM?
It may take several (five-plus) minutes to reboot Liferay. We are running 4.1 Liferay Enterprise in a virtual web server. I've removed unused portlets to try to cut down the booting speed, but that doesn't help much.
What are other ways available to speed up? Of course, a physical server rather than a virtual server will help. What else?
Adding more memory to the JVM via the argument of: -Xmx1024m will help.
Depending on what you are using Liferay for, you can remove uneeded webapps under /webapps (for Tomcat).
Another thing that will help is to set:
index.on.startup=false
in portal-ext.properties. This property tells Lucene not to reindex content that is part of the portal.
5. How can I give all my users the ability to Maxmize and Minimize portlets abilities only?
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...
Cheers..!!
Gaurav Rastogi
No comments:
Post a Comment