Importing Category Trees
Top  Previous  Next


You can import a category "tree" in 2 ways ...

1You can upload a text file (in ascii mode, if you FTP it) into the "data/hyperseek/global" directory.  
Any files uploaded into this directory will be listed in the drop down list on the import form (shown below).  
 
2.You may alternatively paste in a list of categories into the form below.  

Generally, if you are importing a lot (ie: hundreds/thousands), it's best to use the file method.

In either case, your list of categories to import must be properly defined

A properly defined list of categories describes the categories as a "growing" list.
You must declare each category in the tree, in order, for them to properly import into the system.

Here is a properly defined category tree, ready for import:  
 
Business  
Business:Services  
Business:Services:Communication  
Business:Services:Communication:Telephone  
Business:Services:Communication:Telephones:Wireless  
Business:Services:Networking  
Business:Services:Networking:Wiring  
Business:Services:Networking:Wiring:Installers  
Business:Services:Networking:Wiring:Suppliers  
 
Here is an improperly defined category tree, which will fail when importing.  
 
Business:Services:Communication:Telephones:Wireless  
Business:Services:Networking:Wiring  
Business:Services:Networking:Wiring:Installers  
Business:Services:Networking:Wiring:Suppliers  
 
If you improperly define your category import list, as in the above example in red, your imported categories will be put into the system, but they'll be unable to be navigated, as they would not fall properly into any pre-defined "tree".  

When importing, the categories are added onto the current "level". Note that any category names that the import program finds that already exist are skipped.

So, if you started at the "Root" level, and run a category import of the above "good" list, you'll have one new Top Level category, "Business", and then the drill down categories beneath it.

If instead, as in the picture below, you started the import from inside of another category, the categories that you import will be added starting at the current category. In this example, we're in the "Computer" category, so an import of that good list would result in a subcategory called "Business" under the computer category, and would branch out from there ... ie:

Computer:Business  
Computer:Business:Services  
Computer:Business:Services:Communication  
Computer:Business:Services:Communication:Telephone  
Computer:Business:Services:Communication:Telephones:Wireless  
Computer:Business:Services:Networking  
Computer:Business:Services:Networking:Wiring  
Computer:Business:Services:Networking:Wiring:Installers  
Computer:Business:Services:Networking:Wiring:Suppliers  



category-import