• Resolved oerb

    (@oerb)


    I really like Pods.
    But I miss one functionality: multidimensional fields. Or in other words: The user should see fields arranged as a table, in which he can enter data.

    The Kirby CMS has the “structure” element that works like how I expect. When the editor edits a post (or custom post type) he can input data into a table:

    I would like to do this with Pods. Inside the table should it be possible to use any field, that we already know in Pods.

    So when I edit a Pod I would like to be able to choose a new …

    Field type: Table

    Inside this filed, I can add the table fields (they will be the columns later), for example:
    Textfield (Dish), Textarea (Description), Numbers (Price)
    also possible: Relationship field – and all the others

    (If you want at 3-dimensional tables you could choose a table field inside the table, but don’t mind it now. Could be a bit too much 😀 )

    I would like to set, how many rows the table should have (minimum, maximum),

    I would like to choose, if data should be saved to a field with an 2 dimensional array or into f.e. 3 1 dimensional arrays (like dishlist_dish, dishlist_description, dishlist_price).

    It would be okay for me, if the user would see the table and can edit directly in the cells.

    Kirby makes it like this and shows a field list, if you click on a row:

    That would be nice also. It is better for small displays, when you can’t show all columns of the table.

    Is there a way to already make something similar with Pods?
    Or if not, would that be a nice feature request?

    The output of the data could be done by php-Template as workaround. Later it would be nice to have working shortcodes for Pod-templates also.

    PS: I already read this: https://docs.pods.io/advanced-topics/using-link-tables-for-multi-field-relationships But it isn’t really a solution

    • This topic was modified 3 years, 2 months ago by oerb.
    • This topic was modified 3 years, 2 months ago by oerb.
    • This topic was modified 3 years, 2 months ago by oerb.
Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @oerb

    This feature is discussed many times over the past years and there is loads of discussion going on this in terms of database design.

    I understand the need of the feature but currently the link tables is your only option. And in relation to database design, your best option (when using custom tables).

    Feel free to open a new topic on GitHub to share your ideas on how we could implement such a feature.
    pods.io/submit

    Closing this topic here!

    Cheers, Jory

Viewing 1 replies (of 1 total)

The topic ‘Multidimensional field or table field’ is closed to new replies.