|
From: David M. <dmu...@ni...> - 2000-12-04 15:48:42
|
On Sat, 2 Dec 2000 dat...@us... wrote: > Themes: > Anyone want to try writing a theme? It would be nice to have one > other than Testing, although it wouldn't be necessary. As I was working on a theme, I noticed that the main menu field in the Database had HTML code with it. Basically, the <li><a href=.... for the main menu entries are all hardcoded into the database. That is fine and is how PHPNuke is design too. However, I was wanting a theme with the menu content at the top in a straight line, rather than in a box down the side. By having the HTML code embedded in the database field entry, doesn't that make the code less flexible? Would it be better to have entries in the database such as: Menu_label = 'Home' URL = '/' Menu label = 'Links' URL = '/links.php' etc. That way, all of the HTML coding could be put into templates. Right now it is a simple thing to pull out the main_menu 'code' and put within <td></td> tags. By leaving it this way, it means we will always be limited to having the main menu listed 'down' the page. I guess I could take out all of the <li> tags and that should cause it to be listed across, but I still wonder if removing the HTML from the database would be a good long-term idea. Any thoughts? peace, Dave. -- David Mullens (dmu...@ni...) | ICQ - http://www.mirabilis.com Information Systems Administrator | UIN - 698527 North Indiana Conference - United Methodist Church http://www.nicumc.org |