07 March, 2013

Beanshell

Hello Friends,

Do you know the use of Beanshell script which is coming up with Liferay control panel ?
If you go to Liferay control panel >> Server Administration section,
there is one tab available to run the bean shell script directly . See below screen shot

Solr integration with Liferay 6.1

If you want to setup solr with liferay and want to use solr as a search engine,
Guys you can follow below steps:

Its very quick and simple, Just try ....

Embed search in theme and redirect

As we know that we can simply embed search in theme which is mentioned in  http://www.liferaysolution.com/2011/12/embed-search-and-web-content-search.html

But If you want to embed search in theme and want to redirect on specific fix community page then you may need some modification and can use below code in you theme .vm file :

01 February, 2013

Implementing a Job Application Form

 By Phillipa Thomson

If you have ever been asked for a way to collect data from the user of your Liferay Portal, you almost always have to start a new software development project and as a result, it is a costly exercise. Such costs rise sharply when the online facility has to have multiple fields, multiple pages, file attachments, complex validation rules and dependencies (show/hide group of fields, depending on user selection).

29 January, 2013

How actionurl and renderurl works ?

If you are beginner and not much familiar with the action URL and render URL, Here is the information.

Liferay portlet will have only one portlet controller class which you might have already configured in portlet.xml. Based on your render url or action url , you process or render action will be triggered .

24 January, 2013

Liferay Consumer Survey

Hi All,
As apart of  LIUG members here we have a chance for CE user to present give feedback to Liferay
Please fill this survey and ask other LIUG members to fill this survey ASAP

https://docs.google.com/a/liferay.com/spreadsheet/viewform?formkey=dDBuUnMwdU9LbnBPZFFjOFF6Y1BwcHc6MQ

21 January, 2013

User service in webcontent template

If you want to get list out user data in liferay web content template, use just below velocity template code in web content template and get work out :

 ## Don't forget to set journal.template.velocity.restricted.variables=
 ## in portal-ext.properties; in other words, set it to nothing to unset the restriction.
 ##

#set ($userLocalService= $serviceLocator.findService("com.liferay.portal.service.UserLocalService"))
#set ($userId = $getterUtil.getLong($request.remote-user))
#set($user = $userLocalService.getUserById($userId))

02 January, 2013

Liferay Plugin-SDK Details

Plugin-SDK comes into picture after Liferay 4.X version.
Liferay introduced very nice idea for hot deployment of plugins. Later versions added more features and new types in plugins.

Currently there are six types of plugins:
  • Portlets
  • Themes
  • Layout Templates
  • Web Modules
  • Hooks
  • EXT

01 January, 2013

Liferay MVC Portlet

During the render phase of the portlet lifecycle, the Liferay MVC Portlet also looks for a specific render parameter named jspPage.

The jspPage value should be a valid jsp page, including the path. ex. jspPage = “/html/showEditPublisher.jsp”
If jspPage is defined within the renderRequest, then the portlet will dispatch to the jspPage directly.

This means that if you're creating portlet whose sole purpose is to display data, you don't necessarily need to ever create a portlet class, the included com.liferay.util.bridges.mvc.MVCPortlet class provides all the portlet functionality you need and you're free to spend your time developing the view layer of your application.

Portlet Modes

If you know about portlet lifecycle then you would be aware about the portlet modes as well.
Here I have tried to list out the important modes which can be use by portlet.
Each portlet has a current mode, which indicates the function the portlet is performing.
All Java Standards compliant portals must support the
  • View
  • Edit  
  • Help.
Portlet modes are defined in the portlet.xml file.
Custom modes may be created by developers.

Portlet Characteristics

Portlets characteristics that make them different from Servlets
    • Portlet Modes
    • Window States
    • Portlet Preferences
    • Standard Inter Portlet Communication (IPC)
    • Public render parameters
    • Events
    • Resource Serving
    • AJAX support
    • Binary data support
    • Portlet Filters

Popular Posts

Featured Post

Liferay 7.3 compatibility matrix

Compatibility Matrix Liferay's general policy is to test Liferay Portal CE against newer major releases of operating systems, open s...