Liferay : Page template inside a portlet war - liferay

Can we include a new layout template inside a portlet war? And I want that template to be used for a particular page.
Regards
Vishal G

This would exists in lar import and export only and not pre packaged win war.

Related

Not able to find export content in Liferay 6.2

I have created a web content using default test user in Liferay 6.2 GA2. I want to export that web content to the LAR file. When I go to Admin -> Content where all the web contents are listed, I am not able to see any export option on this page.
I do see export option in web content display portlet. Can anybody throw some light on what I am doing wrong? Thanks in advance!

Where should I put my java source and where to configure liferay Portlet

I want to write a simple java source code for a liferay portlet. While I am writing source code for a liferay portlet do I also need to any changes in portlet.xml, liferay-portlet.xml, liferay.display.xml and web.xml
I dont see any information regarding this anywhere.
Any help and suggestions would be much appreciated.
You have to define the portlet class in the portlet.xml file, it is a fully qualified class name like come.help.me.portlet.HelpPortlet
when the portlet will be executed (either by putting on the page or when the page is accessed with the portlet or when any action done on the portlet), this portlet class' methods will be called.
If you are using the liferay-sdk then your portlet class should be in portlet-folder/docroot/WEB-INF/src/eu/ibacz/example/NewPortlet.java of your portlet.
you create a liferay mvc portlet .Just create a liferay project-> liferay portlet and write your java code inside portlet.It will automatically change in portlet.xml, liferay-portlet.xml, liferay.display.xml and web.xml

Developing a Portlet with Multiple Actions in Liferay

There is a guide on the Liferay site Developing a Portlet with Multiple Actions
Do you know where I should place the code of the MyGreetingPortlet class?
What should be the file name and in which folder I should place it?
Check out the Anatomy of a portlet in the same tutorial.

How to view our portlet in Liferay

I created a project in Eclipse and generated .war file of the same. I have uploaded the .war file in Liferay5.2.3 with Admin credentials using Upload File tab. Now i want to view the content of my .war file as a portlet in Liferay. What should i do..?
Once a new portlet is created (developed) and described in the xml file, it will automatically be seen in the drop down list which you have on the top right side of the liferay(once you login to liferay with admin credentials).
Select Add/undefined/'your portlet name'/add.

Liferay : custom Web content Display List Portlet

I'm beginner in Liferay, and I need to customize the portlet webcontent display list.
I added a portlet in my page Home, and I managed to see the recent news that I created.
The news is displayed in a table (title, author and date display).
I want to display the news like this:
- The date of the news (above the title of the news)
- The title of the news (which is a link to the news)
I tried to create a structure, but I do not see commits its work?
Thank you to enlighten me?
PS: sorry for this English !!
Liferay is available in source - did you look at the implementation of the webcontent list portlet? You can either create a jsp hook for that portlet or just reimplement a similar one based on what you find in there...
As you say you'd like to customize Webcontent display list I assume you don't want its default behaviour. Once you know what to change in this portlet, read about jsp hooks, create a hook with the jsp changes you'd like (if it's limited to jsp changes) and deploy it.
Liferay's development documentation should have the information that you need, otherwise continue in the wiki on liferay.com
Edit: Also, you might want to look at AssetPublisher - maybe this provides a few more options for formatting your output.
Generally Liferay web content in journalarticle table. I have referred Liferay 6.0 Version.
Now, for showing liferay custom portlet view, you should use Liferay Portlet Creation and Liferay Service Builder.
Here are two useful article on those -
1> Liferay MVC Portlet
2> Liferay Service Builder
Now make the service for journalarticle table and use those in your portlet.
Some useful fields of journalarticle table for your reference are - title, createDate etc.

Resources