Announcement

Collapse
No announcement yet.

Image Machine Data as Structure

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Image Machine Data as Structure

    Is it possible to output the imageMachine image paths as a miva array/structure?I have a use case where it would be much easier to use page template code instead of javascript.

    I've been using <mvt:do name="l.image_count" file="g.Module_Library_DB" value="ProductImageDataList_Load_Product(l.setting s:product:id, l.settings:imagedata)" /> to get at the product images, but is there a way to retrieve the sizes image machine knows about?

    thanks very much for any help,
    Paul

    #2
    That function returns all images sizes which have been generated in Miva.

    https://docs.miva.com/code-samples/load-product-images

    Image Machine will use the size you have defined under the PROD page for images.

    You could also load any image size you want using this code:

    https://docs.miva.com/code-samples/o...-product-image

    What are you ultimately trying to accomplish?
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Thanks Brennan, I'm not sure how i missed those codes samples. This should give me exactly what I need. I'm using the jQuery slick plugin to output a product gallery, and they way it handles thumbs requires you to create 2 galleries and sync them. So it's just easier to use the image references directly.

      thanks again!
      Paul

      Comment

      Working...
      X