This is the new feature that produced all the troubles in the previous post.
Inserting a table using textile is really hard. For example, to build this table:
| problem | solution | cost |
|---|---|---|
| I lost my keys | Build a new key for each lost key, change the locks if you are paranoid | a lot of money and time |
| I am tired | Go to bed | some time |
You have to write this:
|_. problem |_. solution |_. cost | | I lost my keys | Build a new key for each lost key, change the locks if you are paranoid | a lot | | I am tired | Go to bed | time |
This isn’t very natural, is it ?
You just write
|table_name|
And you get a nice little table like this:
| title | other title |
|---|---|
| new value |
|
Which you can edit on the page itself. To add/remove rows/columns, there are buttons on the top which appear when you hover them:

To edit text, you just click on the grid:

And if you want a multi-line input field, you shift-click:

And you get a nice list like this when you press “ok” :

Did I mention that you can left-align the table using ”<.” (center wiht ”=.”, right-align with ”>.”) ?
|<.table_name|
The text for the table is stored as json inside a dynamic attribute named after the table (“table_name” => “d_table_name”).
You can display the table from another node by using:
|345.table_name|
For this table magic to work, make sure you load the “tablekit” and “prototype” javascript librairies:
<r:javascripts/>
Gaspard Bucher
comments