• Resolved ThomasHo

    (@thomasho)


    Hi,
    thank for this great plugin, it’s amazing.

    I try to use a tablepress table as a very simple event-calender, but there is no function implemented to Show single rows for a limited time. I’d like to suggest such function for a future version of the plugin.

    No matter, I tried to use a plugin called wpsleep (http://wordpress.org/plugins/wpsleep/) with tablepress, but that doesn’t work. I inserted a new first column with the start-Shortcode of wpsleep [wpsleep end=”15.06.2104″] and a last column with the end-shortcode. The start-shortcode seems to work and is not shown, but the end-shortcode [/wpsleep] is shown in the table and so the plugin isn’t working.

    Do you have any ideas what I could do to solve the problem?
    Thomas

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ThomasHo

    (@thomasho)

    I’ve got stuck. The problem is that I need to put shortcodes before the <TR>-tag and after </TR>-Tag in HTML. See example:

    [wpsleep end=”16.06.2014″]<tr>
    <td>14.06.2014</td>
    <td>Termin 1</td>
    </tr>[/wpsleep]

    Is there a chance to make that thing work?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    There’s indeed no functionality in TablePress for showing a row only for a limited time. (And to be honest, I don’t think that this belongs into a plain table plugin, so that this very likely will not make it into a future version.)

    Now, regarding that Shortcode: As you can only enter content into the table cells, but not around it, it is not possible to wrap a table row (i.e. the <tr>...</tr> HTML code) with a Shortcode. You can only place the full Shortcode into a table cell. However, both the start-Shortcode as well as the end-Shortcode need to be in the same cell then.

    Regards,
    Tobias

    Thread Starter ThomasHo

    (@thomasho)

    Hi Tobias,
    thank you very much for wasting your time on my problem.

    Your absolute right, everything is working if I put the shortcode into a cell. I tried that a few hours ago.

    But the Problem with this solution is that I will display empty cells now. Not really nice. Is there any possibility to hide empty rows(/columns) with tablepress?

    Regards,
    Thomas

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Thomas,

    I don’t really see an (existing) automatic way to achieve this, unfortunately. You could look into using one of the existing plugin filter hooks that are run when the table is rendered. With some custom programming, you could hide undesired rows with that.

    The alternative would be to hide rows manually (using the “Hide” button on the “Edit” screen), but I guess that that’s something that you don’t really want to do.

    Regards,
    Tobias

    Thread Starter ThomasHo

    (@thomasho)

    Hi Tobias,

    thank for inconvenience. I hoped to use TablePress as a very simple event-list. So I must try to program php on my own. Puuh.

    Best regards and close
    Thomas

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Thomas,

    well, TablePress can be a very simple event list, but as that’s not its primary use case, some customizations with own PHP code are necessary here. Sorry.

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Display rows for a limited time’ is closed to new replies.