Tripmon has very graciously supplied with mx-Directory a file named MXDIR_cats.sql containing sample categories to be inserted into the database. Here are some sample lines of code from the file showing a few top-level categories and a few sub-categories:
INSERT INTO XSM_xdir_cat VALUES (154, 0, 'Art and Collectibes', 'http://');
INSERT INTO XSM_xdir_cat VALUES (155, 0, 'Automotive', 'http://');
INSERT INTO XSM_xdir_cat VALUES (156, 0, 'Community', 'http://');
INSERT INTO XSM_xdir_cat VALUES (157, 0, 'Computers and Internet', 'http://');
INSERT INTO XSM_xdir_cat VALUES (175, 154, 'Antiques', '');
INSERT INTO XSM_xdir_cat VALUES (176, 154, 'Artists', '');
INSERT INTO XSM_xdir_cat VALUES (177, 154, 'Crafts and Hobbies', '');
INSERT INTO XSM_xdir_cat VALUES (178, 154, 'Fine Art', '');
INSERT INTO XSM_xdir_cat VALUES (179, 154, 'Fine Jewelry', '');
I would like to change this file to contain my category list, and I am wondering what the rules are concerning the numbering sequence.
For example, Tripmon begins with number 154 for the first main category. Is there a reason for this particular number?
Also, could I number the main categories like 160, 170, 180, etc., so as to leave room to insert other categories later if necessary should I think of something to add before the file is finalized? Or must they be consecutive right from the start?
Also, could the numbering system contain, say, 4 digits instead of 3?
And, if there are third level categories, what would the syntax be?
Any suggestions as to how best to layout this file will be very much appreciated.
JFM