Announcement

Collapse
No announcement yet.

Referencing the path to a ReadyTheme image

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

    Referencing the path to a ReadyTheme image

    I'm using the ReadyTheme image management for some of my site's promo images, and I wanted to save a logo graphic there that I can use as a default social image for pages that don't already have one. However, I'm not seeing a way to reference the image location. I know how to place the image using the readytheme item, but that drops in full HTML code that I don't need. Is there a way to do this?

    #2
    See the load functions at the end of these docs:

    http://www.miva.com/videos/articles/...-documentation

    You can load the data and output just what you need.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      So what, I'm expected to read the documentation now?!

      Thanks, Brennan.

      Comment


        #4
        Actually, in my defense, the docs aren't complete and don't actually mention how to get the path to the image itself. I had to run miva_array_serialize and eval the result to find it. There's an element called :image that contains what I need, but this is missing from the list of outputs in the docs.

        That said, thanks for pointing me in the right direction. Knowing it was there is what made me dig deeper.

        Comment

        Working...
        X