• Resolved jsem1101

    (@jsem1101)


    Hi Tobias

    Having used the shortcodes (eg. [table-cell id=123 cell=C3 /] to place cells on a page in specific locations, is there a way to get that cell to then repeat for the rest of the columns contents?

    So basically, I’m trying to take data from the table, lay it out with say the contents of cell D1(Title) underneath content of cell B1(Description) – easy enough – but then repeat for the rest of the rows.. like a repeatable region.

    Is that possible? or should I be using CSS to layout the contents?

    Kind regards
    Jason

    https://www.ads-software.com/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi Jason,

    thanks for your question!

    I’m not really sure that I understand.
    Do you mean something like only adding the Shortcode [table-cell id=123 cell=C3 /], but getting the value of D3, E3, and so on as well?
    Then, no, that’s not possible.
    You’ll have to add every Shortcode separately. The Singe Cell Shortcode can only get the value of one cell at a time.

    And yes, CSS for the layout will probably be helpful, depending on how this looks like.

    Regards,
    Tobias

    Thread Starter jsem1101

    (@jsem1101)

    Hi Tobias

    ok, thanks for letting me know. Yes basically that was it, so I could lay the contents out different to just lateral rows, but still have it repeat for all data in the table, rather than just the one cell.

    Don’t worry i realise i’m pushing the limits of what the plugin does, and i’ll probably get roughly what i want with css(?).

    The page i’m using the table for is a restaurant menu with maybe 400 to 500 records, hence why i’d like to lay it out globally instead of cell by cell.

    Maybe a neat update for future to have a container/shortcode that repeats the cells contained within it?.. that would definitely be another donation from me ??

    All the best
    Jason

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Jason,

    for something like this, where you just want to use the table as a data storage from which you then create a custom layout, it should be better to use a custom solution, e.g. based on mySQL and PHP.
    With that, you’d have the flexiblity to query the data that you need with mySQL, and the power of PHP to print it to the page in the desired way.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Single Cell Shortcode – Repeat For All Rows’ is closed to new replies.