<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>This problem relates to the "Preview" page view
from the edit screen (either "Edit Page" or "Edit Source") i.e the icon at top
right to Preview changes made to a page. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have the following line of code in a
contenttemplate that dynamically renders a unique image for a given
page:-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><td width="30%" rowSpan=2><img
height="119" width="135" src="]]><method
name="getPathUri"/><![CDATA[pics/headers/]]><method
name="getFileUri"/><![CDATA[_header.gif"></td></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This line of code produces a correct url to an
image in pre-published and published views of the given page. However in
"Preview", the code ]]><method name="getFileUri"/><![CDATA[ for some
reason prefixes the file name with a tilda "~" . The url output in
"Preview" mode is:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://mysite/opencms/industry/pics/headers/~hydrocarbons.html_header.gif">http://mysite/opencms/industry/pics/headers/~hydrocarbons.html_header.gif</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is this a bug, or does anybody no of a workaround
that does not involve a total reworking of dynamic image selection (noting that
the above works apart from "Preview" view).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Rod</FONT></DIV></BODY></HTML>