CRX dam:scene7Path property contains is/image instead of is/content for published to Scene7 animated gifs | Adobe Higher Education
Skip to main content
October 16, 2015
Pregunta

CRX dam:scene7Path property contains is/image instead of is/content for published to Scene7 animated gifs

  • October 16, 2015
  • 5 respuestas
  • 1536 visualizaciones

Hi!

We need to include animated gifs in our components. Publishing to Sceene7 is ok but, I suddenly mentioned that the Scene7 link inserted in CRX is pointing out to static image(http://...scene7.com/is/image/...) and not on the dynamic rendition (http://...scene7.com/is/content/,,,,).

Are there ways exist I can use to force Scene7 put a link on 'content' instead of 'image' for gifs? Of couse I can substitute img's tag src attribute.But are there some other clever ways to do this more elegant?

Thank you in advance!

Este tema ha sido cerrado para respuestas.

5 respuestas

WhoaShekhar
Level 10
October 16, 2015

Hi There,

Thanks for reaching out to Adobe Community.

You may want to look at the below articles and see if they help:

http://docs.adobe.com/docs/en/aem/6-1/administer/content/dynamic-media.html

http://docs.adobe.com/docs/en/aem/6-1/author/assets/dynamic-media.html

Thanks!

October 16, 2015

Do you know if adobe will somehow fix/correct this behaviour?

Thank you for your help!

Kunal_Gaba_
October 16, 2015

You should raise a support ticket with day care and get a hot fix for this issue.  

Adobo_Supportus
Level 7
October 16, 2015

Were you able to get any resolution from the Client Care team? Please let us know! 

October 16, 2015

Hi There,

I found a place in DAY's code where this link in CRX is set:

Class com.day.cq.dam.scene7.impl.Scene7UploadServiceImpl and method setS7AssetNodeProps(), please see below. I think this behaviour is wrong.

private void setS7AssetNodeProps(S7Config s7Config, String assetHandle, Scene7UploadServiceImpl.Scene7Asset asset, String publishedServer, Node jcrContent) throws Exception { try { this.waitOnNodeAvailability(jcrContent); jcrContent.setProperty("dam:scene7ID", assetHandle); if(asset != null) { if(!publishedServer.endsWith("/")) { publishedServer = publishedServer + "/"; } jcrContent.setProperty("dam:scene7Name", asset.getName()); jcrContent.setProperty("dam:scene7Type", asset.getType()); jcrContent.setProperty("dam:scene7File", (asset.getType().equals("Video")?asset.getFolder():asset.getRootFolder()) + asset.getName()); jcrContent.setProperty("dam:scene7CompanyID", s7Config.getCompanyHandle()); jcrContent.setProperty("dam:scene7Domain", publishedServer); jcrContent.setProperty("dam:scene7Path", publishedServer + "is/image/" + asset.getRootFolder() + asset.getName()); // HERE jcrContent.setProperty("dam:scene7APIServer", s7Config.getApiServer()); Calendar e = Calendar.getInstance(); e.setTime(asset.getLastModified()); jcrContent.setProperty("dam:scene7LastModified", e); jcrContent.setProperty("dam:scene7Folder", asset.getFolder()); } jcrContent.getSession().save(); } catch (VersionException var7) { this.log.info("setS7AssetNodeProps failure (ignored) to write out node properties for " + jcrContent.getPath() + " " + var7.getMessage()); } }