bloomreach / ui-extensions

Samples of Open UI Extensions for BloomReach Experience
Apache License 2.0
5 stars 13 forks source link

documentation is not full, missing critical information #7

Open msangel opened 3 years ago

msangel commented 3 years ago

In the documentation says:

Step 3: Render the Bynder assets in your frontend templates
You can now start using the Bynder references that are stored in your documents to render the assets in your frontend templates.

But when I do use it with

<@hst.link hippobean=document.myImage />

where myImage is field in type: "Open UI String" - the link is empty.

while I use it with <img src="${document.myImage}", the link is like:

[{"id":"855BBC50-1680-4F75-8C9D8D81C3E82480","orientation":"landscape","archive":0,"type":"image","fileSize":79876,"description":"","name":"PVR-4601-B-300x250","height":250,"width":300,"copyright":"","extension":["jpg"],"userCreated":"Daliys Hernandez","datePublished":"2020-10-09T18:24:34Z","dateCreated":"2020-10-09T18:24:56Z","dateModified":"2021-08-02T22:17:21Z","watermarked":0,"limited":0,"isPublic":0,"brandId":"AC0ADFEC-E194-4CC8-90FF45FC2CB67DA8","thumbnails":{"mini":"https://d3cy9zhslanhfa.cloudfront.net/media/C63D0E08-B7D2-4B08-ABB54052F41999E0/855BBC50-1680-4F75-8C9D8D81C3E82480/mini-FB161107-38E8-4602-88B9DC26AEBF974D.jpg","webimage":"https://d3cy9zhslanhfa.cloudfront.net/media/C63D0E08-B7D2-4B08-ABB54052F41999E0/855BBC50-1680-4F75-8C9D8D81C3E82480/webimage-6E06404E-0AA5-40C6-AA0F8D8C0917F6E7.jpg","thul":"https://d3cy9zhslanhfa.cloudfront.net/media/C63D0E08-B7D2-4B08-ABB54052F41999E0/855BBC50-1680-4F75-8C9D8D81C3E82480/thul-4E6D6EC2-9451-471B-B83661A9E8652D6C.jpg"}}]

and in this JSON there is no full-sized image for rendering in the preview.

Any recipe for getting the same behavior like on demo gif?

nvankampenhout commented 3 years ago

Hi, this sample code is not actively maintained. I recommend posting your question in the Bloomreach developer community (https://community.bloomreach.com/) or if you are a Bloomreach customer or partners, reach out to your support contact.