Announcement

Collapse
No announcement yet.

Is there a way to associate text with an image?

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

    Is there a way to associate text with an image?

    We sell yarn, and yarn manufacturers sometimes use unusual names for their colors (seabreeze, summer storm, etc.) and we would like to associate those names with the images we post of each color, as attributes.

    Is there a way to add text to images, either through the Miva Admin or with an add-on module?

    If not that, is there a way to do it with alt text?

    #2
    Re: Is there a way to associate text with an image?

    The best answer depends on why you want these associations. Search Engines? Miva Search? As part of the image title?

    A 'general purpose' answer would be to setup a product custom field. Lets call it ImgLabel

    Then, on your product or category pages, change the default (old style) img call like:

    <img src="&mvt:product:image;" alt="&mvt:product:name;">

    with

    <img src="&mvt:product:image;" alt="&mvt:product:name; &mvt:product:customfield_values:customfields:ImgLa bel;">

    Use the Img Label custom field to add the alternative labels.

    You could also use &mvt:product:customfield_values:customfields:ImgLa bel; as readable text on the page.

    This would work for Search Engines and humans, but for miva search you'd need to add those terms into the product description. If you don't want them to be seen by humans, you can just use HTML comments like <!-- seabreeze, seafoam green, etc --> in the description.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Re: Is there a way to associate text with an image?

      Plus what Bruce said


      You will want to do this using the attribute images to swap out the image when a new color is selected?

      You can do that using swatch image dropdowns or you can use radio buttons uploading a swatch image to each radio button. You can make it so the radio button also shows the swatch and the name of the color by altering the attribute template of the PROD page.

      http://www.vermontgear.com/CA12.html

      or

      http://www.vermontgear.com/101474.html

      http://www.miva.com/videos/web_devel...ntory-variants
      Last edited by Mark Hood; 01-14-15, 11:55 AM.
      Mark Hood
      Vermont Gear

      Comment


        #4
        Re: Is there a way to associate text with an image?

        Yea, I was hoping I didn't have to explain how to do this with an image machine application :)
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Re: Is there a way to associate text with an image?

          Thanks guys... now if my backup will eventually copy itself over to my new hard drive and I can get the computer up and running again, I'll give it a try. Terabyte drives are wonderful until you have to move all of the data somewhere...

          Comment

          Working...
          X