• Resolved mikelbyl

    (@mikelbyl)


    Hi Tobias,

    Is there any chance that you have plans to expand the variables you can control via the shortcode? In particular I would like the ability to control the width of the entire table via shortcode, in addition to specific columns.

    I have little difficulty working with CSS, but the mode in which I’m working makes this impossible. I’m producing tables on the fly with “live” reported information so it’s tough to find the time to go in and adjust the CSS. Plus, there are a limited number of “types” of table I’m building though the particulars each time (values, number of rows) are different.

    What I would love to do would be a) ‘[table width=”40%” column-widths=”10%|30%]’ in the post where the table will appear, or b) add these variables in the Tablepress interface so that the shortcode it outputs is modified.

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    No, sorry, I don’t have plans for supporting setting the overall table width via the Shortcode parameters.
    Actually, I don’t even like that I added the possibility to set column widths via the Shortcode…

    “Custom CSS” is the superior solution here.

    Now, to make working with those groups of tables that you are creating easier, you could take a look at using “Extra CSS classes”. WIth those, you could set the CSS for the groups and also add the “Extra CSS classes” via a Shortcode parameter.

    Regards,
    Tobias

    Thread Starter mikelbyl

    (@mikelbyl)

    OK thanks – I’ll look into it further in the documentation.

    I will be producing 17 tables with one “column profile” in the next two weeks – and in the same time, another 30-40 with a totally distinct “column profile” – is this where the “Extra CSS Classes” comes in? I can’t seem to find much documentation about this.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, you could create two different “Extra CSS classes” for these two “column profiles” and greatly reduce the “Custom CSS”.

    There’s indeed not much documentation on this yet, but here are links to examples:
    https://www.ads-software.com/support/topic/extra-css-classes?replies=6
    https://www.ads-software.com/support/topic/setting-plugin-options-for-multiple-tables-with-same-css?replies=13

    Regards,
    Tobias

    Thread Starter mikelbyl

    (@mikelbyl)

    Wow OK that’s perfect. Now off to write the CSS….

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Width via shortcode?’ is closed to new replies.