使用 Liferay Portal 设置新网站 - 基本步骤?

发布于 2024-07-24 04:11:39 字数 385 浏览 3 评论 0 原文

我知道这不是一个具体的编程问题,但程序员经常必须做这项工作。

如何使用 Liferay 门户创建网站 - 文档对这个基本问题非常简单,并且全部适用于 4.4 版本。 我正在使用 5.2 版本,文档似乎不相关。

你知道基本步骤是什么吗? 到目前为止,我已经以 bruno 用户身份登录,可以查看 7cogs 网站并对其进行编辑。 但我现在需要创建我自己的网站(为我的公司)并能够开发 portlet 以添加到页面的各个部分。

此外,我注意到文档讨论了在 Eclipse 中进行工作。 如果我们的网站都是静态HTML,(我们想要liferay的原因主要是为了我们可以使用它的内容管理工具编辑内容项),那么是否需要Java dev,或者都是拖放和点击进行设置。 任何指导将不胜感激。

I know this is not specifically a programming question, but programmers will often have to do this work.

How do I create a website with Liferay portal - the docs are pretty light on this fundamental issue and are all for version 4.4. I am using version 5.2 and the docs don't seem to be relevant.

Do you know what the basic steps are. So far I have logged in as the bruno user and can see the 7cogs website and edit it. But I now need to create my own website (for my company) and be able to develop portlets to add to the parts of the page.

Further I notice that the docs talk about doing work in Eclipse. If our website is all static HTML, (the reason we want liferay is mainly so that we can edit content items using its content management tools), then will there be any need for Java dev, or will it all be drag n drop and clicking to get setup. Any guidance will be much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

愚人国度 2024-07-31 04:11:39

Liferay 可以用作简单的 CMS,无需太多 Java 知识:通过拖放和使用附带的富文本编辑器来创建、编辑和定位 Web 内容片段。
但要开始为您的公司使用 Liferay,有两个主要步骤:技术配置(数据库等)和外观定制。

技术部分

首先,你应该摆脱 7cogs 网站:这在 Liferay 的措辞中称为“钩子”。 为此,如果您使用 Tomcat 作为应用程序服务器,只需按所述删除 7cogs 目录 此处
现在,您可以为您的安装创建配置文件:它是一个简单的文本属性文件,名为 Portal-ext.properties,并放置在 Tomcat 安装的 webapps/ROOT/WEB-INF/classes 文件夹中。
该文件处理 Liferay 门户的大部分配置,例如:

  • 您公司的名称(
  • 如果您想在首次登录时显示使用条款页面)
  • 如果您希望任何人都能够在您的门户上创建帐户
  • 数据库所在位置 。

为此,portal-ext.properties 中的属性会覆盖位于 webapps/ROOT/WEB-INF/ 中 jar 文件 Portal-impl.jar 中的嵌入式 Portal.properties 文件中找到的默认属性 lib 目录。 只需将 jar 文件解压缩到临时文件夹中即可访问 Portal.properties 文件。

示例 Portal-ext.properties 文件:

company.default.web.id=yourcompany.com
terms.of.use.required=false
company.security.strangers=false
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root

完成后,您可以启动应用程序服务器。 作为默认管理员(名为 test,您可以在 Portal-ext.properties 文件中更改某些内容),您可以访问位于“dock”中的集中式 Web“控制中心”(标有“欢迎测试”的奇怪菜单)登录后任何页面的右上部分)。
我建议您阅读管理指南,很有用对于大多数行政任务。

“品牌”部分

Liferay 使用“主题”使用图像、CSS、Javascript (JQuery) 和模板语言 Velocity 自动装饰门户页面(徽标、导航、portlet 边框...)。 主题捆绑在 .war 文件中,就像标准 Web 应用程序一样,并通过控制中心或通过将文件拖放到服务器的部署目录中来动态部署。
Liferay 可以同时使用多个主题,例如每个社区(一组页面、用户和内容)使用一个主题。
之后可以使用“插件 SDK”。

维基论坛博客可能非常有用。

Liferay can be used as a simple CMS, without much Java knowledge : creating, editing and positioning of web content fragments are drag'n'drop and use of the included rich text editor.
But to start using Liferay for your company, there are two main steps : a technical configuration (database, etc.), and a look'n'feel customization.

The technical part

First of all, you should get rid of the 7cogs website : this is called a hook in the Liferay wording. To do that, if you are using Tomcat for the application server, just delete the 7cogs directory as stated here.
You can now create the configuration file for your installation : it's a simple text properties file, named portal-ext.properties and placed in the webapps/ROOT/WEB-INF/classes folder of your tomcat installation.
This file handles most of the configuration of the Liferay portal, for example :

  • the name of your company
  • if you want to display a terms of use page on first login
  • if you want anybody to be able to create an account on your portal
  • the database where the data will be stored

To do this, the properties in the portal-ext.properties override default properties found in a embedded portal.properties file located in the jar file portal-impl.jar, in the webapps/ROOT/WEB-INF/lib directory. Just unzip the jar file in a temporary folder to access the portal.properties file.

A sample portal-ext.properties file :

company.default.web.id=yourcompany.com
terms.of.use.required=false
company.security.strangers=false
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root

Once done, you can startup your application server. As the default admin (named test, something you can change in the portal-ext.properties file), you can access to the centralized web "control center", located in the "dock" (the strange menu labelled "welcome Test" in the upper right part of any page once logged in).
I would advise you to read the administration guide, useful for most administrative tasks.

The "branding" part

Liferay uses "Themes" to automatically decorate the portal pages (logo, navigation, portlet borders...) using images, CSS, Javascript (JQuery) and the templating language Velocity. The themes are bundled in a .war file, like a standard web application, and deployed on the fly either via the control center or by dropping the file in the deploy directory of the server.
Liferay can use several themes at the same time, one for each community (a group of pages, users and content) for example.
Creating your own theme can be done afterwards, using the "Plugins SDK".

The Wiki, forums and blogs can be very useful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文