Migrating a website from OpenCms to LIferay

橙三吉。 提交于 2019-12-12 01:44:18

问题


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

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 templates use cms tags like <cms: />

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

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

Help will be appreciated.

EDIT:

Here is some more info regarding the project:

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?

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

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


回答1:


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:

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.

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.

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.



来源:https://stackoverflow.com/questions/22450268/migrating-a-website-from-opencms-to-liferay

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