Liferay service builder 5.2 - liferay

Can any body please suggest me some reference material from where I can study about Liferay Service Builder 5.2.

I remember that the most helpful thing to do was studying the DTD definition of service.xml
Service.xml is metadata definition for service builder and the DTD is very well documented.
Otherwise you can checkout the sample service builder plugin and play with it.

Check this ...
http://www.liferay.com/community/wiki/-/wiki/Main/Extend+Liferay+Tables

Liferay in Action: http://serwis.kampus.uj.edu.pl/cds/books/Liferay.in.Action.pdf
Liferay Cookbook: https://de.scribd.com/document/258113207/Life-Ray-Cookbook

Related

Liferay: Can we create deployable site template?

I'm quite new in liferay and this must have been a very basic question.
Can we make site templates deployable as standalone component like themes? If yes how can we do this? Any help or content explains how to do this will be great.
Thanks
You can export and import site templates - they'll not be deployed like themes, but you can carry them from one portal to another. Check the cogs-icon in the top-right of the Site Template configuration screen in Control-Panel and you'll find the Export/Import Actions. The individual SiteTemplate's Action button also has an Export option available.
Another option is to get familiar with Liferay's API (learn ServiceBuilder for understanding the concepts) and examine the sourcecode. A good starting point is the ancient 7cogs sample code (not all will compile as-is, this article is for an older version, but the principles will help you to understand). Also note that the article links a second follow-up article. Everything in Liferay is done through the API and you can literally automate everything - you'll "just" have to find the proper API and use it.
Site templates can be deployed in a plugin via the use of Liferay's Resources Importer.
See: https://dev.liferay.com/develop/learning-paths/themes/-/knowledge_base/6-2/importing-resources-for-your-theme for more information.
You can probably find some some examples here: https://www.liferay.com/marketplace/-/mp/category/15828894

How to create a better UI in liferay

I am working on liferay 6.2, I created a site but this basic liferay UI is not looking good.
Can anyone tell be how to create a better UI in liferay.
I want to create a more appealing user interface with liferay.
You can create your own custom theme.You can go through liferay theme creation documents.
Also you can get many ready-made themes from liferay marketplace.
If you are using Liferay SDK, Eclipse or Liferay Developer Studio. You can create your own theme and here is the guideline:
https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-a-the-4

Liferay custom structure ID

Setting in liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-ext.properties:
journal.structure.force.autogenerate.id=false
journal.template.force.autogenerate.id=false
used to enable YOU editing structure and template id.
This DOES NOT work anymore in liferay 6.2
Using liferay 5.x (and I've read on the web about liferay 6.1) was fine.
Does anybody know how to do this again?
It seems that there is a fix implemented for this in Liferay 6.2 EE. I am experiencing the same problem on Liferay 6.2 CE though. Hopefully I will be able to solve it.
The fix is discussed in the following Liferay Issue: https://issues.liferay.com/browse/LPS-48441. You can follow it as a possible direction to get the solution.
Regards.
EDIT: If you want to "avoid the patching" of this issue, you could use the Scripting Console from the Control Panel and change the structures or templates ids running a script. You can get it from my response in the Liferay thread in here:
Structures and Templates Ids autogeneration not working - Liferay 6.2 CE GA2
Structure-Template of Journal Article got changes in Liferay 6.2 version.
dynamic.data.mapping.structure.force.autogenerate.id=false
dynamic.data.mapping.template.force.autogenerate.key=true
are the new properties for having structure-id and template-id as editable.

Find Source for Portlet

To learn more how to implement portlets in Liferay, I want to view the src of existing portlets, e.g. the "Documents and Media" Portlet. Where can I find this src code? I downloaded the src of Liferay but I cant find the relevant files.
The way to learn more about building portlets in Liferay is probably to check out the Liferay Plugins repository, rather than Liferay Portal source.
Some Liferay portlets come OOTB in Liferay Portal itself -- that's what #ArtemKhojoyan is mentioning above. However, as these portlets are pretty thoroughly integrated with the portal itself, they may not be super helpful in figuring out how to make a plugin to deploy on Liferay.
To check out some more standalone portlets, download the Plugins repo -- either by cloning the source on github with https://github.com/liferay/liferay-plugins.git, or downloading a plugins SDK at http://www.liferay.com/downloads/liferay-portal/additional-files -- and open up the portlets/ folder -- that's probably going to be more helpful in showing you hot-deployable portlets that will be more similar to something you'd make yourself.
For Liferay 6.2.0:
Java: \liferay-portal-src-6.2.0-ce-ga1\portal-impl\src
JSP: \liferay-portal-src-6.2.0-ce-ga1\portal-web\docroot\html\portlet
Your required case:
Java: \liferay-portal-src-6.2.0-ce-ga1\portal-impl\src\com\liferay\portlet\documentlibrary
JSP: \liferay-portal-src-6.2.0-ce-ga1\portal-web\docroot\html\portlet\document_library

Liferay Export/Import LAR: automated

is there a way to create/export a LAR from liferay server A and import this in liferay server B with a script or even a maven/hudson plugin? I'm using Liferay 6.0.5.
thanks,
Stijn
The best way to achieve what you want is to make use of scheduling for remote publication. You can find this option in the manage pages portlet.
Keep in mind that you can deploy servlets in Liferay. I would package the war file as a "web" plugin as described in this article on Nabble in order to access the Liferay APIs. From here you could perform whatever units of work you want, of which exporting a lar file. Call the servlet URL with the appropriate parameters and you're g2g.
You may refer to following Liferay resources to get details of Liferay API:
http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutLocalServiceUtil.html
https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/staging/StagingImpl.java

Resources