Results 1 to 8 of 8
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    5
    I am hoping that someone has a trick for getting alt tags into image tags (the <img src=""> html that is generated with the [WM-ImagePath: fieldName] tag). Would like to do something like <img src="" alt="[WM-Field: Name]"> Thanks

  2. #2
    Full Member
    Join Date
    January 18th, 2005
    Posts
    413
    Try searching this discussion group using the kewywords "alt tags" and/or go to this previous posting at http://abw.infopop.cc/eve/ubb.x?a=tp...445#5266047445

  3. #3
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by gravitydex:
    I am hoping that someone has a trick for getting alt tags into image tags (the &lt;img src=""&gt; html that is generated with the [WM-ImagePath: fieldName] tag). Would like to do something like &lt;img src="" alt="[WM-Field: Name]"&gt; <HR></BLOCKQUOTE>

    This is covered in the WebMerge FAQ.

    Note that in v2.4 the WM-ImagePath tag has been extended to allow including standard HTML image attributes:

    [WM-ImagePath: MyPathField alt="My Al Text"]
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  4. #4
    Full Member heisje's Avatar
    Join Date
    January 18th, 2005
    Posts
    314
    it gets unreliable when used ex. as follows:

    alt="[WM-Field: LongDescription]"

    and really messy if used as follows:

    alt="[WM-Field: ShortDescription] [WM-Include: ../folder/file.txt] [WM-Field: LongDescription]"

    any ideas?

    heisje

    .

  5. #5
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Quote Originally Posted by heisje
    it gets unreliable when used ex. as follows:

    alt="[WM-Field: LongDescription]"

    and really messy if used as follows:

    alt="[WM-Field: ShortDescription] [WM-Include: ../folder/file.txt] [WM-Field: LongDescription]"

    any ideas?
    Depends on what's meant by "messy". What exactly are you getting?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  6. #6
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    Quote Originally Posted by heisje
    alt="[WM-Field: ShortDescription] [WM-Include: ../folder/file.txt] [WM-Field: LongDescription]"
    Make sure there aren't any extra " in your data. I've had to change the extra paraenthesis to & #34; (need to combine this to get the " symbol) in the feed and use the raw attribute so those can show up without screwing up the alt="" part.
    Scott
    If you can't dazzle them with brilliance, then baffle them with bulls#!t
    Don't tell me that you'll do it... SHOW ME.
    Just because everyone else is drinking it is no reason for me to drink the KOOL-AID.

  7. #7
    Moderator BurgerBoy's Avatar
    Join Date
    January 18th, 2005
    Location
    jacked by sylon www.sylonddos.weebly.com
    Posts
    9,618
    Talking
    Quote Originally Posted by gravitydex
    I am hoping that someone has a trick for getting alt tags into image tags (the &lt;img src=""&gt; html that is generated with the [WM-ImagePath: fieldName] tag). Would like to do something like &lt;img src="" alt="[WM-Field: Name]"&gt; Thanks
    Try this. It works for me.

    <img src="[WM-Field: IMAGE_URL nolink raw]" border="0" alt="[WM-Field: PRODUCT_NAME noLink raw]" width="150" height="150">.

    Do not have WM generate the image path. Make the path yourself doing it as above in your template that you built.

    Just change the fields and image size to whatever the data feed that you are using says.

  8. #8
    Full Member heisje's Avatar
    Join Date
    January 18th, 2005
    Posts
    314
    scott,

    one can never get too careful with "extras" in the datafeed, but after some sweating you (mostly) get it right . . .

    best,
    heisje

    .

  9. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Alt Tags
    By SeventiesMartin in forum WebMerge (Fourthworld.com)
    Replies: 3
    Last Post: May 7th, 2004, 04:55 AM
  2. Alt Tags for images that do not exist
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: April 22nd, 2004, 08:06 AM
  3. alt tags - how much is too much?
    By John Kruger in forum Search Engine Optimization
    Replies: 5
    Last Post: December 27th, 2002, 11:10 PM
  4. Alt tags
    By SSanf in forum Midnight Cafe'
    Replies: 4
    Last Post: July 3rd, 2002, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •