WikiDragonfly Themes ⇒ Revamping Dragonfly’s XHTML markup model  

Glossary
The Project
Install
Dragonfly admin interface
Dragonfly public view
Dragonfly Themes
Build local server
Running Dragonfly CVS
Tips and Tricks
Rules & Regulations
v9 Developer's Manual
v10 Developer's manual
6.9: Revamping Dragonfly’s XHTML markup model Parent

This page is intended to describe the steps necessary to revise Dragonfly’s XHTML markup model. Written by Pazu.

The problems with the current markup model:

  1. Old ’90s code designed for version 3 and 4 browsers left over from PHP-Nuke; every PHP file contains nested tables and hardcoded presentation stuff (widths, heights, borders, backgrounds, cellspacings, cellpaddings)
  2. Little meaningful markup; only XHTML validation is claimed (although many errors remain)

What’s Needed

A new markup model that enables complete styling via CSS. This will be a huge project, somewhat akin to the work going on to finally update Slashcode to produce modern markup.

This new markup model will likely be both simplified and more complex.

Simplified because:

Excessive markup with no logical purpose beyond visual formatting will be removed such as nested tables as well as tables in general, for that matter

More complex because:

Just about everything written from PHP will have class and ID attributes, especially any time a variable is written it will be contained in a <span/> at minimum (e.g., <span class="L_LABEL">{L_LABEL}</span>). This gives the CSS themer unprecedented control on both macro and micro levels.

Tables, when they must be used, will employ row and column groups.

Form fields will use legend, label and fieldset elements.

Since the back-end code will know nothing about front-end presentation, PHP and template files must err on the side of greater logical markup so CSS has complete access.

Some images are better written as list-item-image attributes, or even generated content using :before and :after pseudo-elements.

 
Updated: Thursday, September 29, 2005 (01:48:48) by DJMaze
Created:  Thursday, September 22, 2005 (14:06:41) by Pazu

Dedicated Server & Bandwidth Sponsored by DedicatedNOW

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.1381 seconds with 12 DB Queries in 0.069 seconds
Memory Usage: 1.48 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy