• Resolved danant

    (@danant)


    Hi Tobias,

    I wanted to pass the row and column for a specific cell as URL parameters when the user is clicking on a link (actually a link in a Tablepress table).
    In the referred page I wanted to use the single cell extension shortcode to retrieve the content of the specified cell (URL parameters), there is only one table so no table id is needed here.

    Is it possible?
    If possible – how would the shortcode look like?

    Regards,
    Dan

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi Dan,

    thanks for your post, and sorry for the trouble.

    Yes, this should be possible, but it requires some custom coding. Unfortunately, as I’m very busy at the moment, I don’t have the time and resources to develop this code.
    You will basically just have to take the Single Cell Shortcode Extension and make it use the row and column number that were passed in by the URL parameters.

    Regards,
    Tobias

    Thread Starter danant

    (@danant)

    HI again Tobias,

    Just to clarify your answer – You mean that I need to modify the PHP for the Single Cell Shortcode Extension plugin for getting row and column from URL parameters?

    Regards,
    Dan

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Dan,

    correct. You’d need to read in values from the $_GET array (and sanitize them, i.e. make sure in PHP code that they are numbers).

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reading single cell content in another page’ is closed to new replies.