Today we will open Web Content Edit Page from our custom portlet.We already know how to write struts action hook here we use the same approach. We create a simple portlet and provide a link on click of that link we open the web content in control panel.
This blog is specially create for learning step by step liferay.We can learn liferay,hooks,ext,portlet,layout ,services and themes with eclipse ide.
Showing posts with label Web Content. Show all posts
Showing posts with label Web Content. Show all posts
Friday, June 29, 2018
Open Web Content in Control Panel from your Custom Portlet
Today we will open Web Content Edit Page from our custom portlet.We already know how to write struts action hook here we use the same approach. We create a simple portlet and provide a link on click of that link we open the web content in control panel.
Labels:
UseFul Solutions,
Web Content
Thursday, September 21, 2017
Get Web Content/Journal Article Fields Data Programmatically using x:parse tag
We already know when we create web content using Structues and Templates then Liferay Stores the data in xml format in content column of journalArticle table .If we want this data in our java code we can use SAX Parser .
Today we will discuss how to get this data in our jsp by using <x:parse> tag.
Labels:
Web Content
Sunday, September 10, 2017
How to import template from theme in Liferay?
We already know how to create web content using structure and template but Sometimes we create template in our theme and then import this in our web content template . So today we will discuss how to import template from theme.
So lets start this step by step:-
Labels:
Web Content
Saturday, June 17, 2017
Model Listener in Liferay 6.2
Today we will see how to create Model Listener in Liferay 6.2 .I write Listener for Web Content ie Journal Article .So when a Journal Article is created we will do some processing.
so lets start this Step by Step:-
Labels:
Hook,
Web Content
Saturday, May 20, 2017
Fetch Latest Version Journal Article or Web Content in Liferay
When you fetch JournalAricle on the basis of Structure it will give you all the articles and not the latest articles. So in this blog we will see how to fetch latest version of web content/ Journal Article in Liferay.
Labels:
Web Content
Monday, September 26, 2016
Use of Structure in Custom Portlet
Today we will discuss how to use Structure in Custom Portlet. The benefit of this approach is we easily create structure by just drag and drop and simply use this structure in our form. Before reading this blog you must know how to create Structure in Liferay.So lets start this step by step:-
Labels:
Web Content
Thursday, September 22, 2016
Embedding a Web Content/Journal Article in a Portlet
We already knew how to embed a portlet in web content but today we try to embed a web content in our custom portlet.Before reading this blog you must know how to Create a web content in liferay.
So lets start this step by step:-
Labels:
Web Content
Tuesday, March 29, 2016
Carousel in Liferay using Web Content
Today we will discuss how to create carousel in Liferay using web content.Here i am using document and media portlet for storing images that can be use in carousel.So before reading this blog you must know how to store documents in document and media portlet and how to create a basic web content in Liferay.
So lets start this step by step:-
Labels:
aui,
Document and Media,
Web Content
Monday, September 7, 2015
Creating Tabs Using Web-Content /Journal Article in Liferay
In the previous tutorial we see how to embed a Asset Publisher Portlet in Liferay. Today we use the same concept and create a web content which contain 2 tabs and in each tabs we embedded a Asset Publisher portlet. Before reading this blog you must know how to create Structure and Template for Web Content and how to embedded a portlet in web content.
Labels:
Web Content
Saturday, September 5, 2015
Embedding a Portlet in Web Content/Journal Article
We already know how to create a Web Content in Liferay. Today we will embedded a portlet in web content. We know that there are two types of portlet:-
1)Instanceable Portlet
Instanceable portlet are those portlet that can be added more than one time on a single page. Ex- Asset Publisher.
2)Non - Instanceable Portlet
Non - Instanceable portlet are those that can be added only single time on a page. Ex- Loan Calculator.
Labels:
Web Content
Saturday, August 29, 2015
Get Web Content/Journal Article Fields Data Programmatically using SAX Parser
We already see in my previous blog on Structues and Tempelates that Liferay Stores Structues in xml format. So if you create a Web Content using Structures and Template and want to get the value of fields programmatically , than you can use SAXReaderUtil Class of Liferay. This class is used to parse xml content.
Ex- I already Created a Structure MOBILE_STRUCTURE which contain 5 fields Brand,Model,Description,Camera and Price.Now i create web contents Sony Xperia C using this structures .This data is save in journalarticle table as:-
Labels:
Web Content
Fetch/Retrieve Web Content (By Providing Structures and Categories) Programmaticlly in Liferay
Today we will discuss how to Retrieve/Fetch a web content by providing categories and structures in Liferay. Basically we filter Web contents as our Asset Publisher portlet do in Liferay.Before reading this blog you must know how to Create Categories, Structures and Templates. For this you may refer my previous blogs on Web Contents.
Labels:
Web Content
Tuesday, August 25, 2015
Structure and Templates for Web Content in Liferay
Today we will discuss about Structure and Templates for Web Content in Liferay . Lets consider a scenario where we have to create 100 web contents for Mobiles which are almost similar except the names, camera ie small differences. So 100 times you have to write the similar HTML. What if you just create a Template one time and use it again and again.This is the main task of structure and Templates in Liferay.
Labels:
Web Content
Monday, August 24, 2015
Categorization in Web Content
So lets start step by step:-
Labels:
Web Content
Saturday, August 22, 2015
Basic Web Content in Liferay
Today we will discuss about Basic Web Content in Liferay. But before that we must know what is Web Content.
A web content is a simple static content that can be displayed on a web page.
Liferay provide a simple way to achieve this . Here we don't need to create any Portlet Just simply use WYSIWUG HTML editor to create a web content and add to our page.
Labels:
Web Content
Subscribe to:
Posts (Atom)