Mailing List Archive

In need of <thead> and <tbody> in wiki tables
Hi,

I'm on Trac 1.2.3 (sorry for the ancient version), and need to have
HTML tables with a "proper" <thead> and <tbody> to apply the jQuery
tablesorter plugin. The normal wiki table syntax, owever, produces
simple tables with only <tr> and <td>. Any trick to get what I need?

TIA!

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/20221005184457.Horde.RAlgzUSv1LM3HP9ppBi3ezb%40webmail.in-berlin.de.
Re: In need of <thead> and <tbody> in wiki tables [ In reply to ]
On Wednesday, October 5, 2022 at 9:45:06 AM UTC-7 Martin wrote:

> Hi,
>
> I'm on Trac 1.2.3 (sorry for the ancient version), and need to have
> HTML tables with a "proper" <thead> and <tbody> to apply the jQuery
> tablesorter plugin. The normal wiki table syntax, owever, produces
> simple tables with only <tr> and <td>. Any trick to get what I need?
>
> TIA!
>

You can add JavaScript to be executed on every page that modifies the
tables to meet your needs. I think it can be done similar to this example
for adding CSS on every page:
https://trac.edgewall.org/wiki/1.2/TracInterfaceCustomization#SiteAppearance


--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/3b040274-9eff-4451-ab58-1abe71b4242fn%40googlegroups.com.
Re: Re: In need of <thead> and <tbody> in wiki tables [ In reply to ]
On 2022-10-05 11:49, RjOllos wrote:
> You can add JavaScript to be executed on every page that modifies the tables to meet your needs.

Some easy/ugly lines of jQuery helped, indeed. Thanks for the hint!

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/87y1tt6hca.fsf%40fama.lan.