|
PITS /
00638Summary: Simple table have CSS class added to facilitate customisation
Created: 2006-01-09 15:00
Status: Reopened, does not really exist
Category: Feature
From: Simon
Assigned:
Priority: 4
Version: 2.1 beta
OS: All
Description: To facilititate customistion using CSS could the table tag generated for simple tables markup please have a class added to it. eg This will allow easy customisation fo simple tables without affecting complex tables and other tables generated by PmWiki. You can already do this. Just put in ||class=wikisimpletable I think you can use any attributes. Here is an example:
And be sure to check out this link! FormattingSimpleTables thanks, but I don't want all my wiki users to have to know and remember how to do this, I want to do it for them Not only can an author specify a class for the table, but the wiki administrator can also set default styles for simple tables by changing the setting of $BlockMarkups['table'] in local/config.php: $BlockMarkups['table'] = '<table width="50%" class="wikisimpletable">'; --Pm tried this, but it did not work - in config.php $BlockMarkups['table'] = '<table class="wikisimpletable">';in page ---- ||test|| ----html generated <hr /> <div class='vspace'></div><<tr ><td >test</td></tr> a <div class='vspace'></div><hr /> it also appears this change may affect all tables generated, not just those created from simple table markup Thanks. But it would be simpler, and a straightforward change to make this small change available to all PmWiki administrators. Please please please add the CSS hook for simple tables. --Simon |