将网站从OpenCms迁移到LIferay [英] Migrating a website from OpenCms to LIferay

查看:114
本文介绍了将网站从OpenCms迁移到LIferay的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前在OpenCms中有一个网站,需要将其原样迁移到Liferay框架.

A website is currently in OpenCms which needs to be migrated to Liferay framework as is.

OpenCms中有一个JSP模板的概念.是否可以将OpenCms中存在的jsp模板的概念复制到liferay中的主题/布局中?

There is a concept of JSP templates in OpenCms. Is it possible to replicate the concept of jsp templates which is present in OpenCms into themes/layouts in liferay?

OpenCms模板使用<cms: />

OpenCms templates use cms tags like <cms: />

我怎么可能将整个网站从OpenCms转移到Liferay?

How will it be possible for me to transfer this entire website from OpenCms into Liferay?

关于此,我在Google上搜索了很多,但是对此没有任何答案.

I have googled a lot regarding this but I did not get any answer for this.

我们将不胜感激.

以下是有关该项目的更多信息:

Here is some more info regarding the project:

该网站既有静态页面,也有动态页面.我需要一种在liferay中重新创建它们的方法,以便将来如果用户希望更改网站的数据内容,他们可以轻松地做到这一点.在动态页面的情况下,它们将更新其数据库.如果是静态页面,他们希望从liferay框架中更改数据(如果需要).

The website has static as well as dynamic pages. I need a way to recreate them in liferay so that in future if the users wish to change the data content of website they can do so easily. IN case of dynamic pages they will upate their database. IN case of static pages they would want to change data (if required) from liferay framework.

我应该如何创建模板并添加使用特定模板的页面,还应向页面添加内容?

How should I create templates and add pages that use a particular template and also add content to the pages?

我应该编写代码还是可以直接从liferay UI中执行操作?有没有一种快速的方法可以做到这一点?

SHould I write a code or can I do directly from the liferay UI ? Is there a quick way to do this?

我尝试使用FTL模板.但这会有用还是我应该从liferay创建模板?

I tried using ftl templates. But will it be useful or should I create templates from liferay?

推荐答案

我没有使用OpenCms的经验,但是Liferay的CMS具有结构化的文章,这些文章可以通过模板呈现,例如freemarker或速度模板.根据我对您的问题和评论的了解,这可能是您要查找的内容:

I have no experience with OpenCms, but Liferay's CMS has structured articles that get rendered by templates, e.g. freemarker or velocity templates. From what I read into your question and comment, this might be what you're looking for:

在OpenCms中标识内容文章的元素,在Liferay中创建适当的结构,然后使用这些结构将文章导入结构化文章中.此外,创建模板以根据需要从导入的文章中呈现HTML输出.

Identify the elements of your content articles in OpenCms, create appropriate structures in Liferay and import the articles into structured articles, using those structures. Further, create templates that render the HTML output as you need it from the imported articles.

您可能还想创建页面(Liferay API中的布局)并用相应的内容填充它们. Liferay的几乎所有功能都可以通过API使用-并且很可能通过此API导入内容(实际上,这是一个常见用例).不过,我无法为您提供阅读OpenCms内容的最佳方法.

You'll probably also want to create pages (layouts in the Liferay API) and populate them with the corresponding content. Almost all of Liferay's functionality is available through an API - and it's well possible to import content through this API (in fact, that's a common usecase). I can't help you with the best way to read OpenCms content though.

为了适应Liferay CMS API,我长期推荐了sevencogs演示.不幸的是,这不再维护了,但是有一个

For getting used to the Liferay CMS API I was recommending the sevencogs demo for a long time. Unfortunately this is no longer maintained, but there's a blog article summarizing many of the calls and API usages that you might want to make use of.

这篇关于将网站从OpenCms迁移到LIferay的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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