Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Damgaard Mortensen 712 posts 1189 karma points
    Jun 24, 2013 @ 00:35
    Bo Damgaard Mortensen
    0

    Structuring data for a table view

    Hi all,

    I'm trying to find a good solution to structuring data in Umbraco which should be displayed as a table view on a page.

    I could use the awesome pacakge, Tabular Data from Mike Taylor, but the thing is, that the editor wants to be able to insert X number of columns, enter the header text for each column and be able to insert a link to a file or image in a cell.

    I.e.:

    Column header 1 - Column header 2 - Column header 3
    ----------------------------------------------------
        Text        -     Text        -    Link
        Text        -     Link        -    Text

    The editor should be able to define the headers, the text of the headers, text in each cell and insert links in cells.

    I'm considering trying to structure this with document types in Umbraco, using a document type for a table row, column and such, but I'm not sure if that would make sense to the editor and be userfriendly.

    Any thoughts on this? :-)

    Thanks in advance!

    - Bo

  • Rich Green 2246 posts 4006 karma points
    Jun 24, 2013 @ 10:22
    Rich Green
    0

    Hey Bo,

    See below!

    Rich

  • Rich Green 2246 posts 4006 karma points
    Jun 24, 2013 @ 10:45
  • Rich Green 2246 posts 4006 karma points
    Jun 24, 2013 @ 10:51
    Rich Green
    0

    Bo, ignore me, too early.

  • Bo Damgaard Mortensen 712 posts 1189 karma points
    Jun 24, 2013 @ 11:31
    Bo Damgaard Mortensen
    0

    :-D

    Thanks anyway, Rich!

  • Damiaan 438 posts 1290 karma points MVP 3x c-trib
    Jun 24, 2013 @ 11:46
    Damiaan
    1

    IMHO, if it aren't too many rows/columns it could work.

    What about the Speadsheet uploader (http://our.umbraco.org/projects/backoffice-extensions/spreadsheet-uploader) shown at the package contest in Codegarden?

  • Chriztian Steinmeier 2726 posts 8320 karma points MVP 4x admin c-trib
    Jun 24, 2013 @ 14:01
    Chriztian Steinmeier
    1

    Hi Bo - totally crazy suggestion, I know - but how about a WYSIWYG with the table editor enabled - and then do a little extra to teach them how to use it to build the tables correctly?

    I've done that before, though I usually also use my WYSIWYG helper (XSLT) to render the table, just to make sure I get the final say regarding the rendered markup :-)

    /Chriztian

  • David Brendel 786 posts 2949 karma points c-trib
    Jun 24, 2013 @ 15:17
    David Brendel
    0

    One possible solution would be to build a custom data type based on a usercontrol.

    So you can have buttons to create the headings and to add new rows etc.

    Haven't build something like that on my own but i think it would be possible.

  • Dan 1250 posts 3747 karma points admin c-trib
    Jun 24, 2013 @ 15:34
    Dan
    0

    I was going to suggest the same thing as Chriztian. It sounds like lunacy, and I try to give my clients a few options as I can physically get away with in the WYSIWYG editor, but actually tables seem to work surprisingly well - particularly if your table structure is quite simple.  Adding <th> and <td> elements is straight forward enough and you can usually style the output reasonably reliably.

  • Bo Damgaard Mortensen 712 posts 1189 karma points
    Jun 25, 2013 @ 19:24
    Bo Damgaard Mortensen
    1

    Hi all and thanks a lot for your inputs :-)

    I went with your idea, Chriztian (and yours, Dan): a scraped RTE and it seems they (the client) actually enjoy working with it, so.. If they're happy, I am happy ;-) Though I would've loved a more clean/structured solution, but oh well!

    Thanks again!

    -Bo

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies