cancel
Showing results for 
Search instead for 
Did you mean: 

wcm content for liferay portlet

ranj
Champ on-the-rise
Champ on-the-rise
hello ,
I ve been working on alfresco4.0.b wcm integration with liferay 6.1.
i ve created web project called sample and web form. web content is created using the web form-  sample.html,sample.xml in user sandbox. after submission, it moves to the staging sandbox.virtual server is on.
when i click on the preview of sample.html , it opens up with the content which contains both text and image.
the url of preview:
"http://tom.www--sandbox.127-0-0-1.ip.alfrescodemo.net:8180/sample.html "

but when i click on the sample.html (on the name of the file), it does not display the images.
url:"http://127.0.0.1:8080/alfresco/d/d/avm/tom/-1|www|avm_webapps|ROOT|sample.html/sample.html"

and also when i try to get the content of the file through webscript, it shows only the text not the images.
"GET /alfresco/service/api/wcm/webprojects/sample/sandboxes/sample/assets/content/www/avm_webapps/ROOT/sample.html   "   

pls help me with this. Smiley Sad

Thankyou,
ranjani
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
So where is the image and how does your html file reference your image?

We wouldn't expect the web script for the html file to return the image.   However a browser would get the html file and then get the image.

ranj
Champ on-the-rise
Champ on-the-rise
The image is in the same location of the html file. And also the html source is same for both the pages-"ON CLICK OF THE HTML FILE" and "ON CLICK OF THE PREVIEW ICON". but the image is not displayed in the former.

and also when i try to get the content of the file through webscript, it shows only the text not the images.
"GET /alfresco/service/api/wcm/webprojects/sample/sandboxes/sample/assets/content/www/avm_webapps/ROOT/sample.html "

is this the right way to get the wcm content? or do we have some other way?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.