Support » Plugin: TablePress » Custom Data Fields with TablePress

  • Resolved Davighi

    (@davighi)


    I was about to go live with a website that was using WP Table reloaded. I have added some custom data fields so I can use the same data in multiple tables. I have just tried updating the plugin to TablePress and can’t find any custom data fields. Is this feature no longer available, if not do you intend to add it? or is there another way of specifying data to use in multiple tables?

    http://wordpress.org/extend/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post.

    Bad news: You are right, TablePress does not have the “Custom Data Fields” feature, and I do not plan to add it. It was simply not used widely enough. (In fact, I don’t even remember any support questions about it.)

    Now, can you maybe explain in more detail what you are trying to do, and how Custom Data Fields help with that? Maybe I can think of another solution.

    Regards,
    Tobias

    I am using it on this site breakdown-cover.co.uk

    The column titled Online Price has data that needs updating on a regular basis. If you take the first row on that page, the price is £32, that data is also displayed on http://www.breakdown-cover.co.uk/breakdown/roadside/ in the first row and on http://www.breakdown-cover.co.uk/theaa.com both in the table (row 1) and the copy above.

    Some prices are can be repeated many more times than this. I need a way to change the data once and for it to change in all the places it appears.

    The custom data fields may not have been used much because:
    1. They were hidden pretty well on the old plugin.
    2. People may not have known how to use them or what use they can be in situations like mine.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the explanation!

    Ok, so you need certain values to appear in several places, but want them to update only in a single place. Are you then inserting them into the several places via the Shortcode?

    Then I might have a workaround for you: There is a TablePress Extension, that adds another Shortcode that allows to retrieve the plain value of a single cell of a table: http://tablepress.org/extensions/table-cell-shortcode/

    Maybe you could use that instead of “Custom Data Fields”: You could create a new table, in which you collect all the values that used to be a “Custom Data Field”. Then use that Extension, to retrieve the value and paste it at the desired place with the Shortcode. (Think of it as referencing cells from a different table, just like in Excel with the ="Worksheet1"!G3 syntax.)
    Would that work? The only drawback I see is that you can not access the value by their name (i.e. the name of the “Custom Data Field”), but only by a row and column number. But as these will never change as long as you paste new values to the end of the table, that shouldn’t be too much of a problem.

    About the “Custom Data Field” usage: Yes, your two points are valid, but I also never received questions or requests about whether such a feature is available, so I really think that there was no real demand for “Custom Data Fields”.

    Regards,
    Tobias

    Thanks, I will try it out tomorrow and let you know how I get on.

    Great support btw.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, sounds good. And you are very welcome! 🙂

    Best wishes,
    Tobias

    Works a perfectly and as you said the only drawback is that you can’t name the values as you can with a “Custom Data Field”. It makes it a little tricky setting everything up but once done, updating things is easy.

    If anyone wants to see an example you can see it here http://www.breakdown-cover.co.uk/

    Thanks Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    Thanks for trying this. Great to hear that it worked!
    I hope that it is still useful, even though you can’t name the values.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    I’m looking for a similar solution, however using a table as the central data source would not work for me as the data is being used by multiple plugins that use the custom fields data associated with each post.

    Is it possible to use a shortcode inside a table cell to pull data from a custom field for a specific post ?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    Well, yes, something like that would be possible, but you would need the plugin that makes this function (obtaining a custom field value via Shortcode). Then you can use that Shortcode in a table cell without problems.

    However, I’m not really sure that TablePress is the best way to go for your idea. What you describe sounds like dealing with a lot of dynamic information, which simply is not what TablePress is good at, as that’s outside of the use case.
    A custom solution, based on PHP that directly retrieves the information from the database and renders that as a table should be better for you.

    Regards,
    Tobias

    I tend to build sites dynamically Tobias so that they are flexibile and then generate a static version through caching. This way I can do a lot of things with the same content quickly and get the benefits of speed. Maximises leverage.

    Writing a plugin or creating a shortcode to grab the field from a custom field is relatively simple. Its just a bit of glue.

    This way I can leverage the capabilities of existing tools / plugins without having to write or build new ones.

    Regards,
    Nic

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Nic,

    yes, that’s definitely a good approach here, and if you are comfortable with a little bit of programming, it should be possible to use TablePress here.
    I was just saying that a direct dynamic implementation might be easier.

    Regards,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Custom Data Fields with TablePress’ is closed to new replies.