From: Chris N. <pu...@po...> - 2000-12-18 20:18:30
|
OK, Brian finished the getTemplate() changes late last week, and I just now committed my half of the changes, which essentially amount to: * changing all of the template names that had page as part of the name, so "pollBooth-main" is just "main" (changed these in all the mysql dumps [except for Simple Story] and in all the code) * changed slashDisplay to also accept a new "Page" parameter, so you can define the Page to be different from the default page. This is used for menus, currently (menu templates are all in the "menu" page, so the function that calls the menu templates sets Page => 'menu'). * changed slashDisplay to not try to figure out which template to display, but to just pass the name on to the Template object * changed Slash::Display::Provider to get a unique ID for a given name (getTemplate() does the rest of the work), and to use that ID for all caching, lookups, etc. * added a getTemplateByID to MySQL.pm so we could retrieve the correct template by its ID * removed getData() from all .pl files, and exported it from Slash.pm (hi, Brian!) ... note that there is no longer a Slash-data template, but it is now the "data" template in page "misc" * added fix from Steinar Gunderson to make slashDisplay work again under non-Apache processes That about covers it. You must do a reinstall of the code and data at the same time, or it will all come tumbling down. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |