Results 1 to 11 of 11
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2
    I'm learning a lot at this forum but I can't find the answer to the following.

    My Index page is in a simple, tabular layout to display the info about items and one to five thumbnails showing different views of the items. I was able, with hints gained here to get the following to work the way I wanted:

    <td width="110">[WM-If: Field: Image_Path_4: <> ""]<img src="[WM-Field: Image_Path_4: noLink]" width="110" border="0">[/WM-If]</td>

    I wrote support asking for a workaround to the noLink issue, explaining all I need to display on the Detail pages are the larger versions of the thumbnails. They wrote back with the following:

    Just include the link in your template:

    <a href="[WM-Field: Image_Path_4: raw noLink]>
    <img src="[WM-Field: Image_Path_4: noLink]" width="110"
    border="0"></a>


    but didn't tell me how or where to include it, or if it should replace something else. Could someone give me a (big) break here and help with some more specific information.

    Thanks,

    kb

  2. #2
    Full Member
    Join Date
    January 18th, 2005
    Posts
    413
    If I understand correctly, you do NOT want to create a separate detailed page with a larger image. Rather you simply want to include a link to the full size view of the image from your index page.

    If so, then try this:
    <td width="110">[WM-If: Field: Image_Path_4: <> ""]
    <a href="[WM-Field: Image_Path_4: raw noLink]>
    <img src="[WM-Field: Image_Path_4: noLink]" width="110" border="0">[/WM-If]</td>

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2
    Sorry if I left that impression but no, I DO need the details page. I had the "noLink" in the original part because it was my understanding from other q&a in this forum that the noLink had to be included in order to get the image to display (and resize to thumbnail size) on the Index page. This was my experience also. If this is the wrong approch please let me know.

    This is a one tier deal: the INDEX page to display the item name, condition, price, description and thumbnails of one to five images of the item - all on one row. Each individual thumbnail needs to display and then LINK to its own DETAILS page. The DETAILS page will display only the full sized image of the thumbnail. Users can take a look at the larger image and return to the Index.

    Hope this is clear, as I told Support, I'm in the knows-just-enough-to-be-dangerous category.

    kb

  4. #4
    Full Member
    Join Date
    January 18th, 2005
    Posts
    413
    Have you looked at the WM tutorial templates that I have provided online?

    I think that what I call a two-tier or three-tier setup will provide the coding elements that you need, e.g., the image codes between SubCategory Template to Detail Template.

    Take a look at http://www.creativenutsandbolts.com/webmerge/

  5. #5
    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 KTJB:
    I'm learning a lot at this forum but I can't find the answer to the following.

    My Index page is in a simple, tabular layout to display the info about items and one to five thumbnails showing different views of the items. I was able, with hints gained here to get the following to work the way I wanted:

    &lt;td width="110"&gt;[WM-If: Field: Image_Path_4: &lt;&gt; ""]&lt;img src="[WM-Field: Image_Path_4: noLink]" width="110" border="0"&gt;[/WM-If]&lt;/td&gt;

    I wrote support asking for a workaround to the noLink issue, explaining all I need to display on the Detail pages are the larger versions of the thumbnails. They wrote back with the following:

    Just include the link in your template:

    &lt;a href="[WM-Field: Image_Path_4: raw noLink]&gt;
    &lt;img src="[WM-Field: Image_Path_4: noLink]" width="110"
    border="0"&gt;&lt;/a&gt;


    but didn't tell me how or where to include it, or if it should replace something else. Could someone give me a (big) break here and help with some more specific information. <HR></BLOCKQUOTE>

    You can use a vaiant of the snippet I sent in each place where your template currently has IMG tags. Looking at the differences between my snippet and yours you'll see that yours is missing the surrounding &lt;a&gt; tag, which is needed to provide an href to the image file.
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  6. #6
    Full Member Sophist's Avatar
    Join Date
    January 18th, 2005
    Location
    Beautiful British Columbia
    Posts
    337
    I am not getting it.

    Will this work with the indexlabel tag?

    I have a feed that doesn't have a thumbnail image and the images it does have are too large for the category and subcategory pages.

    I use this code to create my category and subcategory pages.

    [WM-RECORD: cols=3 width=575][WM-INDEXLABEL: subcategory]
    [WM-IMAGEPATH: thumbnail raw]
    [WM-Field: subcategory]
    [/WM-INDEXLABEL][/WM-RECORD]

    I think I need someone to dumb it down for me a bit.
    <b><a href="http://5startravelgroup.com" rel="nofollow">5 Star Travel Group</a> - Luxury Travel Memberships</b>
    Lifetime membership pays <b>$1000 commission on two levels</b>
    Very easy to sell, unbelievably lucrative! <a href="http://5startravelgroup.com/contact.php">Contact me</a> for more information.

  7. #7
    ABW Ambassador ktmkiddy's Avatar
    Join Date
    January 18th, 2005
    Posts
    509
    Hi all,

    I'm suffering same problem as Dave.

    I just need to reduce in size the image from my merchants feed. Everything else works fine...I just want for example a 100 pixel wide image.

    Please help us both,

    Malc - www.easyadverts.co.uk
    Adverts

  8. #8
    Full Member
    Join Date
    January 18th, 2005
    Posts
    413
    =============
    YOU TRIED IT THIS WAY:
    [WM-RECORD: cols=3 width=575][WM-INDEXLABEL: subcategory]
    [WM-IMAGEPATH: thumbnail raw]
    [WM-Field: subcategory]
    [/WM-INDEXLABEL][/WM-RECORD]
    =============

    This might look a bit convoluted, but try it this way:

    [WM-RECORD: cols=3 width=575][WM-INDEXLABEL: subcategory]
    &lt;img src="[WM-FIELD: thumbnail nolink]" width="110"&gt;&lt;/a&gt;
    [WM-Field: subcategory]
    [/WM-INDEXLABEL][/WM-RECORD]

    Constructing the image link from a WM-Field tag allows you to include the width attribute.

  9. #9
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Looks like Frank's got it.

    The key here is to review the description of the WM-ImagePath tag, noting that it's a convenient way of inserting images but the trade-off for that convenience is that it writes only the simplest of IMG tags, without options for sizing, etc.

    In HTML, IMG tags are written like this:

    &lt;img src="myimage.gif"&gt;

    A linked image, like any other linked element, is enclosed within anchor tags, with the href attribute describing the link target - to link to a full-sized image from a 100x100 thumbnail:

    &lt;a href="myimage.gif"&gt;
    &lt;img src="myimge.gif" width="100" height="100"&gt;
    &lt;/a&gt;

    So if your database contains a field for the image path, you can use the WM-Field tag to insert that data, being sure to add the nolink attribute since you're writing the link yourself (that is, if it's on an index page; links are not automatically written in detail pages):

    &lt;a href="[WM-Field: imagePathField nolink]"&gt;
    &lt;img src="[WM-Field: imagePathField nolink] width="100" height="100"&gt;
    &lt;/a&gt;

    If that doesn't do it, please show me what an example of what you're looking for looks like in plain HTML. Then describe where you want WebMerge to insert data. With that in hand I should be able to understand what you're after and offer a solution.
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  10. #10
    Full Member Sophist's Avatar
    Join Date
    January 18th, 2005
    Location
    Beautiful British Columbia
    Posts
    337
    I got mine to work.

    Thanks for the help. This is the code I ended up using.

    ~~~~
    [WM-RECORD: cols=3 width=575][WM-INDEXLABEL: subcategory]
    &lt;a href="[WM-Field: subcategory replace(" ","-";"&","-") nolink].html"&gt;&lt;img src="[WM-FIELD: smimage nolink]" alt="[WM-FIELD: name nolink]" width="100" border="0"&gt;&lt;/a&gt;
    [WM-Field: subcategory] [/WM-INDEXLABEL][/WM-RECORD]

    I just keep playing around until I get it. Boy, when I think back to when I first looked at a datafeed.

    Thanks again
    <b><a href="http://5startravelgroup.com" rel="nofollow">5 Star Travel Group</a> - Luxury Travel Memberships</b>
    Lifetime membership pays <b>$1000 commission on two levels</b>
    Very easy to sell, unbelievably lucrative! <a href="http://5startravelgroup.com/contact.php">Contact me</a> for more information.

  11. #11
    Full Member
    Join Date
    January 18th, 2005
    Posts
    413
    Very impressive!

    I agree that "playing around" until you get it to work is a key to mastering WebMerge.

  12. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. link vs nolink
    By FourthWorld in forum WebMerge (Fourthworld.com)
    Replies: 3
    Last Post: November 14th, 2004, 11:33 AM
  2. Sports Authority Deep Linking Images?
    By jarec2001 in forum Commission Junction - CJ
    Replies: 1
    Last Post: August 14th, 2003, 11:50 AM

Posting Permissions

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