Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-10-06 12:04:38

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

[textile] Table, tfoot

Following the instructions at txstyle.org (unless I’m missing the obvious), I’m not able to get the tfoot to appear correctly.

Here’s a test…

|={text-align:left; font-size:120%; font-weight:bold;}. Table 1: Title of table.
|^(header).
|_. First Header |_. Second Header |
|-.
|~(footer).
|\2=. A footer, centered & across two columns |
|-.
| Content Cell | Content Cell |
| Content Cell | Content Cell |

Giving me this…

Table 1: Title of table.
First Header Second Header
~(footer).
A footer, centered & across two columns
Content Cell Content Cell
Content Cell Content Cell

You see the problem? The tfoot is not spanning the columns, and it’s showing up at the top of the tbody, not underneath. If the syntax is not right, then the instructions in txstyle.org aren’t right either. Or, again, am I missing the obvious?

Offline

#2 2014-10-06 12:31:14

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Re: [textile] Table, tfoot

try this:

|={text-align:left; font-size:120%; font-weight:bold;}. Table 1: Title of table.
|^(header).
|_. First Header |_. Second Header |
|~(footer).
|\2=. A footer, centered & across two columns |
|-.
| Content Cell | Content Cell |
| Content Cell | Content Cell |

Offline

#3 2014-10-06 12:41:19

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [textile] Table, tfoot

Ah, yeah, that could be a little more clear in the instructions.

Thanks, Ax!

Offline

#4 2014-10-06 12:44:41

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [textile] Table, tfoot

This is one of those rare instances where I think having a table control in the editor would be very useful. Where you just say how many rows/columns you want hit “Add” and it inserts (or gives you the code to copy/paste) an empty table in Textile format with all the pieces included (title, thead, tfoot, tkitchensink). Then you just remove what you don’t want, which is a lot frickin’ easier in this case than adding what you do.

Plugin!

I don’t use tables often, but even for rare situations, this kind of magic would be worth it. Tables have always been the antithesis of Textile.

Last edited by Destry (2014-10-06 12:48:58)

Offline

#5 2014-10-06 15:03:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: [textile] Table, tfoot

Destry wrote #284570:

This is one of those rare instances where I think having a table control in the editor would be very useful.

Maybe we should persuade Jukka to extend rah_textile_bar:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB