Expand my Community achievements bar.

Viewer library Inline Zoom

Avatar

Level 1

Hi Friends,

Please let me know that how I can change the orientation of the Swatches with in this example to horizontal to vertical.

  1. <!DOCTYPE html>

  2. <html>

  3. <head>

  4. <script type="text/javascript" src="http://s7d1.scene7.com/s7viewers/html5/js/FlyoutViewer.js"></script>

  5. <style type="text/css">

  6. #s7viewer.s7flyoutviewer {

  7.    width: 640px;

  8.    height: 480px;

  9. }

  10. </style>

  11. </head><body>

  12. <div id="s7viewer" style="position:relative;z-index:1;"></div>

  13. <script type="text/javascript">

  14. var inlineZoomViewer = new s7viewers.FlyoutViewer();

  15. inlineZoomViewer.setContainerId("s7viewer");

  16. inlineZoomViewer.setParam("serverurl", "http://s7d1.scene7.com/is/image/");

  17. inlineZoomViewer.setParam("config", "Scene7SharedAssets/Universal_HTML5_Zoom_Inline");

  18. inlineZoomViewer.setParam("contenturl", "http://s7d1.scene7.com/is/content/");

  19. inlineZoomViewer.setAsset("Scene7SharedAssets/ImageSet-Views-Sample");

  20. inlineZoomViewer.init();

  21. </script>

  22. </body>

  23. </html>
12 Replies

Avatar

Level 10

Hi,

Is this a question about a specific Adobe solution or is a a general web development question?

Thanks,
Jantzen

Avatar

Level 1

This is about specific Adobe solution .

I tried

inlineZoomViewer.setParam("Swatches.tmblayout", "4,0");

and

inlineZoomViewer.setParam("Swatches.orientation", "1");

but it is not working. using these commands.

Avatar

Level 10

It looks like your question might be related to Adobe Experience Manager​. I've moved your question to the AEM community.

Avatar

Level 10

Yes, this question has been moved to the AEM community where other AEM experts should being to see it and comment.

Avatar

Level 10

I asked our Dynamic Media experts to look at this question.

Avatar

Level 1

Thanks.

If possible can we jump on a call and see if we can fix this.

Regards,

Gaurav

Avatar

Level 10

The Eng team replied:

the out of the box viewer customer is referring to (Inline Zoom) does not support vertical swatches rendering.

The customer may consider using HTML5 Viewers SDK components to build their own viewer and layout swatches vertically.

Avatar

Level 1

Can you please provide me the URL where I can find the reference  for HTML5 Viewers SDK component.

Avatar

Level 1

I have prepared the HTML5 viewer using the below URL.

Viewer SDK Tutorial

Just let me kNow that how to enable inlinezoom in this.