[opencms-dev]Broken image link in Preview page view
Rod Thorburn
rod.thorburn at pavtech.co.nz
Thu Sep 26 01:53:13 CEST 2002
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.
I have the following line of code in a contenttemplate that dynamically renders a unique image for a given page:-
<td width="30%" rowSpan=2><img height="119" width="135" src="]]><method name="getPathUri"/><![CDATA[pics/headers/]]><method name="getFileUri"/><![CDATA[_header.gif"></td>
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:
http://mysite/opencms/industry/pics/headers/~hydrocarbons.html_header.gif
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).
Rod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20020926/e947b0f4/attachment.htm>
More information about the opencms-dev
mailing list