Creating a FOUR-Tier Website using WebMerge

with files nested into directories and subdirectories

 Beta Edition

The key to creating a four-tier website with files nested into directories and subdirectories is to use forward slash "/". When you tell WM to create a file based on a field name that includes a forward slash "/", WM will create a folder and a file. For example, telling WM to create a file name based on CAT+SUBCAT field that includes "Baby Bedding/Baby Blankets" will results in the creation of a folder called "Baby-Bedding" and a file within that folder called "Baby-Blankets.html.

 

By creating two additional fields that combine information from the Category, Subcategory and SKU fields AND that include the forward slash, you can create a four-tier nested website. In this tutorial these fields are called CAT+SUBCAT and CAT+SUBCAT+SKU, and are shown using the FTC 20-record table.

 

Creating those fields is possible by using the CONCATENATE function within Excel. The formula shown in the table below will create those combined values. This assumes that SKU is column D (not shown below), CATEGORY is column I, and SUBCATEGORY is column J. Create the formula in the first record, then copy the formula down the column. Export your data using your favorite delimiter.

 

I J K L
CATEGORY SUBCATEGORY CAT+SUBCAT CAT+SUBCAT+SKU
  =(I2&"/"&J2) =(I2&"/"&J2&"/"&D2)
Baby Bedding Baby Blankets Baby Bedding/Baby Blankets Baby Bedding/Baby Blankets/BLUECHENILLE
Baby Bedding Osh Kosh Baby Bedding/Osh Kosh Baby Bedding/Osh Kosh/BABYBEARMOBILE
Baby Bedding Osh Kosh Baby Bedding/Osh Kosh Baby Bedding/Osh Kosh/BABYBEARSHEET
Baby Bedding Springs Raggedy Anne and Andy Baby Bedding/Springs Raggedy Anne and Andy Baby Bedding/Springs Raggedy Anne and Andy/RAGGEDYWALL1
Beatrix Potter Beatrix Charms Beatrix Potter/Beatrix Charms Beatrix Potter/Beatrix Charms/BEATRIX100ORNA
Cardew Teapots Cardew Character Heads and More Cardew Teapots/Cardew Character Heads and More Cardew Teapots/Cardew Character Heads and More/CAPTAINPOOH
Cardew Teapots Cardew Disney Betty Teapots Cardew Teapots/Cardew Disney Betty Teapots Cardew Teapots/Cardew Disney Betty Teapots/WINTERPOOHSMAL
Cardew Teapots Cardew Limited Edition Teapots Cardew Teapots/Cardew Limited Edition Teapots Cardew Teapots/Cardew Limited Edition Teapots/CARDISMICAUT
Clayworks Blue Sky Animal Lights Collection Clayworks/Blue Sky Animal Lights Collection Clayworks/Blue Sky Animal Lights Collection/CLAYANLIGDRA
Clayworks Hot Air Baloon Collection Clayworks/Hot Air Baloon Collection Clayworks/Hot Air Baloon Collection/SUNSPOTS
Cow Parade Globes and Accessories Cow Parade/Globes and Accessories Cow Parade/Globes and Accessories/COWPARMOONGL
Curious George Toys and Gifts Curious George/Toys and Gifts Curious George/Toys and Gifts/NEWCURGEORZO1
Curious George Toys and Gifts Curious George/Toys and Gifts Curious George/Toys and Gifts/CURIOUSLAMP
Curious George Toys and Gifts Curious George/Toys and Gifts Curious George/Toys and Gifts/CURIOUSLOVE
Disney Einstein Disney/Einstein Disney/Einstein/ANIMALVIDEO
Dr Seuss Plush and Puppets Dr Seuss/Plush and Puppets Dr Seuss/Plush and Puppets/NEWDRSEUSTHI
Raggedy Ann and Andy Giftware Raggedy Ann and Andy/Giftware Raggedy Ann and Andy/Giftware/NEWRAGANNOFW
Snoopy Baby Snoopy Gifts Snoopy/Baby Snoopy Gifts Snoopy/Baby Snoopy Gifts/BABSNOOPLOVL
Stuffed Animals Medium Size Stuffed Animals/Medium Size Stuffed Animals/Medium Size/LOURANJASFRI
Wildlife Sculptures Wild Animal Waterglobes Wildlife Sculptures/Wild Animal Waterglobes Wildlife Sculptures/Wild Animal Waterglobes/BEMIWA

 

You need to create three settings files with the following configuration. This is not very different from the configuration used to create the four-tier website (but the difference are very important). The template files are the same as those used in the previous four-tier tutorial (almost!). There is a minor change in the Subcategory template in the link back to the Category index. The zipped datafiles provided below include all the templates, settings files and datafiles for this tutorial. Make sure that you don't mix them up with the previous files!

 

Good Luck!

 

WebMerge Tabbed Features

WM Setting File 1

WM Setting File 2

WM Setting File 3

File Name in this tutorial

FTC-folders 4Tier Set1.4ww

FTC-4Tiers 2.4ww

FTC-4Tiers 3.4ww

Sources: Exported File

ftcdatafeed-20records-folders.txt

ftcdatafeed-20records-folders.txt

ftcdatafeed-20records-folders.txt

Index Pages: Index Template

0-INDEX-TEMPLATE.html

0-CATEGORY-TEMPLATE.html

0-SUBCATEGORY-TEMPLATE.html

Index Pages: Generated File Names

Make only one index file

Name based on contents of field CATEGORY

Name based on contents of field CAT+SUBCAT

Detail Pages: Index Template

0-DETAIL-PRODUCT-TEMPLATE.html

0-DETAIL-PRODUCT-TEMPLATE.html

0-DETAIL-PRODUCT-TEMPLATE.html

Detail Pages: Generated File Names

 

Name based on contents of field CATEGORY

Name based on contents of field CAT+SUBCAT

Name based on contents of field CAT+SUBCAT+SKU

Generation: Run other WebMerge Files after this one completes

FTC-folders 4Tier Set2.4ww

FTC-folders 4Tier Set3.4ww

NA

 NA

 

 


Download sample templates and settings files for this tutorial HERE

 

BACK TO THE HOME PAGE