You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by jazzhazze <ha...@glocalnet.net> on 2008/06/17 10:52:13 UTC
Re: Faulty generated asset link on a media page - SOLVED
I solved it by changing the resource2xhtml.xsl in the resource module.
I created a new "root"-variable without the first lenya reference:
<xsl:variable name="root2" select="substring-after($root, 'lenya')"/>
Then I used that variable instead of the original root-variable when
creating the variable "mediaURI":
<xsl:variable name="mediaURI">
<!-- <xsl:value-of select="$root"/>-->
<xsl:value-of select="$root2"/>
<xsl:value-of select="$mediaUrl"/>
</xsl:variable>
jazzhazze wrote:
>
> I want to create a new media page containing a pdf file.
>
> The reference for the link on the media page is faulty even though the
> title of the link is correct (visible after "Content") . It contains the
> directory lenya two times:
>
> (xxxx is my publication)
>
> http://localhost:8080/lenya/lenya/xxxx/authoring/yyyy/zzzz/4444.pdf
>
> The title of the asset after "Content" is presented as:
> /yyyy/zzzz/4444.pdf (which is correct)
>
> Which files do I have to alter, to remove the extra "lenya" ?
>
> BTW, if I copy the faulty link, paste into the address bar and manually
> remove the extra lenya it works fine!
>
>
>
>
--
View this message in context: http://www.nabble.com/Faulty-generated-asset-link-on-a-media-page---SOLVED-tp17866083p17880774.html
Sent from the Lenya - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org