[Hippo-cms7-user] Link to a file in the repo directly from a JSP

Jeroen Reijn j.reijn at onehippo.com
Thu Apr 28 14:50:21 CEST 2011


The path is the same structure as underneath the images or assets tab. That
would lead you to /content/assets/ or /content/images/
You could also try the repository interface (I do that myself most of the
time).

http://localhost:8080/cms/repository/ that should give you the path.

Jeroen

On Thu, Apr 28, 2011 at 2:44 PM, Asmann, Roland <Roland.Asmann at adesso.at>wrote:

> Hmmm... I thought I knew the path, but I guess it was wrong... Is there
> a way to figure the path out when I'm in the CMS?
>
> Roland
>
>
> On 28.04.2011 9:29, Ard Schrijvers wrote:
> > Yes. If you know the (absolute) path to the binary in the repository,
> > you can use
> >
> > <hst:link var="binLink" path="/binaries/${absPathInTheRepositoryToBin}"/>
> >
> > Thus, use 'path' attr and prefix it with /binaries
> >
> > Regards Ard
> >
> > On Thu, Apr 28, 2011 at 9:21 AM, Asmann, Roland
> > <Roland.Asmann at adesso.at> wrote:
> >  > Hi all,
> >  >
> >  > Is it possible to link to a file in the repo (in my case a
> >  > JavaScript-file) from the JSPs that are used to render the page?
> >  >
> >  > How can I do this?
> >  >
> >  > --
> >  > Roland Asmann
> >  > Senior Software Engineer
> >  >
> >  > adesso Austria GmbH
> >  > Floridotower 26. Stock              T +43 1 2198790-27
> >  > Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
> >  > A-1210 Wien                         M +43 664 88657566
> >  >                                    E roland.asmann at adesso.at
> >  >                                    W www.adesso.at
> >  >
> >  > -------------------------------------------------------------
> >  > >>> business. people. technology. <<<
> >  > -------------------------------------------------------------
> >  > _______________________________________________
> >  > Hippo-cms7-user mailing list and forums
> >  > http://www.onehippo.org/cms7/support/forums.html
> >  >
> >
> >
> >
> > --
> > Hippo
> > Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20
> > 522 4466
> > USA  • San Francisco 755 Baywood Drive, Second Floor •  Petaluma, CA.
> > 94954 •  +1 877 414 4776 (toll free)
> > Canada    •   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC
> > H2T 1S5  •  +1 (514) 316 8966
> > www.onehippo.com  •  www.onehippo.org  •  info at onehippo.com
> > ________________________________________________________________
> > This e-mail may be privileged and/or confidential, and the sender does
> > not waive any related rights and obligations. Any distribution, use or
> > copying of this e-mail or the information it contains by other than an
> > intended recipient is unauthorized. If you received this e-mail in
> > error, please advise me (by return e-mail or otherwise) immediately.
> > _______________________________________________
> > Hippo-cms7-user mailing list and forums
> > http://www.onehippo.org/cms7/support/forums.html
> >
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock              T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
> A-1210 Wien                         M +43 664 88657566
>                                    E roland.asmann at adesso.at
>                                    W www.adesso.at
>
> -------------------------------------------------------------
>             >>> business. people. technology. <<<
> -------------------------------------------------------------
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onehippo.org/pipermail/hippo-cms7-user/attachments/20110428/256ca642/attachment.htm>


More information about the Hippo-cms7-user mailing list