Showing posts with label liferay. Show all posts
Showing posts with label liferay. Show all posts

Sunday, December 01, 2013

Uninstall liferay base portlets

  
     To uninstall(Remove) the liferay base portlets we need to add <include>false</include> to the portlet definition in liferay-portlet.xml file and remove respective display in liferay-display.xml.


    By doing the above we may have some issues with portlets which are using the resources of the removed one.So careful  at the time of removing .


  The best idle approach is : 

         Just clear out the ROOT/WEB-INF/liferay-display.xml file. Taking the portlets out of here will keep them all in Liferay but remove them from a user's ability to place them on a page. It's probably the least impacting way to do this.

Hooks

        Hooks are the most powerful plugin provided by liferay which can be used for customizing Liferay’s core features.
        We can definitely use EXT plugin which can be achieved by Hook plugin but for best practices, we should use hook plugin as it is hot-deployable and also easy for upgradation/migration process.


 Before you start actual development, you should know whether to use Hook or EXT.

Friday, November 29, 2013

Liferay dockbar load issue

    

  If you find that the dockbar is not loading and its keep on spinning it a javascripts minifiers issue.To resolve this we can set the property in portal-ext.properties.


com.liferay.portal.servlet.filters.minifier.MinifierFilter=false

In the browser you can check by setting the &js_fast_load=0&css_fast_load=0&strip=0 in the URL parameter 
 

Liferay performance tuning


        Below are the high level steps to tune the liferay server :  

Step 1 : Adjust the server's thread pool and JDBC connection pool

  1. Unfortunately, there's no magic number for this: it must be tuned based on usage. 
  2. By default, Liferay is configured for a maximum of 100 database connections. 
  3. For Tomcat, a good number is between 200 and 400 threads in the thread pool

Liferay Installation

10 Simple steps to install and start liferay server from eclipse


  1. Download Liferay 6.1 CE bundled with tomcat and appropriate  plug-in SDK.
  2. Open EclipseIDE with Liferay installed.
  3. Go to preferences >     Liferay > Installed SDK's.
  4. Add new liferay plug-in SDK , specify the path of liferay SDK that matches your     liferay version.
  5. You could see the installed liferay plug-in details in Installed SDK table.
  6. Now, we need to setup Runtime Environment for that, goto
        preferences > Servers > Runtime Environments
  1. Add new Liferay runtime and find liferay tomcat(associated with current version) under Liferay Inc, category.
  2. Browse and select the location of Tomcat configured with liferay (liferay-portal-tomcat),save runtime preferences.
  3. Define a new server and specify the type of server as Liferay vX.X(Tomcat v6/v7) which is under liferay,Inc category.
  4. Start the Liferay server configured with tomcat, right click and select ‘Open Liferay Portal Home’ you could see a Basic Configuration Page of Liferay.

Liferay Mysql Configuration

Steps to Configure mysql DB to liferay 

  • Goto mysql server and cerate a empty database
  • Now goto <liferay server>/
  • Create a file with name portal-ext.properties
  • Add the below lines to the file.
  • # MySQljdbc.default.driverClassName=com.mysql.jdbc.Driver

    jdbc.default.url=jdbc:mysql://localhost/<DB Name >?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false

    jdbc.default.username=
jdbc.default.password=
  • Start the server and you can see that liferay is configured to the mysql DB 

Tha 𝗔𝗣𝗜 Design 𝗛𝗮𝗻𝗱𝗯𝗼𝗼𝗸

 Here is the 𝟮𝟬𝟮𝟲 𝗔𝗣𝗜 𝗛𝗮𝗻𝗱𝗯𝗼𝗼𝗸 broken down by architecture: 𝟭. 𝗧𝗵𝗲 "𝗥𝗲𝗾𝘂𝗲𝘀𝘁-𝗥𝗲𝘀𝗽𝗼𝗻𝘀𝗲" 𝗧𝗿𝗶𝗼: ...