History of TemplateChangelog
Version 9
TemplateChangelog
plans for template changes in dillenger
Things that need to change sooner or later
tidy up and separate navbar links
use <ul><li> to be in accordance with w3c and wcag recommendations and it also allows for amazing styling possibilities using css- tools --> move to the bottom of the page (???)
- lock / unlock
- export
- tabs --> move to the top of the page
- edit
- history
- sorting --> remain just above the table
tables and their headers
we really need to sort out these friggin table headers and the sort links. it's impossible to debug these endless links in the tpl files with all the conditions.i propose we pass a comma separated list of values to a smarty function, which does the rest
the template stuff:
<?php
...
<th>
{sortlink title="sort this" sortable="foo,bar" sort_mode=$sort_mode}
</th>
...
?>
additional notes:
- title
- the words that should be displayed
- sort_mode
- pass in whatever is in $sort_mode
- default
- if set, will highlight this link when no $sort_mode is set
- sortable
- this is a comma seperated list of sortable items as passed in using $sort_mode (e.g.: use 'title' when $sort_mode can be title_asc or title_desc) - this list is order specific as the first item represents the current link (this will allow highlighting / addition of icons to the currently active sort column)
reducing number of divs
the number of divs used in tikipro is still a bit excessive. perhaps we can find a couple more places where these can removed / changed to something else:<div class="box">
<div class="boxtitle">foo</div>
<div class="boxcontent">bar</div>
</div>
could become:
<div class="box">
<h3>foo</h3>
<p>bar</p>
</div>
would allow for same amount of styling freedom. the only downside is that <p> doesn't allow block elements in xhtml, which means that we have to close off </p> before adding divs and lists