You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2004/05/26 22:33:17 UTC

Re: How to link Assets in live mode

Christian Kreutz wrote:
> Great the upload works and we have a file library.
> But how can I link to the files in my page if I am
> not using BXE.
> 
> The file is in mypub/resources/authoring/test/test.pdf 
> and I want to offer it for download or implement
> the foto via one form editor. 
> 
> I guess I just need the right path? :-)

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26576

there is an alternative way you may want to implement. you can see it in 
action in the unicms publication, which you can get from wyona.org.

we didnt want to complicate the sitemap of the default publication with 
this feature, but it should be pretty easy to figure out:

from publication-sitemap.xmap of the unicms publcation

       <!-- with image upload dots -->
       <map:match pattern="lenya-image-upload/*/**.html">

         <map:act type="language-exists">
           <map:generate 
src="cocoon:/lenyabody-imageupload-standard/{../1}/{../2}.html"/>
           <map:transform 
src="cocoon://lenya-page/{page-envelope:publication-id}/{../1}/{page-envelope:document-type}"/>
           <map:serialize type="xml"/>
         </map:act>


-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

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