Monday, 29 July 2013

WEB CONTENT in liferay

WEB CONTENT
 Web Content Management portlet is a core Liferay portlet. It is accessible through the control panel and offers a full suite of tools to manage structured and unstructured content to be published in website.
       Web Content can be any content you would like to add to a site, such as articles, a FAQ, or a news item.

-- How to create ‘Web Content’ portlet ?
1. Click ‘Add’ > WebContent Display
2. Click on ‘Add WebContent’ (bottom left of the portlet)
3. We have to create webcontent name, structure and template
4. Provide the webcontent name
4.1) Select ‘choose’ option from structure > add structure (need to provide the structure name and description)
4.2) Click on ‘Add row’ to create rows
Give variable name and click on save.
4.3) Select our own structure and click on it (the structure will be loaded to webcontent)




5. Select template and click on it
5.1) Click on ‘Add Template’, give name, description and select our structure (which is created in step-4)
5.2) Click on ‘Launch Editor’. Remove the predefined content and give
                 $<variable name>.getdata()
                 $title.data
                 $image.data
                 <img src = $image.data>        

Note: To get the structure i.e., o/p, place the HTML code in the editor

No comments:

Post a Comment