Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add html content to a page in Liferay

Tags:

java

liferay

Im new to Liferay . I have downloaded the Liferay Tomcat bundle v5.2.3 Community Edition from the Liferay website. I am able to run it successfully. I am now trying to create an intranet portal for our company using Liferay . I created an Organization in Liferay and added some pages and child pages to it. How to add content to a page ?. I mean, i would like to add some text and images etc to the home page and other pages on the portal. I tried the Web Content Display portlet, but it always appears minimized and i have to maximise it by clicking on the maximize button. And also the option to minimize/maximize the portlet is available only when im logged in. Is there any other way to add HTML content to a page, to make it look like a normal html page which anybody can view when they visit the portal ?

Thank You.

like image 548
Tim Avatar asked Feb 27 '23 22:02

Tim


1 Answers

Web Content Display is indeed the easiest choice. You probably just made a mistake when using it.

  • Add the web content display portet
  • Click on "add web content" icon at the bottom-left of the portlet
  • You get a rich text editor, but you can also toggle to HTML view
  • When you're done click on "Save and approve".

Liferay CMS is built on the concept of template, structure and article.

  • structure: the element to be rendered, e.g. one text area + one image
  • template: the rendering of the structure, e.g. image in top-left + text around the image
  • article: the actual data that corresponds to a structure

But you should be able to edit your first Web Content Display without having an structure nor template. But I suggest you to have a look at them once your are used to the portal.

like image 125
ewernli Avatar answered Mar 08 '23 15:03

ewernli