Page 1 of 2 12 LastLast
Results 1 to 25 of 27
  1. #1
    Member
    Join Date
    January 18th, 2005
    Posts
    199
    Hi everyone,

    I was hoping someone could help me with this question. On detail pages how would I make an image coming from a field have an alt tag that is from another field?

    For example the following line:
    <a href="[WM-Field: Product_URL]">[WM-ImagePath: Product_Image_URL_Large]</a>

    The line above would acquire the image and then make it a link to the product.
    If I wanted the alternate text tag to come from a field named "Product_Name", what would I insert into the code above to accomplish this?

    Thanks.

  2. #2
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Winterpeg, the Mosquito Capital of Canada
    Posts
    2,299
    Here is what I used on an index page detail should be same

    <img src="[WM-Field: Large_Image_URL]" width="95" height="110" border="0" alt="[WM-Field: Description]">

    use whatever name needed
    mine was description, your field title may be different
    This doesn't create a link, but a picture with an alt textr to it. you will have to play around some more with it
    Quite easy to do an alt tag anyways
    ...............
    WW

    Make a difference! Support your local Cancer Care providers.

  3. #3
    Member
    Join Date
    January 18th, 2005
    Posts
    199
    Thanks for the reply WW, but how would I insert the
    alt="[WM-Field: Description]" into my example line, since the [WM-ImagePath: Product_Image_URL_Large] will create the <img> tag?

  4. #4
    Super Sh!t Stirrer SSanf's Avatar
    Join Date
    January 18th, 2005
    Posts
    9,944
    If I can also get the answer to this, then I can use Webmerge. Otherwise, it won't work for my site designs.

    I would love it if this can be done.

    Also, how can a person add a name tag to the links?

    These two questions are what are holding me back.

    Mr.Merchant, if you do business in any way what-so-ever with parasites, your products will not be sold on my sites!!
    Affiliates, before you use CJ merchants, Read This! Comments are to be interpreted as opinion unless otherwise noted.

  5. #5
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Winterpeg, the Mosquito Capital of Canada
    Posts
    2,299
    it may not be quite the same as you need but I will PM both of you my url and code to see how it works so as not to make it more confusing here

    ...............
    WW

    Make a difference! Support your local Cancer Care providers.

  6. #6
    Resident Genius and Staunch Capitalist Leader's Avatar
    Join Date
    January 18th, 2005
    Location
    Florida
    Posts
    12,817
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by emione:
    Thanks for the reply WW, but how would I insert the
    alt="[WM-Field: Description]" into my example line, since the [WM-ImagePath: Product_Image_URL_Large] will create the &lt;img&gt; tag?<HR></BLOCKQUOTE>

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR> I would love it if this can be done.~Ssanf
    <HR></BLOCKQUOTE>

    The heck with WM-ImagePath. Type a few more keystrokes and write the HTML tags yourself, and only have WM do the variable:

    &lt;img src="[WM-Field ImageYouWant]" alt="[WM-Field description]"&gt;

    Presto, image with alt tag showing "description" field contents.

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR> Also, how can a person add a name tag to the links?
    <HR></BLOCKQUOTE>

    Not sure on that but if you know the syntax, the basic thing for any tag is to just put [WM-Field WhatFieldYouWant] in the variable part.

    It's the most wonderful time of the year!~Old Christmas Song

  7. #7
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Winterpeg, the Mosquito Capital of Canada
    Posts
    2,299
    Leaders post pretty much sums up what I said

    I sent both private messages, but IE crapped out
    if didn't get them let me know

    ...............
    WW

    Make a difference! Support your local Cancer Care providers.

  8. #8
    Member
    Join Date
    January 18th, 2005
    Posts
    199
    Thanks Leader & WW.
    I did not yet get your PM walleye, but I did what Leader suggested and it seems to work now.
    Thanks again both of you for the help.

  9. #9
    Super Sh!t Stirrer SSanf's Avatar
    Join Date
    January 18th, 2005
    Posts
    9,944
    Haven't had a chance to give this a try, yet but I will.

    Thank you.

    Mr.Merchant, if you do business in any way what-so-ever with parasites, your products will not be sold on my sites!!
    Affiliates, before you use CJ merchants, Read This! Comments are to be interpreted as opinion unless otherwise noted.

  10. #10
    Super Sh!t Stirrer SSanf's Avatar
    Join Date
    January 18th, 2005
    Posts
    9,944
    Well, I just got a great data feed from a merchant that I have been begging for. I have fiddled with this since about 6:30 AM and I just can't get it to work. all it does is write the code on the pages instead of showning the images and so forth. I just can't waste any more time on this time saving devise.

    I must make the pages so back to the tried and true for me, yet again.

    I can't say how disappointed I am.

    Mr.Merchant, if you do business in any way what-so-ever with parasites, your products will not be sold on my sites!!
    Affiliates, before you use CJ merchants, Read This! Comments are to be interpreted as opinion unless otherwise noted.

  11. #11
    Affiliate/AM Moonlighter dflsports's Avatar
    Join Date
    January 17th, 2005
    Posts
    874
    It could be a problem with the datafeed. Try opening the feed in excel and maybe try saving as CSV or tab delimited file.

    I had similar problems with Webmerge, tried it about a year ago and could never get it to work, every few months I'd waste some time and still no luck. But a few months ago I tried a few new feeds and now it works like a charm. I think most of my earlier problems were from poor datafeeds.

  12. #12
    Full Member
    Join Date
    January 18th, 2005
    Posts
    270
    try adding "raw" after the field name in your WM tag.

    Goal: $10,000/month by 12/04

  13. #13
    Super Sh!t Stirrer SSanf's Avatar
    Join Date
    January 18th, 2005
    Posts
    9,944
    Thank you but it is already a cvs feed saved in excel.

    And, honestly it looks like a great feed. The merchant went all out for me when I requested one.

    It is comma deliminated but webmerge indicates that that is OK, so it really should work. I just don't know. I am very frustrated.

    Mr.Merchant, if you do business in any way what-so-ever with parasites, your products will not be sold on my sites!!
    Affiliates, before you use CJ merchants, Read This! Comments are to be interpreted as opinion unless otherwise noted.

  14. #14
    Affiliate/AM Moonlighter dflsports's Avatar
    Join Date
    January 17th, 2005
    Posts
    874
    Well forward me the feed and I'll try converting it

    Fourthworld might be more helpful in this situation.

  15. #15
    Super Sh!t Stirrer SSanf's Avatar
    Join Date
    January 18th, 2005
    Posts
    9,944
    I know you are kidding about the feed, but if you (or any volunteer) would take a look at the code I wrote, I suspect the problem is more likely to be there.

    I tried to send it to walleye warrior to look at but ABW PM mail changed it so you can't see what I wrote. If you PM me an email address you don't mind to have me know about, I could attatch a text file and you could really help by telling me what stupid dumb mistake I have made.
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR> try adding "raw" after the field name in your WM tag.
    <HR></BLOCKQUOTE>
    I remember something about that before. Maybe that's it. Would "raw" be inside or outside the bracket?


    Mr.Merchant, if you do business in any way what-so-ever with parasites, your products will not be sold on my sites!!
    Affiliates, before you use CJ merchants, Read This! Comments are to be interpreted as opinion unless otherwise noted.

  16. #16
    Full Member
    Join Date
    January 18th, 2005
    Posts
    270
    Inside the brackets, like this [wm-field: keyword raw]

    I hope this helps!

    Goal: $10,000/month by 12/04

  17. #17
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Winterpeg, the Mosquito Capital of Canada
    Posts
    2,299
    I just got back in the office


    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Note because board turned the code into html remove the extra space BEFORE img and BEFORE A href I added to stop the chage in here
    <HR></BLOCKQUOTE>


    Ssanf you can resend, jut put a space in front of the image scr code and a same space in front of the a href it should send it properly
    and you can forward it here again

    I couldn't tell because it was changed but the alt image had it shown as pathID. Was this the right field you should have had in there?
    That may be the name of what you had your field identified as but seemed an odd name for a description or name of some sort you were trying to add

    ...............
    WW

    Make a difference! Support your local Cancer Care providers.

  18. #18
    Super Sh!t Stirrer SSanf's Avatar
    Join Date
    January 18th, 2005
    Posts
    9,944
    Well,
    I have embarrassed myself beyond all hope of recovery!
    I didn't get to try this yesterday but as I was sleeping the night before, I was dreaming about this whole problem with Webmerge and I woke up knowing where I was going wrong! I must tell you it was one of the dumbest mistakes I have ever made. And, NO, I am not going to tell you what it is because it surely is unique in dumbness and no one else will ever duplicate it. I couldn't endure the laughter from this crowd if I told you!!

    Suffice it to say, I can build pages like mad, now. I still have to learn a few things but I have the hang of it.

    Many thanks to all who tried to and offered to help. It is very appreciated knowing that you were willing.

    Now, I will go stand in the corner for a while.

    Mr.Merchant, if you do business in any way what-so-ever with parasites, your products will not be sold on my sites!!
    Affiliates, before you use CJ merchants, Read This! Comments are to be interpreted as opinion unless otherwise noted.I have embarrassed myself beyond all hope of recovery!

  19. #19
    Web Ho - Design B!tch ~Michelle's Avatar
    Join Date
    January 18th, 2005
    Location
    Michigan
    Posts
    2,040
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Leader:

    The heck with WM-ImagePath. Type a few more keystrokes and write the HTML tags yourself, and only have WM do the variable:

    &lt;img src="[WM-Field ImageYouWant]" alt="[WM-Field description]"&gt;

    Presto, image with alt tag showing "description" field contents.
    <HR></BLOCKQUOTE>

    Leader,

    Would this work the same way?

    &lt;img src="[WM-IMAGEPATH: Thumbnail]" alt="[WM-Field description]"&gt;

    ~Michelle
    "All I ask is a chance to prove that money can't make me happy."
    "Work to become, not to acquire." -- Confucius

  20. #20
    ABW Ambassador Mike O's Avatar
    Join Date
    January 18th, 2005
    Location
    Los Angeles area
    Posts
    843
    Hmmm...sounds like the old "editing one file while looking at a different file to see the results" problem. We've *all* done this, right?

    -- Mike

  21. #21
    Resident Genius and Staunch Capitalist Leader's Avatar
    Join Date
    January 18th, 2005
    Location
    Florida
    Posts
    12,817
    @ ~Michelle

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR> Leader,

    Would this work the same way?

    &lt;img src="[WM-IMAGEPATH: Thumbnail]" alt="[WM-Field description]"&gt; <HR></BLOCKQUOTE>

    I've never tried the Imagepath tag, so this is based on figuring and not experience.

    But I would suspect not, because the imagepath tag puts in the "img src" part. So what you'd probably end up with is

    &lt;img src="&lt; *img src="PathToThumbnail" * &gt;" alt="DescriptionData"&gt;

    ie, 2 img src tags in one line. This is because the IMAGEPATH tag makes an img src line of its own, so if you put an img src tag of your own before it, you'd end up with two.

    The end result would most likely be a little red X on your page, with your alt text included.

    Edit, trying to make HTML show.

    Okay it shows now. Ignore the * and spaces in the HTML, those are there to keep Infopop from trying to render the code.

    It's the most wonderful time of the year!~Old Christmas Song

  22. #22
    Web Ho - Design B!tch ~Michelle's Avatar
    Join Date
    January 18th, 2005
    Location
    Michigan
    Posts
    2,040
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Leader:
    @ ~Michelle

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR> Leader,

    Would this work the same way?

    &lt;img src="[WM-IMAGEPATH: Thumbnail]" alt="[WM-Field description]"&gt; <HR></BLOCKQUOTE>

    I've never tried the Imagepath tag, so this is based on figuring and not experience.

    But I would suspect not, because the imagepath tag puts in the "img src" part. So what you'd probably end up with is

    &lt;img src="&lt; *img src="PathToThumbnail" * &gt;" alt="DescriptionData"&gt;

    ie, 2 img src tags in one line. This is because the IMAGEPATH tag makes an img src line of its own, so if you put an img src tag of your own before it, you'd end up with two.

    The end result would most likely be a little red X on your page, with your alt text included.

    Edit, trying to make HTML show.

    Okay it shows now. Ignore the * and spaces in the HTML, those are there to keep Infopop from trying to render the code.

    It's the most wonderful time of the year!~Old Christmas Song<HR></BLOCKQUOTE>

    Gottcha! Thanks!

    ~Michelle
    "All I ask is a chance to prove that money can't make me happy."
    "Work to become, not to acquire." -- Confucius

  23. #23
    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 SSanf:
    Well,
    _I have embarrassed myself beyond all hope of recovery!_
    I didn't get to try this yesterday but as I was sleeping the night before, I was dreaming about this whole problem with Webmerge and I woke up knowing where I was going wrong! I must tell you it was one of the dumbest mistakes I have ever made. And, NO, I am not going to tell you what it is because it surely is unique in dumbness and no one else will ever duplicate it. I couldn't endure the laughter from this crowd if I told you!!

    Suffice it to say, I can build pages like mad, now. I still have to learn a few things but I have the hang of it.

    Many thanks to all who tried to and offered to help. It is very appreciated knowing that you were willing.<HR></BLOCKQUOTE>

    If you're in the States remember that all customers get a full year of toll-free tech support for free: 800-288-5825. Email is preferred, but if you're really frustrated by all means give me a call and we can sort these things out and get you up and running quickly.

    We all make mistakes. Years ago I made a beta build of a product for a client while on morphine recovering from surgery. Thankfully it was just a beta and not the final master. Friends don't let friends build software on morphine.

    Glad to see WebMerge is happily cranking out pages for you. But please do drop me a note or give me a call if you ever find yourself losing sleep trying to solve a problem. That's what I'm here for.

    --
    Richard Gaskin
    Fourth World Media Corporation
    Developer of WebMerge: Publish any database on any site
    ___________________________________________________________
    Ambassador@FourthWorld.com http://www.FourthWorld.com
    Tel: 323-225-3717 AIM: FourthWorldInc

  24. #24
    http and a telephoto
    Join Date
    January 18th, 2005
    Location
    NYC
    Posts
    17,708
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by walleye warrior:
    Here is what I used on an index page detail should be same

    &lt;img src="[WM-Field: Large_Image_URL]" width="95" height="110" border="0" alt="[WM-Field: Description]"&gt;

    use whatever name needed
    mine was description, your field title may be different
    This doesn't create a link, but a picture with an alt textr to it. you will have to play around some more with it
    Quite easy to do an alt tag anyways
    ...............
    WW

    Make a difference! Support your local Cancer Care providers.<HR></BLOCKQUOTE>

    This worked perfectly... Thank you for answering a question I didn't even know I had

    Deborah Carney
    Link up!
    Submit your sites, if you fit the criteria
    http://coolcraftsites.com/directory
    http://coolpetsites.com/petlinks

  25. #25
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Winterpeg, the Mosquito Capital of Canada
    Posts
    2,299
    I am having some problems getting things to work on a new site
    Discovered with codes I mentioned in here it won't work if you select a detail page. Only if used to create an index page can I get the alt to work

    ...............
    WW

    Make a difference! Support your local Cancer Care providers.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. adding alt tag?
    By Squirrel in forum WebMerge (Fourthworld.com)
    Replies: 4
    Last Post: July 1st, 2004, 10:12 PM
  2. Help with ALT tag
    By walton in forum WebMerge (Fourthworld.com)
    Replies: 4
    Last Post: June 14th, 2004, 09:19 PM
  3. Possible to define an image's alt tag from a field?
    By jsegal in forum WebMerge (Fourthworld.com)
    Replies: 1
    Last Post: May 3rd, 2004, 05:27 PM
  4. Ebates in banner "alt" tag
    By erninator in forum Suspicious Activity!
    Replies: 5
    Last Post: December 9th, 2003, 08:02 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
  •