[pmwiki-users] Adding attributes to rows in table markup

Petko Yotov 5ko at 5ko.fr
Sun Mar 14 08:42:40 CDT 2010


On Saturday 13 March 2010 15:15:48, DaveG wrote :
> Is there a way to add attributes to a *row* with the table markup?

It is possible apply WikiStyles to a table row, that includes setting the id= 
attribute.

Place in config.php:

  $WikiStyleApply['row'] = 'tr';

Then, in an advanced table, you can have:

  (:cellnr:) %apply=row id=myid bgcolor=pink% cell content

And also in a simple table:
  || border=1
  || %apply=row id=myrowid% 1 || 2 || 3 || 4 ||

Note, the %apply=row...% WikiStyle should be on the same line as (:cellnr:)

Petko



More information about the pmwiki-users mailing list