Storyline Primer by Darrren Bleuel Mirrored and modified by DarkPhot'n Ashatar. Click here for the original. You will need to create a file called "dropdown.txt" (or anything you specify to me) and put it in your workspace/data directory. The format is as follows: Name, location Book, location, date Chapter, location, date Section, location Sections are specified by the number of spaces you indent them, and there can be any number of levels, from 0 to somewhere below infinity. Anytime you specify a third field, it is assumed to be a date, which specifies that everything after it, up to the point there is another "date" on the same level, will only appear in the dropdown if the current page loaded is within those dates. The "Name" is any entry whatsoever, and it'll point to the location you specify (specify a relative path). There can be any number of these and they can appear at any level. "Book," "Chapter," and "Section," do not necessarily have to be books, chapters, and sections. They are listed like that to link this implementation to Bryans. Example (Chris Crosby's dropdown): SUPEROSITY HOMEPAGE,/ ARCHIVES BY DATE,/calendar.html SUPEROSITY SUPERSTORE,/store/ PARKEMON ANIMATED SHORT,/parkemon/parkemon.htm ALFDOT: NEWS FOR MORONS,/alfdot/ Superosity,/d/19980301.html,3/1/1998 Superosity Storylines,/d/19980301.html,3/1/1998 Best Friend,/d/19980301.html Marlene's Story,/d/19980308.html [etc...] The above file would exactly recreate the dropdown menu that Chris has right now. However, I suspect Chris never wanted the subsections of the subsections option. Therefore a better choice for him would probably be: SUPEROSITY HOMEPAGE,/ ARCHIVES BY DATE,/calendar.html SUPEROSITY SUPERSTORE,/store/ PARKEMON ANIMATED SHORT,/parkemon/parkemon.htm ALFDOT: NEWS FOR MORONS,/alfdot/ ---------------------,/ Superosity Storylines,/ Best Friend,/d/19980301.html Marlene's Story,/d/19980308.html [etc...] ...which will just create one big list. On the other hand, David Willis has quite a lot of comics and storylines and he uses all the sections and subsections and stuff. His file would look like this (note that because he uses commas, some entries must be quoted): "Roomies: Year One, not by Frank Miller",/d/19970908.html,9/8/1997 Fall,/d/19970908.html,9/8/1997 Moving In,/d/19970908.html Psy-cute-ic,/d/19970917.html Alien Abductions,/d/19971017.html She's Pristine!,/d/19971027.html Optimus Prime,/d/19971103.html Obligatory Flashback Sequence,/d/19971110.html #@!! Christmas Spirit,/d/19971208.html Spring,/d/19971017.html,10/17/1997 Robo-Vac,/d/19971017.html Titanic,/d/19971017.html Don't Mess with a Man and his Bicycle,/d/19980302.html [etc...] Why did I do it this way? Maximum flexability. By separating the "date" limits from the filenames, you could potentially, say, put in a special "April Fool's" page into the dropdown menu in April, without it having to point to the April 1 daily page. Conceivably, you ought to be able to make a "weekly dropdown" page, too, but I'd have to assign it a different tag and a different file. Just let me know if that's something you'd want. Also, the "dates" on the Book/Chapter lines can either be in 2/24/2000 format, or 20000224 format. Maybe I can make a special "Brit" version for John and Alan that uses 24/2/2000 format... :) |