Datatable

Links
Developer Network
Name Datatable
Author(s) Mike Cannon-Brookes, Jens Schumacher
Priority High
Description Allows for creating a dynamic table of data with forms for entry, predefined content types and configurable display.

Example

{dataform:mode=form|inline}
Name
URL (hidden)
Company (link URL)
Organisation type (select Non-Profit, University, Corporation)
Yes / No (checkbox)
{dataform}

Mode determines whether the entry form is inline (ie the last row in the table) or a form (ie a shown/hidden form above the table). Default is form.

Options are

Option Description
hidden field is not shown in the result table - must be first in the list (ie "(hidden textarea)" is valid, "(textarea hidden)" is not)
link A field is an ahref to field A. if A is not entered, hyperlink the field itself
checkbox field is entered as a checkbox
select A, B, C select list with options A, B, C
textarea field is entered in a text area

Other requirements

  • All entries in the dataform should be searchable.
  • All data should be revision controlled. 

Labels

confluence confluence Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Sep 26, 2006

    David Peterson [CustomWare] says:

    Just curious as to how this is an improvement over the Scaffolding Plugin? Other...

    Just curious as to how this is an improvement over the Scaffolding Plugin? Other than the hidden column, what you're describing can be pretty easily replicated like so:

    {scaffold:Data}
    {table-data:Table}
    || Name || Company || Organisation type || Yes/No ||
    | {text-data:Name} | {text-data:Company} | {list-data:Organisation}
    {list-option}Non-Profit{list-option}
    {list-option}University{list-option}
    {list-option}Corporation{list-option}
    {list-data} | {list-data:Yes/No|multiple=true|type=check}{list-option}Yes{list-option}{list-data} |
    {table-data}
    {scaffold}
    

    More verbose, perhaps, but very flexible. And in Scaffolding 2, you won't need the {scaffold} macro at all. Scaffolding 2 will also be integrated with the Metadata Plugin and be indexed/searchable.

    Anyway, go right ahead, just wondering if we need yet another way to enter table data...

    1. Sep 26, 2006

      David Peterson [CustomWare] says:

      Oh yeah, Scaff 2 will also be revision controlled...

      Oh yeah, Scaff 2 will also be revision controlled...

    2. Oct 15, 2006

      David Peterson [CustomWare] says:

      No comment?

      No comment?

      1. Oct 19, 2006

        Jonathan Nolen says:

        I actually wondered this myself. But this is Mike's baby, so I'll let him answer...

        I actually wondered this myself. But this is Mike's baby, so I'll let him answer.

  2. Dec 07, 2006

    Brendan Patterson says:

    What would be amazing was if Scaffold 2 or 3 had some of form builder and dazzle...

    What would be amazing was if Scaffold 2 or 3 had some of form builder and dazzle features of Wufoo