wcm content for liferay portlet
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2012 11:16 PM
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.
Thankyou,
ranjani
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.

Thankyou,
ranjani
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2012 03:55 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2012 06:58 AM
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?
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?
