将HTML内容添加到Liferay中的页面 [英] Add html content to a page in Liferay

查看:90
本文介绍了将HTML内容添加到Liferay中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Liferay的新手.我已经从Liferay网站下载了Liferay Tomcat软件包v5.2.3社区版.我能够成功运行它. 我现在正在尝试使用Liferay为我们的公司创建一个Intranet门户.我在Liferay中创建了一个组织,并向其中添加了一些页面和子页面. 如何向页面添加内容?我的意思是,我想在门户网站的主页和其他页面上添加一些文本和图像等.我尝试了Web Content Display portlet,但是它始终显示为最小化,因此我必须通过单击最大化按钮来使其最大化.而且,仅当im登录后,最小化/最大化portlet的选项才可用. 还有其他方法可以将HTML内容添加到页面上,以使其看起来像普通的html页面,任何人在访问门户网站时都可以查看吗?

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 ?

谢谢.

推荐答案

Web Content Display确实是最简单的选择.使用它时,您可能只是犯了一个错误.

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

  • 添加Web内容显示portet
  • 单击Portlet左下角的添加Web内容"图标
  • 您将获得一个RTF编辑器,但您也可以切换到HTML视图
  • 完成后,点击保存并批准".

Liferay CMS建立在模板,结构和文章的概念上.

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

  • 结构:要渲染的元素,例如一个文本区域+一幅图像
  • template:结构的呈现,例如左上角的图片+图片周围的文字
  • 文章:与结构相对应的实际数据

但是您应该能够在没有结构或模板的情况下编辑第一个Web Content Display.但是我建议您一旦习惯了门户网站,就可以看看它们.

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.

这篇关于将HTML内容添加到Liferay中的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆