cancel
Showing results for 
Search instead for 
Did you mean: 

Put Html and Picture in a space

sebastian1
Champ on-the-rise
Champ on-the-rise
Hey Guys,

I have a problem.
I want to put our html newsletter on alfresco explorer in a certain space called newsletters.

In there, we have a html file and a folder with the pictures.
But when I open the html file, the pictures do not get loaded from alfresco.

How can i solve this problem without changing the root path of every picture in the html file?

Regards

Sebastian
3 REPLIES 3

zladuric
Champ on-the-rise
Champ on-the-rise
Well, from what I can tell, you probably have the wrong image urls. Ie, if you put a
<img src="images/image.jpg"/>
tag in your html file, it will not work, as you need node references/urls/whatever to get things from alresco repository. The workaround would be to have the images folder separated and placed somewhere in the absoulte path (tomcat/webapps/share/images comes to mind).

sebastian1
Champ on-the-rise
Champ on-the-rise
Well, from what I can tell, you probably have the wrong image urls. Ie, if you put a
<img src="images/image.jpg"/>
tag in your html file, it will not work, as you need node references/urls/whatever to get things from alresco repository. The workaround would be to have the images folder separated and placed somewhere in the absoulte path (tomcat/webapps/share/images comes to mind).

Hm yes i thought about this, but this is too much work and too diffucult for normal users.
But I found a solution which works with internet explorer.

Solution:
Build a MHTML Document, so u have every picture in the document and u dont get a seperate folder like it is with html.
Link to this document viaw Webdav login. (With normal URL login the redirection with ankers doesnt work!)

Regards

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
hey i have this crazy idea, so you can create custom type like htmlExtra.

so you upload your html with images( you can create zip like file) .

you can alter upload content and make on the fly change to img addresses so you can put some cool path to it ( http://wiki.alfresco.com/wiki/URL_Addressability ). 
but if this( url addresability ) is complicated for you you can add another servlet to be like:
   alfresco/s/imagepath/image.jpg . so your custom code does this change on the fly, and you would see the images.

also if you use this idea you have to do next, or give this folder guest read access , or use some of authentificationutil.run as features .

Hope this crazy idea gives you some help.