You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Anish <an...@techblue.co.uk> on 2009/04/24 10:30:13 UTC

Upload Assets (Images) on Lenya 2.0 Problem

Hi All

I'm trying to upload assets (images) on Lenya 2.0 and then trying to put 
them as live.

When I upload asset it gets uploaded and is shown in assets but when I 
add an image to the page, submit and publish there is no image displayed 
on the live page.

Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Upload Assets (Images) on Lenya 2.0 Problem

Posted by Andreas Hartmann <an...@apache.org>.
Hi Anish,

please refrain from cross-posting to the dev list. This leads to thread 
splitting and should therefore be avoided. Thanks!

-- Andreas


Anish schrieb:
> Hi All
> 
> I'm trying to upload assets (images) on Lenya 2.0 and then trying to put 
> them as live.
> 
> When I upload asset it gets uploaded and is shown in assets but when I 
> add an image to the page, submit and publish there is no image displayed 
> on the live page.
> 
> Please suggest.
> 


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Upload Assets (Images) on Lenya 2.0 Problem

Posted by hongbing cheng <if...@gmail.com>.
Hi Anish,
           The image function of the Kupu has bug, but i have solved the
bug.  You can try it.
           Solution:
           In the kupu\apache-lenya\lenya\content2edit.xsl, you must add the
three line with    the red font.

   <!-- this template converts the object tag to img (for compatiblity with
older browsers
    for more, see http://www.xml.com/pub/a/2003/07/02/dive.html -->
   <xsl:template name="object2img">
      <img border="0">
        <xsl:attribute name="src">
          <xsl:choose>
            <xsl:when test="starts-with(@data, 'http://')">
              <xsl:value-of select="@data"/>
            </xsl:when>
            <xsl:when test="not(starts-with(@data, '/'))">
              <xsl:value-of select="$nodeid"/>/<xsl:value-of
select="@data"/>
            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="@data"/>
            </xsl:otherwise>
          </xsl:choose>

Good luck,

Cheng

2009/4/24 Anish <an...@techblue.co.uk>

> Plese add to it:
>
> I'm using Kupu Editor
>
>
> Anish wrote:
>
>> Hi All
>>
>> I'm trying to upload assets (images) on Lenya 2.0 and then trying to put
>> them as live.
>>
>> When I upload asset it gets uploaded and is shown in assets but when I add
>> an image to the page, submit and publish there is no image displayed on the
>> live page.
>>
>> Please suggest.
>>
>>
>
> --
> Anish Sneh
> Software Engineer
> Techblue Softwares Pvt. Ltd.
> www.technologyblueprint.co.uk
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>

Re: Upload Assets (Images) on Lenya 2.0 Problem

Posted by Anish <an...@techblue.co.uk>.
Plese add to it:

I'm using Kupu Editor

Anish wrote:
> Hi All
>
> I'm trying to upload assets (images) on Lenya 2.0 and then trying to 
> put them as live.
>
> When I upload asset it gets uploaded and is shown in assets but when I 
> add an image to the page, submit and publish there is no image 
> displayed on the live page.
>
> Please suggest.
>


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Upload Assets (Images) on Lenya 2.0 Problem

Posted by Anish <an...@techblue.co.uk>.
Plese add to it:

I'm using Kupu Editor

Anish wrote:
> Hi All
>
> I'm trying to upload assets (images) on Lenya 2.0 and then trying to 
> put them as live.
>
> When I upload asset it gets uploaded and is shown in assets but when I 
> add an image to the page, submit and publish there is no image 
> displayed on the live page.
>
> Please suggest.
>


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org