Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    May 22nd, 2007
    Posts
    5
    2 IndexLabel statements between [WM-Record] tags??
    Hi Everybody,

    I'm having no problem using one [WM-IndexLabel ] statement between [WM-Record] tags.... However, I often want to use 2 IndexLabels within a pair of record tags.

    I'm NOT trying to nest one IndexLabel statement within another, or combine them with [WM-If] statements.

    I only want to do something simple like this:


    [WM-Record]

    [WM-IndexLabel: section]

    This is the beginning of section number [WM-Field: section nolink].

    [/WM-IndexLabel]

    [WM-IndexLabel: sub-section]

    This is the beginning of sub-section number [WM-Field: sub-section nolink] .

    [/WM-IndexLabel]

    [/WM-Record]


    Ideas anyone??

    JAY


    **** I really, really don't want to use if/else to trigger these section and sub-section headers! That's because this is only a simplified example, and the real example is more complex, and would not allow if/else statements since WebMerge (apparently) can not deal with nested if/else statements.

  2. #2
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    The WM-IndexLabel tag currently can only be used once per page. It maintains a lot of internal elements to keep track of where it is, and using more than one on a page may yield unpredictable results.

    This is the first time I've seen a request to have more than one per page, and I can see how it would be useful so I'll see what I can do to support that in the future.

    In the meantime, you should be able to get the results you're looking for in two passes: the first run will generate the subsection list in a very simple template, making a new page for each subsection. The second run will use what you have above, replacing the WM-IndexLabel you have for the subsection with an WM-Include tag to pull in the files generated in the first pass.
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  3. #3
    Newbie
    Join Date
    May 22nd, 2007
    Posts
    5
    Thanks 4th World! I'll give it a try!

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. How to use two [WM-Record] tags per page?
    By Happy100 in forum WebMerge (Fourthworld.com)
    Replies: 0
    Last Post: June 11th, 2007, 06:30 AM
  2. 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
  3. Record tags within Record tags?
    By heisje in forum WebMerge (Fourthworld.com)
    Replies: 3
    Last Post: April 25th, 2005, 12:30 AM
  4. Zango does not run by their own statements
    By Allen Nance in forum Suspicious Activity!
    Replies: 7
    Last Post: April 4th, 2005, 08:30 AM
  5. Reporting is down & Affiliate Statements are gone to!
    By ~Michelle in forum Rakuten LinkShare - LS
    Replies: 14
    Last Post: December 26th, 2003, 08:19 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
  •