Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
lucky singh
Store html page
1. November 2012 03:00
Antwort

lucky singh

Rang: Junior Member

Nachrichten: 26

Eintrittsdatum: 30. Juli 2012

Neue Beiträge

How to store html page in liferay and get a href link to the html page. I have some old html pages and I dont want to recreate as theme css are different.Please guide.
Hitoshi Ozawa
RE: Store html page
1. November 2012 05:49
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7954

Eintrittsdatum: 23. März 2010

Neue Beiträge

Have you tried pasting your html code to Web Content portlet in source mode?
lucky singh
RE: Store html page
2. November 2012 00:31
Antwort

lucky singh

Rang: Junior Member

Nachrichten: 26

Eintrittsdatum: 30. Juli 2012

Neue Beiträge

I want to give link to the html pages . I have top navigation in my website beside that themes is applied on all the pages.If I paste content in WCD I have to embed the WCD in a page which will get the default theme.So better is I find a way to store Html page and give link to the html page.So please tell me where to store and get url for the stored page.
Jose Jimenez
RE: Store html page
2. November 2012 01:13
Antwort

Jose Jimenez

LIFERAY STAFF

Rang: Regular Member

Nachrichten: 129

Eintrittsdatum: 22. August 2012

Neue Beiträge

Hello,

You can get it following the next steps.

1- Create Web Content.
2- Create empty-theme removing header, footer or what you want.
3- Create a Page as type WebContent (from Manage Pages)
4- Add the WebContent Id to the Page, and apply the empty-theme.

I hope this helps you. Kind regards.
lucky singh
RE: Store html page
2. November 2012 03:29
Antwort

lucky singh

Rang: Junior Member

Nachrichten: 26

Eintrittsdatum: 30. Juli 2012

Neue Beiträge

Hey thanks jose I have to use the old html pages because page alignment css will have to take care in theme And that cant be done for all html in one empty theme.

I have created html folder as $LIFERAY_HOME/webapps/html
and placed all html pages there(say xyz.htm).
And linked as local:8080/html/xyz.htm.
I get html page through link, but my rich text box of WCD becomes uneditable. When I delete html folder I again can see WCD rich text box to edit. Can anybody know the reason.
Gaurav Jain
RE: Store html page
2. November 2012 03:16
Antwort

Gaurav Jain

Rang: Regular Member

Nachrichten: 141

Eintrittsdatum: 31. Januar 2011

Neue Beiträge

Hi Lucky,

IMO if you don't want to go with liferay Web-Content way (which is actually best way in liferay terms), then you can do it using apache.

So you can generate some url mappings that will be linking to your html pages (that you placed on some folder drive); and you may use those urls to your liferay web-contents.
lucky singh
RE: Store html page
2. November 2012 03:30
Antwort

lucky singh

Rang: Junior Member

Nachrichten: 26

Eintrittsdatum: 30. Juli 2012

Neue Beiträge

I created folder to hold pages and could access html page as well but my web content display is no more editable. I have place folder in $LIFERAY_HOME/webapps/html .Dont know why Rich text is no more editable.emoticon
Hitoshi Ozawa
RE: Store html page
2. November 2012 05:38
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7954

Eintrittsdatum: 23. März 2010

Neue Beiträge

If you just want to display your html files, just use iframe portlets.