Results 1 to 3 of 3
  1. #1
    Full Member dak142's Avatar
    Join Date
    January 18th, 2005
    Posts
    386
    Ok, here is my problem. When you choose "auto create" for the index page, it generates a page listing of all the detail pages.

    Now I have created a template I would like to use. What I want it to do is make the same long list as it does in "auto create" and start a new index page with each new category, the feed is already sorted by category.

    My template only list the last record of each category, I have to assume it just keeps overwriting the previous record.

    How do I get webmerge to produce the long list of records in a custom template? I am getting very frusterated! Any help would be appreciated...

  2. #2
    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 Dak142:
    Ok, here is my problem. When you choose "auto create" for the index page, it generates a page listing of all the detail pages.

    Now I have created a template I would like to use. What I want it to do is make the same long list as it does in "auto create" and start a new index page with each new category, the feed is already sorted by category.

    My template only list the last record of each category, I have to assume it just keeps overwriting the previous record.

    How do I get webmerge to produce the long list of records in a custom template? <HR></BLOCKQUOTE>

    WebMerge processes records in order, so you'll want to sort on the field you're using for your categories. WebMerge can do that for you: see the Sort option in the Sources tab.

    If it's not a sorting issue is may be that your index template doesn't contain a WM-Record tag to tell the program which portion of the page should be replicated for each record.

    From the Help section on "Preparing Your Templates":
    ---------------------------------------------------
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>
    For index pages, WebMerge will replicate a portion of your template for each record in your source file. You specify the record portion of your index template using the WM-Record tag.

    Any HTML between the [WM-Record] and [/WM-Record] tags will be replicated once for each record. The data within the WM-Record tags can contain other tags, such as WM-Field, so you can pretty much make any layout you want.

    Here's an example of how it works. If your template contains this:

    &lt;body&gt;
    &lt;table border="0" width="400"&gt;
    [WM-Record]
    &lt;tr&gt;
    &lt;td&gt;[WM-Field: Name]&lt;/td&gt;
    &lt;td&gt;[WM-Field: City]&lt;/td&gt;
    &lt;td&gt;[WM-Field: State]&lt;/td&gt;
    &lt;/tr&gt;
    [/WM-Record]
    &lt;/table&gt;
    &lt;/body&gt;

    ...then the HTML WebMerge generates will look something like this:

    &lt;body&gt;
    &lt;table border="0" width="400"&gt;
    &lt;tr&gt;
    &lt;td&gt;Richard Gaskin&lt;/td&gt;
    &lt;td&gt;Los Angeles&lt;/td&gt;
    &lt;td&gt;CA&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;Joe Schmoe&lt;/td&gt;
    &lt;td&gt;Faketown&lt;/td&gt;
    &lt;td&gt;PA&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt; &lt;td&gt;Jane Doe&lt;/td&gt;
    &lt;td&gt;Anytown&lt;/td&gt;
    &lt;td&gt;MO&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;/body&gt;

    If your index template contains WebMerge tags before the [WM-Record] tag or after the [/WM-Record] tag, WebMerge will still process those tags, using the data from the first record of your source file. If you're making multiple index pages, tags outside of the WM-Record tags are processed using the first record in the range for that page.

    <HR></BLOCKQUOTE>
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    16
    Have you already tried this setting in the Index tab:

    Make new Index page when --&gt; value in this Field changes --&gt; &lt;your-category-field&gt;

    Somehow that seems a little too easy so maybe I don't fully understand the problem.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. How can I search, link index page to detail page?
    By rbass in forum WebMerge (Fourthworld.com)
    Replies: 2
    Last Post: August 15th, 2008, 12:33 PM
  2. How to show index numbers on index page?
    By sinpeople in forum WebMerge (Fourthworld.com)
    Replies: 0
    Last Post: June 24th, 2007, 12:06 AM
  3. Making an index page of index pages
    By Pierre (aka Terdef) in forum WebMerge (Fourthworld.com)
    Replies: 0
    Last Post: June 30th, 2005, 05:24 AM
  4. my index page
    By henrylair in forum WebMerge (Fourthworld.com)
    Replies: 6
    Last Post: October 24th, 2004, 12:42 PM
  5. how do I link from a detail page back up to a category/index page?
    By pw3909 in forum WebMerge (Fourthworld.com)
    Replies: 3
    Last Post: May 4th, 2004, 06:00 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
  •