Add html content to a page in Liferay

梦想的初衷 提交于 2019-12-03 16:56:20

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.

Once you have added the web content portlet and then added content, you need to configure the layout template you want. Choose the one column layout to let the portlet take up the whole screen.

I think you are asking how to create a new page of type web content.

  1. note the content_id of your web content
  2. make sure your web content is approved, published, and viewable (permissions)
  3. create your page, entering your content_id into the Web Content ID field

I think when you do it this way, you forsake some of the portlet functionality that Liferay brings you.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!