Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Migrating a website from OpenCms to LIferay
Hello Folks,
I have to migrated my website from Opencms to Liferay framework as is.
When I was searching for different concept There I found a concept of JSP templates in OpenCms. I have a question for you guy's Is it possible to replicate the concept of jsp templates which is present in OpenCms into themes/layouts in liferay?
Here is my 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.
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?
Welcome!
Unfortunately the things in OpenCMS are done completely differently than Liferay.
Liferay, for example, does not support a JSP template, but they do allow templates created in FreeMarker (and Velocity, depending upon the version you target).
The tag libraries are completely different for JSP, so I doubt that any <cms: /> tag would be usable in Liferay as there is likely tight coupling between the tag libs themselves and OpenCMS.
I believe you can bring your site over to Liferay, but not without getting your hands dirty. Content, pages, etc will all require changes to bring over.
sarah john:I have to migrated my website from Opencms to Liferay framework as is.
You could migrate it and gain all that Liferay has to offer. I developed over OpenCms for many years until I was introduced to Liferay. At first I was a bit confused, but as I got to know it I started regaining the "wow" experience.
When I was searching for different concept There I found a concept of JSP templates in OpenCms. I have a question for you guy's Is it possible to replicate the concept of jsp templates which is present in OpenCms into themes/layouts in liferay?
I think you answered your own question: you'd use themes/layouts in Liferay and not jsp templates as you know them.
Here is my OpenCms templates use cms tags like <cms: />
There are many taglibs you can use in Liferay, but the <cms: /> one you reference is specific to OpenCms.
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?
If you haven't done so, I suggest you download the free community edition and learn to build a simple site. At first you'll wonder what you've got yourself into, but if you set up properly and learn following the provided tools and learning documents it shouldn't be too long before you start realizing the brilliance of Liferay. Enjoy !