I tried to put html tables on a page. It works great, however is there a better way of doing this without (so many) html tags.
A user without HTML knowledge should be able to change the text from time to time.

Comments

nevets’s picture

There are at three pieces to the puzzle, the content, how it is entered and how it is displayed. Currently it sounds like you are using a page or story node to display content layed out in a table. If you want people to be able to edit the content (text) without seeing the table (layout) you need to seperate the content from the display such that the user can enter/edit data without regard to the display and then you need to be able to pull the pieces together for display.

cog.rusty’s picture

You may find one of these module useful

http://drupal.org/project/tables
http://drupal.org/project/tablemanager

The idea is to enter the values using an easy markup and then a filter will transform it to a table for display.

cendion’s picture

I have tried to use the function in TinyMCE for creating tables but that didn´t work very well. I mean I can see that the tables are being created in the TinyMCE-mode but at submit they gets filtered out.

Any one knows why?

[edit]
Ahh, now I know why..
Just add the input formats for tables and you're set. Be aware that TinyMCE is a bit buggy in this area, the cells doesn´t always line up right when trying to add text.

marcepan’s picture

Somehow the the tabels disapear when I click submit (with HTML)

markhope’s picture

Check that the input format is HTML, either under the node editing form or by setting the default input under admin/filters (input formats)

Mark

marcepan’s picture

it does not work. hm?