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
Publishing a web page without Portlet container
Hi,
I'm working on a Liferay POC project for a large telecoms firm. It's going really well and we're just at the final stages of ticking the boxes.
I've come up against one problem though. I'm sure it's something simple...
I was given a set of web pages by a web designer ( he'd produced them in dreamweaver ) which I managed to import into
Liferay CMS basically by cut/paste of the HTML into the Web Content editor, then uploading the images into the Image Gallery
and amending the image links to point to the URLs of the gallery. Finally, I've added the CSS to a basic theme.
So it's looking good - pretty much the same as the original. However, I can only display the page within a portlet, and the
requirement is to have the web page published "as is", ie. without any hint of it being Liferay underneath - no portlet border, no
liferay login, no "add page" button etc..etc...
I've tried looking through the forums and the closest I could see was the publish options under Control Panel->Communities.
But they just appeared to allow publishing of Portlets, rather than the content within the portlet. I tried changing the type
from "Portlet" to "Web Content" within publishing dialog, but it just seemed to publish a blank page.
Go easy on me - I'm a Liferay noob and first time poster!
My setup...
Liferay 5.2 standalone integrated with existing Apache 2.0 / Tomcat 6 / MySQL, running on Centos 5 VM ( reports as RedHat EL 5 ).
Cheers,
Chris
I'm working on a Liferay POC project for a large telecoms firm. It's going really well and we're just at the final stages of ticking the boxes.
I've come up against one problem though. I'm sure it's something simple...
I was given a set of web pages by a web designer ( he'd produced them in dreamweaver ) which I managed to import into
Liferay CMS basically by cut/paste of the HTML into the Web Content editor, then uploading the images into the Image Gallery
and amending the image links to point to the URLs of the gallery. Finally, I've added the CSS to a basic theme.
So it's looking good - pretty much the same as the original. However, I can only display the page within a portlet, and the
requirement is to have the web page published "as is", ie. without any hint of it being Liferay underneath - no portlet border, no
liferay login, no "add page" button etc..etc...
I've tried looking through the forums and the closest I could see was the publish options under Control Panel->Communities.
But they just appeared to allow publishing of Portlets, rather than the content within the portlet. I tried changing the type
from "Portlet" to "Web Content" within publishing dialog, but it just seemed to publish a blank page.
Go easy on me - I'm a Liferay noob and first time poster!
My setup...
Liferay 5.2 standalone integrated with existing Apache 2.0 / Tomcat 6 / MySQL, running on Centos 5 VM ( reports as RedHat EL 5 ).
Cheers,
Chris
Chris, looks like what you want to do is host a set of pages on a webserver independent of Liferay - which bundle did you download?
Chances are you're using the Tomcat bundle - go into the installation directory, and look for a directory called "webapps"
Inside there, you can create a subdirectory called whatever you want and put your pages there; the pages will then be accessible by http://___:__/*whatever sub dir you created*/
Chances are you're using the Tomcat bundle - go into the installation directory, and look for a directory called "webapps"
Inside there, you can create a subdirectory called whatever you want and put your pages there; the pages will then be accessible by http://___:__/*whatever sub dir you created*/
Hi - thanks for your reply.
Yes, I've already used this "webapp" solution but unfortunately that's effectively circumventing the Liferay CMS completely as far as I can see
For this Proof Of Concept (POC) I must demonstrate that web pages can be produced/edited/maintained within Liferay and then published from there, outside of the portlet container ( in fact, without any signs of it being Liferay underneath at all, although I'm
happy for Liferay's apache/tomcat to still be the host webserver ).
From the "blurb" there are major customers who use Liferay CMS to produce their websites, and looking at
the screenshots they certainly don't seem to be within portlets - there must be a way!
Cheers,
Chris
ps. recap on setup - Liferay 5.2.3 standalone, Apache2 / Tomcat 6 / MySQL / Java6 on Redhat EL5
Yes, I've already used this "webapp" solution but unfortunately that's effectively circumventing the Liferay CMS completely as far as I can see
For this Proof Of Concept (POC) I must demonstrate that web pages can be produced/edited/maintained within Liferay and then published from there, outside of the portlet container ( in fact, without any signs of it being Liferay underneath at all, although I'm
happy for Liferay's apache/tomcat to still be the host webserver ).
From the "blurb" there are major customers who use Liferay CMS to produce their websites, and looking at
the screenshots they certainly don't seem to be within portlets - there must be a way!
Cheers,
Chris
ps. recap on setup - Liferay 5.2.3 standalone, Apache2 / Tomcat 6 / MySQL / Java6 on Redhat EL5
You can customize .vm templates (to remove unnecessary components), remove portlet borders, edit css and web page will look clean. At least for guest users.
Thanks - you've confirmed a route I was about half way down!
I've created a new theme and started removing some lines from portal_normal.vm. I'll set the look-and-feel
to this theme. Looks good so far.
My project was about to switch to Silverstripe if I couldn't get this working!
Cheers,
Chris
I've created a new theme and started removing some lines from portal_normal.vm. I'll set the look-and-feel
to this theme. Looks good so far.
My project was about to switch to Silverstripe if I couldn't get this working!
Cheers,
Chris