Re: Insert Image preview are missing (Lenya 2.0.2)

Richard Frovarp <[email protected]>
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Fülöp Levente-Balázs wrote:
> Hi all,
> I'm working on a project based on Lenya 2.0.2.
> I deployed it in the lenya-2.0.2 context path.
> When I try to insert an image using BXE editor, in the "Insert Image" 
> popup the previews for the images are missing.
> Looking in the generated HTML source, the <img> tag src shows the 
> context path doubled, and this is the reason why the previews are not 
> displayed.
> Taking  a deeper look, it seems, that o.a.c.e.InsertAsset class 
> creates an 'asset2proxyUrl' map, where the assets URL are put as 
> value, but, these URLs contains the context-path. Now, the .jx file 
> use these URLs as the src for the <img> tag.
> And, the context path gets duplicated, because the pipeline from 
> usecase.xmap use the "proxy" transformer at the end.
>
> My question is: how can be solved this problem?
>
> Thanks in advance,
> Levi
>

You may need to set the proxy information so that the transformer 
creates the proper URL. I'm guessing you'll need to change the 
publication proxy URLs to show the proper values. Although it should 
just work if you're running from Tomcat or Jetty.

I think we may need more details. What is the URL of lenya, and what is 
the URL showing up in the img tags?

Richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.