Hi,

I am in the process to build my first WebMerge-build website. I plan to build a 4-tier page. The problem is, that the index is not generated as I expected. The main index is fine, but subsequent index, reached by klicking the items of the main index only contain one entry each, although they should contain more than one enty.


The structure of my Source file is as follows:

data.txt

Country Region City Company

Country-1 Region-1 City-1 Company-1
Country-1 Region-1 City-1 Company-2
Country-1 Region-1 City-2 Company-3
Country-1 Region-1 City-2 Company-4
Country-1 Region-2 City-3 Company-5
Country-1 Region-2 City-3 Company-6
Country-1 Region-2 City-4 Company-7
Country-1 Region-2 City-4 Company-8
Country-2 Region-3 City-5 Company-9
Country-2 Region-3 City-5 Company-10
Country-2 Region-3 City-6 Company-11
Country-2 Region-3 City-6 Company-12
Country-2 Region-4 City-7 Company-13
Country-2 Region-4 City-7 Company-14
Country-2 Region-4 City-8 Company-15
Country-2 Region-4 City-8 Company-16

So there should be 2 Countries in the main index (works when I build pages with WM)
Each of these 2 links to a Country should lead to a page with 2 links to different Regions (does not work, there is always only one link displayed)
Each of the Region link should lead to a page with 2 links to different Cities (does not work, there is always only one link displayed)
Each City link should lead to the first detail page for that City with one Company and this detail page should contain links to the next and to previous Companies in the list of the Source file data.txt (this does work)
In addition the detail pages should contain a link to the main index page e.g. the page with the list of Countries (this does not work, this link is even not displayed on the generated pages).



I used the follwoing scheme for my templates:

Index-templates:

template_country.txt

[WM-Record]
[WM-IndexLabel: Country]
[WM-Field: Country]<br>
[/WM-IndexLabel]
[/WM-Record]

template_region.txt

[WM-Record]
[WM-IndexLabel: Region]
[WM-Field: Region]<br>
[/WM-IndexLabel]
[/WM-Record]

template-city.txt

[WM-Record]
[WM-IndexLabel: City]
[WM-Field: City]<br>
[/WM-IndexLabel]
[/WM-Record]


Detail-tamplate:

template-company.txt

Country: [WM-Field: Country]<br>
Region: [WM-Field: Region]<br>
City: [WM-Field: City]<br>
Company Name: [WM-Field: Company]</p>
[WM-LinkPrevious] previous compnay [/WM-LinkPrevious]<br>
[WM-LinkIndexFirst] Index[/WM-LinkIndexFirst] <br>
[WM-LinkNext] next company [/WM-LinkNext]</p>


The 3 WM-settings files are as follows:

1. Settings-file:

1-country+region.4ww
Tab Sources:
data.txt

Tab Index Pages:
Index-Template
Use one template file for Index page: template_country.txt
Generated File Names
Base name: index-country.html
Make only one Index page

Tab Detail Pages:
Detail Template
Use one template file for Index page: template_company.txt
Generated File Names
Name based on contents of field: Region

Tab Generation:
Run other WebMerge files after this one completes
2-region+city.4ww
3-city+company.4ww


2. Settings-file:

2-region+city.4ww
Tab Sources:
data.txt

Tab Index Pages:
Index-Template
Use one template file for Index page: template_region.txt
Generated File Names
Name based on contents of field: Region

Tab Detail Pages:
Detail Template
Use one template file for Index page: template_company.txt
Generated File Names
Name based on contents of field: City

Tab Generation:
----

3. Settings-file:

3-city+company.4ww
Tab Sources:
data.txt

Tab Index Pages:
Index-Template
Use one template file for Index page: template_city.txt
Generated File Names
Name based on contents of field: City

Tab Detail Pages:
Detail Template
Use one template file for Index page: template_company.txt
Generated File Names
Name based on contents of field: Company

Tab Generation:
----



I hope somebody can help me. If requested, I will be happy to provide the data, template and settings-files.

Norbert