[opencms-dev] problem with img tags

Nguyen La Yen Dung dny at sdcgrp.com
Fri Jul 4 13:44:01 CEST 2003


Hi,

I'm using image gallery.

I export my file htmls to D:\Apache\webapps\opencsm\export\myproject\htmls,
and 
the pictures in gallery to D:\Apache\webapps\opencsm\export\pics

Here is my code:
          <TD vAlign=bottom align=middle><A 
 
onmouseover="MM_swapImage('home','','/opencms/opencms/system/galleries/pics/
pics/navTop_about_over.gif',1)" 
            onmouseout=MM_swapImgRestore() 
            href="/opencms/opencms/myproject/htmls/about.html" 
            target=_self><IMG height=14 alt=Home 
 
src="/opencms/opencms/system/galleries/pics/pics/navTop_about.gif" 
            width=42 border=0 name=home></A></TD>

Open D:\Apache\webapps\opencsm\export\myproject\index.html file, the
navTop_about_over.gif is not found. 

How to avoid this hardcode?

Thanks in advanced,

Yendung 


-----Original Message-----
From: Mark Miller [mailto:mark.miller at hema.ch]
Sent: 04 July 2003 14:02
To: opencms-dev at opencms.org
Subject: AW: [opencms-dev] problem with img tags


Also .... if you want to upload a group of images ... work with them
locally, then zip them up, then upload the zip file to the gallery
(making sure the zip option is checked when uploading).

The behaviour you were talking about simply takes the object on YOUR
clipboard and pastes it into whichever container (IE Explorer in WYSIWYG
mode). But, what is on your clipboard is a reference to the image, not
the image itself, so, the container simply inserts the reference, which
can be rendered locally. The image has never been physically moved to
the server.

So by opening the page on another machine, the page still has the
reference to the (your) local image (Eg. c:\test\image1.jpg) and it is
not guaranteed that everyone has that image on their machine.

Hence this is a behavioural trait.

-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Joachim Arrasz
Gesendet: 04 July 2003 08:28
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] problem with img tags

Hy,

yes this is a normal behavour. I can`t understand it too, but it`s
normal.
You shoud it do like this:

First for "normal" users who just but content in Pages, make a image
Gallery and give the users right for read and write.
Then in the WYSIWYG Editor they can chosse the images from the icon for
Image Galleries. When they want to use a new Picture, they also can
upload
via this icon a new one to the Image Gallery, and everything is fine!
I don`t know another way to handle it correct.

Regards Achim

-- 
Questions about OpenCMS?
--> www.synyx.de/board


> Sebastián Alberoni>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0091_01C341C5.197BC390
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hi!
> I sent this on Tuesday and I had no reply.
> I have Opencms 5.0.0 installed both in Red Hat Linux and Windows XP,
> and = I have the same problem in both environments.
> My simple question (for Opencms developers or experienced users), is:
> Is this the normal behavior of Opencms or do I have to configure =
> something in order for this to work properly?
> Please, I need an answer on this.
> Thank you very much in advance.
> Sebastian
>
>>>>>original message:
>
> Hi all.
> I'm having a problem with images.
> When a user edits a page in the WYSIWYG editor, if he puts an image =
> which is located in his computer (using the "insert image" button),
> when = the page is published the path of the src attribute of that img
> tag is = harcoded to the original physical location of the image. The
> result is = that when the page is published, that image is not seen by
> anybody, the = only person who can see it the person who inserted that
> image.
> The alternative is to use the image gallery, of course, but... I think
> = that inserting local images should work.
> Perhaps I have to configure something.
> Hints are welcome.
>
> ------=_NextPart_000_0091_01C341C5.197BC390
> Content-Type: text/html;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Diso-8859-1">
> <META content=3D"MSHTML 6.00.2726.2500" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>Hi!<BR>I sent this on Tuesday and I
> had = no=20
> reply.<BR>I have Opencms 5.0.0 installed both in Red Hat Linux and =
> Windows XP,=20
> and I have the same problem in both environments.<BR>My simple
question
> = (for=20
> Opencms developers or experienced users), is:<BR>Is this the normal =
> behavior of=20
> Opencms or do I have to configure something in order for this to
> work=20 properly?<BR>Please, I need an answer on this.<BR>Thank you
> very much in =
>
> advance.<BR>Sebastian</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>>>>>original =
> message:</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>
> <DIV><FONT face=3DArial size=3D2>Hi all.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>I'm having a problem with =
> images.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>When a user edits a page in the
> WYSIWYG = editor, if=20
> he puts an image which is located in his computer (using the
> = "insert=20
> image" button), when the page is published the path of the src
> attribute = of that=20
> img tag is harcoded to the original physical location of the image.
The
> = result=20
> is that when the page is published, that image is not seen by anybody,
> = the only=20
> person who can see it the person who inserted that image.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>The alternative is to use the image =
> gallery, of=20
> course, but... I think that inserting local images should =
> work.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>Perhaps I have to configure =
> something.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>Hints are=20
> welcome.</FONT></FONT></DIV></DIV></BODY></HTML>
>
> ------=_NextPart_000_0091_01C341C5.197BC390--
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit http://mail.opencms.org/mailman/listinfo/opencms-dev



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev

_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030704/ed9b26ea/attachment.htm>


More information about the opencms-dev mailing list