SID-00027: Nested Tables: How to insert a table within a Form
| Status: |
Answered |
TWiki version: |
4.2.3 |
Perl version: |
|
| Category: |
CategoryForms |
Server OS: |
|
Last update: |
16 years ago |
Hey everybody,
I'm trying to insert a table within a form (nested table), but I haven't been able to do so.
I saw the following example, and tried to apply the same logic, but not even by copying the exact code did I obtain a nested table.
link:
ComplexTablePluginIdea
Code:
(
Left |
Center |
Right Column )
-
( This is my Table. | For example, it contains | ( this is cool | because ) )
( Containing complex Text. | * This | - )
( | * nice | ( there is | a nested table ) )
( In several paragraphs | * list | )
-
( Then I can insert
| | )
( stuff like this: | This is my verbatim stuff. | )
( |< /verb atim> | )
1) So, is it possible to have a table within a form?
2) Is the ComplexTable approach the best way? Reasons of why it's not working?
3) Is it possible to apply the "edittable" characteristics to the internal table in order to simplify edition?
Thanks in advance,
Note: I'm new at this and have no experience in programming... so I would really appreciate if the response was dummy proof.
-- JoseDavila - 12 Jan 2009
Discussion and Answer
I am not sure I understand your question. Do you want to put a table into a TWikiForms field? This is possible for type textarea, not type text.
Generally, you can nest tables, but only once can be in TWiki format, the other(s) need to be HTML.
Example of an HTML table containing two TWiki tables:
<table cellspacing="10"><tr><td valign="top">
| *Table 1* | *BBB* |
| A2 | B2 |
| A3 | B3 |
</td><td valign="top">
| *Table 2* | *BBB* |
| foo | bar |
| moo | miou |
</td></tr></table>
Resulting in this:
-- PeterThoeny - 12 Jan 2009
Also see BoundedTablePlugin, which lets you do this without HTML.
-- SeanCMorgan - 02 Mar 2009
Or use MediaWikiTablePlugin.
-- TWikiGuest - 04 Mar 2009
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.