How to re-Tabulize an existing table

ReTabulizing an Existing Table

Take a table that is already in the post - whether Tabulizer built it or not - and rebuild it with a different ruleset.

What it is for

ReTabulize answers two quite different complaints with one mechanism.

1

A Tabulizer table you want to restyle

You built a static table last month in Elemental 2 Blue and the page has been redesigned around orange. Rather than deleting it and starting again, point ReTabulize at it: the cells are read back, a new ruleset is applied, and the table is replaced where it stands.

2

A table Tabulizer never touched

An old post has a plain HTML table someone pasted in years ago. ReTabulize will adopt it - read its cells, apply a ruleset, and hand back a styled table with whatever sorting, filtering and paging the ruleset provides. This is the quickest way to bring legacy content up to standard.

It works on a table, not on a data source. If the block holds a {tabulizer:data_source[…]} tag rather than a table, there is nothing here to reTabulize - change the data source itself instead.

Getting there

Open the post, click into the Tabulizer Table block that holds the table, and press Open Tabulizer Wizard - the button stays above the block's contents for exactly this purpose. On step 1 choose ReTabulize Existing Table. Tutorial 1 covers finding the block and the mode cards in more detail.

ReTabulize looks only inside the block whose wizard you opened - not the whole post. If a post holds three Tabulizer Table blocks, each one offers you its own table and nothing else, so open the wizard from the block that holds the table you mean to rebuild. It cannot reach a table in a widget, in another post, or on a page you have not opened either.

Step 2 - pick the table

The wizard scans that block and lists what it finds, each entry numbered and labelled with the table's id.

Step 2 of the Tabulizer wizard in ReTabulize mode, headed Step 2 Select Existing Table, with a Table drop-down showing the single entry Table 1 followed by its id attribute.

A block built by the wizard holds one table, so usually the choice makes itself. More than one appears only if you pasted extra tables into the block by hand; then the id is what tells them apart, and an id generated by Tabulizer is unique.

If the list is empty, that block has no HTML table in it. The usual reasons are that you opened the wizard from the wrong block, or that what looks like a table is a data source tag - which renders as a table only on the published page.

Step 3 - nothing to do

Step 3 of the Tabulizer wizard in ReTabulize mode, headed Step 3 Existing Table Data, with a single line of explanation saying the selected HTML table will be converted to CSV on the server and processed through the selected ruleset, and no input fields.

This step has no fields. It tells you what is about to happen: the table you chose is converted to CSV on the server and run through the ruleset you are about to pick.

So ReTabulize on WordPress restyles - it does not give you the data back to edit. If you want to change a value as well, edit the cell directly in the block, either before you reTabulize or afterwards. The block's contents are editable text, so it is a two-second job either way.

Only the text of each cell survives the round trip. Formatting inside a cell - a bolded word, a link, an image - is not carried across, because the cells are being rebuilt from their text.

Step 4 - the new ruleset

Exactly the same step as for a new static table: choose a Ruleset archive, then a Ruleset from inside it. This is where the restyling actually happens, and nothing stops you from picking the same ruleset the table already had - that is the normal choice when you are only refreshing a table after editing its cells.

Step 5 - confirm, and press Replace

Step 5 of the Tabulizer wizard in ReTabulize mode, headed Step 5 Confirm, listing Mode static_retabulize and the Elemental 2 Orange ruleset identifiers, with Cancel, Back and a Replace button at the foot of the dialog.

The button on this step is Replace, not Insert - the one visible difference in the wizard's footer, and a fair warning of what is about to happen. The old table and its stylesheet marker go; the new table and a fresh marker take their place.

Replaced, not appended. A table that was reTabulized is still one table, in the block it always occupied - the post does not grow a second copy, and no extra block is created.

Common questions

Can I reTabulize a table that Tabulizer did not create?

Yes, and it is one of the best uses for this mode. Any HTML table in the post can be adopted.

Does it change the data source?

There is no data source involved. This mode works on HTML in the post and creates nothing under Tabulizer › Data Sources.

Can I reTabulize a dynamic table?

No. A dynamic table is a tag, not a table, and there are no cells in the editor to read. To restyle one, edit the data source and change its ruleset - that updates every post using it.

I lost the bold text in a cell.

Expected - cells are rebuilt from their text. Apply the formatting again in the block afterwards, or avoid reTabulizing tables you have hand-formatted.

Can I edit the figures at the same time?

Not inside the wizard on WordPress. Edit the cells in the block first, then reTabulize to restyle - the wizard reads whatever the cells currently say.

I picked the wrong table.

Use Back before replacing. If you have already replaced, the editor's own undo steps it back, and WordPress keeps revisions of the post.

Bring an old table up to date

Open the post, click Open Tabulizer Wizard on the block, and choose ReTabulize Existing Table.

Back to the Knowledge Base