Michael Heigl ha scritto:
Hi,
Hi Michael,
we are using Magnolia 3.6.3 and have the following setup:
Author: http://[someurl]/author/
Public: http://[someurl]/
When we insert an image or flash using the FCKEditor it stores the path to the
image/flash withouth the context path (in this case without the "/author/") in
the repository (e.g. /path/to/file/demoimage.jpg). I guess this is desired behaviour.
It is more than a "desired behaviour". It is the exact way-of-doing when
working with repositories.
But when viewing or editing the content in the author instance the images/flash don't
show because of the missing "/author/". So it trys to load
/path/to/file/demoimage.jpg instead of the correct path /author/path/to/demoimage.jpg
I can imagine you try to "print" a link or include an image e.g.: in a
<img src="*" /> omitting the Magnolia context path.
You can (better, you should!) use something like this (for JSP):
<a href="<%= MgnlContext.getContextPath()
%>${your-context-unaware-path}">...</a>
In this case you can move your templates over different instances
without breaking them.
I suggest to make this context path available to all the pages, maybe
including a head.jsp or a generic TemplateRenderer that expose it to JSTL.
I hope to have understood your problem..
HTH,
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------