Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    January 18th, 2005
    Posts
    184
    I am specifically talking about using WM-Record to create a table.

    WM-Record sometimes works right, alot of the time it doesn't.

    Why doesn't it close the table tag? It will also randomly insert an extra <tr> or such and still not close the table tag.

    Is there a way to use 100% on the record tag? I've tried '100%', but doesn't work correctly.

    What about: utilizing wm-record tag around say a <tr> but having 4 columns in the row. Is it possible to produce 4 different products without them being the same ones with this method?

    To have control of the table output I am forced to have 1 product per row. Is there another way?

  2. #2
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    I don't try and use the record tag to create a table. I use good old fashioned html, that way it looks like how I want it.

    -----------------------------
    Scott

    Have a nice day unless you have other plans

  3. #3
    Member
    Join Date
    January 18th, 2005
    Posts
    184
    Yeh but even with html you can only do 1 row at a time.

    without wm-record creating the table, you can't make it look like:
    a b c
    d e f

    you have to do:
    a
    b
    c
    d
    e
    f

  4. #4
    Super Sh!t Stirrer SSanf's Avatar
    Join Date
    January 18th, 2005
    Posts
    9,944
    You can set it for as many columns as you want.

    [ WM-Record cols=3 cellspacing="10" align="center"
    cellpadding="0" ]

    Change the 3 to whatever. This centers the table on the page.

    I can't seem to get the contents in the columns to center, however.

    My work around is that I make the columns center with Multi-Replace after the pages are built.


    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
    Member
    Join Date
    January 18th, 2005
    Posts
    184
    Sorry, I don't think you or Nature Boy understand what I'm saying.

    Even if you do use the html you posted for some reason it "sometimes" closes the table and "sometimes" does not. Sometimes it adds an extra <tr> and then doesn't close it or close the table with </table>.

    The centering is quite easy with a <div align"left" tag inside the wm-record.

    Now if you can do this:
    <table>
    [ WM-Record]
    <tr>
    <td>
    prod 1
    </td>
    <td>
    prod 2
    </td>
    <td>
    prod 3
    </td>
    </tr>
    [ /WM-Record]
    </table>

    I'll buy you a sandwich.

  6. #6
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    I'm not sure if this would work or not, but here goes...

    In your datafeed, lets say you want to display 4 items per line. Create a new column and put <tr> in the first row, fifth row, ninth, etc. Next, create a 2nd new column and put </tr> in every fouth row. Like so...

    Dangit, it wouldn't let me post any HTML

    In your template, add the [WM-Field: TR_Column] for <tr> after the [WM-Record]. Then add [WM-Field: /TR_Column] for </tr> to the end of your template, before [/WM-Record]. Since there is only data in two of those field, those SHOULD be the only two times those columns will do anything. Example:
    <pre class="ip-ubbcode-code-pre">
    &lt;TABLE&gt;
    [WM-Record]
    [WM-Field:TR_Column]
    &lt;TD&gt;[WM-Field: Product_Image]&lt;/TD&gt;
    [WM-Field:/TR_Column]
    [/WM-Record]
    &lt;/TABLE&gt;
    </pre>
    Hope this works and helps.

  7. #7
    Member
    Join Date
    January 18th, 2005
    Posts
    184
    Although a good idea...it doesn't fortell what HTML WM-Record would spit out at the end of its page creation.

    Sometimes it looks like this:
    &lt;/tr&gt;&lt;/tr&gt;
    &lt;td&gt;
    &lt;p&gt;
    &lt;/td&gt;

    So with your rec. it would like this:
    &lt;/tr&gt;
    &lt;/tr&gt;&lt;/tr&gt;
    &lt;td&gt;
    &lt;p&gt;
    &lt;/td&gt;

    It rests on WM-Record what it feels like closing the table with.

  8. #8
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    I just tried this with one of the feeds I got today, and after throwing in a few raw elements to the fields, it came out looking pretty good. As a matter a fact, the results looked eerily like Akiva's PSC. hmmmm...

    -----------------------------
    Scott

    Have a nice day unless you have other plans

  9. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. How to include next record field with present record info?
    By tvsmvp in forum WebMerge (Fourthworld.com)
    Replies: 6
    Last Post: August 18th, 2006, 10:48 AM
  2. Creating a template that create a table for each product
    By jerastraub in forum WebMerge (Fourthworld.com)
    Replies: 1
    Last Post: August 5th, 2004, 04:42 PM
  3. NEw cj record!!!!!!! new network earnings record.
    By jc101 in forum Commission Junction - CJ
    Replies: 8
    Last Post: May 7th, 2004, 02:04 AM
  4. Where is the Beef?
    By freesurfusa in forum Midnight Cafe'
    Replies: 11
    Last Post: March 3rd, 2002, 09:58 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
  •