[Hippo-cms7-user] Re: Best practice to retrieve binary from hippo:resource field

Edwin Benneheij ettepet at gmail.com
Wed Jun 23 20:52:55 CEST 2010


On Jun 23, 2010, at 8:06 PM, Jeroen Reijn wrote:

> See my comments inline.
> 
> On Wed, Jun 23, 2010 at 6:08 PM, Edwin B. <ettepet at gmail.com> wrote:
> 
> > Hi Jeroen,
> 
> > the HST will retrieve the binary based on the context the website is in. So if you are on the preview the resulting file should come from the preview document and if you're on the live site you should get the live version of the binary.
> Indeed, this is the behaviour I expect. In fact, it is the behaviour I get when I use the hippo:mirror (linkpicker) for adding hyperlinks to other Hippo-documents (webpages).
> 
> Ok.
>  
> But when I use the hippo:resource field for adding a PDF file in the wrapper, and use the hippo:mirror in the parent document to add the documentwrapper, the URL to this PDF-file changes into this binary/content link.
> So instead of retrieving the PDF-file from the live/preview-node (view on the content-node) my website retrieves the PDF-file directly from the content-node.
> Where am I going wrong?
> 
> You mean it now exposes the live/hst:content path in the url? If so it might be that you need to write your own resource container for these links.
>  
> 
> > The binary servet will most of the time not expose the path in the url. You might be able to achieve this though by disabling the default resource containers in the hst configuration.
> Yes, I am familiar with the resource containers to rewrite the URL's
> By the way, what HST-version can/should be used with the latest ECM version (2.12.15)?
> 
> 
> You can use 2.04.06. It's the latest stable version.
> 
> I just noticed that this thread is on the cms 7 mailinglist, but it would be better to ask this on the HST2 forum or list [1]. Others with hst2 knowledge can also help you out there.
> 
> [1] http://www.onehippo.org/site-toolkit/support/forum
>  
> Best regards,
> Edwin
> --
> View this message in context: http://hippo.2275632.n2.nabble.com/Best-practice-to-retrieve-binary-from-hippo-resource-field-tp5213483p5213965.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html
> 
> _______________________________________________
> 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/20100623/58ddd2d8/attachment.htm>


More information about the Hippo-cms7-user mailing list