|
From: Jaime <ja...@sn...> - 2000-12-11 20:51:42
|
I just committed a lot of new code to the CVS server in the last 24 hours. The following is a list of what I can remember doing. :) The API for themes has been improved. You can now use menu-line.tmpl to define the look of a single "line" in the menu. Note that a line could be missing <BR>s and <LI>s and the like, allowing a theme to use a horizontal menu if desired. You can also use menu-pre.tmpl and menu-post.tmpl to insert additional HTML and text before and after the menu. The theme docs are not yet updated for this. The Testing theme, is updated and can be used for reference. The main menu's contents may include PHP commands. This includes sessLink() function calls, conditionals, and more. By default, the menu is now built out of basic sessLink() calls. One menu command even includes an if statement, allowing it to be a Login/Logout toggle. The database structure and contents have changed again. The MySQL file is updated, but the PostgreSQL file is not. Can anyone out there do this for me? I'm not familiar with PostgreSQL. Logout abilities are now part of Nucleus. The new default database contents include a Logout command if the user is logged in. A new theme was contributed by one of the people on this list and added to the CVS server. Unfortunately, within a few hours it became out of date. If that theme's author is willing to re-write it, I would be grateful and would update the CVS server's copy. In fact, it was this theme's author who pointed out that the old theme API couldn't handle horizontal menus. So I guess that you can say, "Be careful what you ask for." ;) The sessLink() function was changed slightly. It still behaves the same, but the second and third parameters changed places. All code in the CVS server (that I know of) is updated to reflect this. This change also makes use of sessLink() a little easier. This will be handy for people who try to change their main menu. :) I added a FAQ module. Its extremely basic. All it does is include() config/faq.txt. But it was useful for helping me to test the new main menu system. If anyone would like to suggest things for it, I'm open to suggestions. Otherwise, it will remain a simple include() system for now. Eventually it may become a webmaster-edit-able system for a complex FAQ. But I want to get the weblog and links directory working first. Jaime |