• Resolved grindelo

    (@grindelo)


    Hi,

    first thanks for that great Plugin. You did a really nice job!

    I would like to know, if it’s possible to put also hooks from another plugin into the table.
    I have an event plugin (the events calendar) and I’d like to have a table view which I can design by myself.
    For example Date | Location | Tickets.
    I thought about integrate some hooks of the event plugin into the table.

    For example <?php echo events_event_schedule_details() ?>. Or use the integrated filter of the Plugin or some other features in the table header. So everytime I add a new Event, it automatically appears in a new row in the table. I would like to take over the plugin settings (for example that the event title is the link to the single event page).

    I don’t know, if this idea is not good at all. But I think if you can add text, it should also be possible to add hooks.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You execute the PHP code that you mention via the TablePress Extension from https://tablepress.org/extensions/php-in-tables/
    How useful that is depends on what that PHP code returns.

    Most likely, you will not get satisfactory results here. It might make much more sense to directly construct the HTML code for a table e.g. in a custom “Page Template” in your theme, where you can directly use such PHP code to access your events plugin.

    Regards,
    Tobias

    Thread Starter grindelo

    (@grindelo)

    Hey Tobias,

    thanks for your answer you helped me a lot!!! I wrote a html table and it worked really fine. The widget works via a single event.php which follows to the event template page. I wrote that table on the single event.php. table works fine, but every new event it will create a new table with the header and with a little different layout (margin etc.). Do you have an idea, how to make a table with a static header and form, so that every new event is put into that table.

    Would be great to hear from you!
    Thanks
    Cornelius

    Event list

    This is the php:

    <!– table –>

    <table style=”width:120%”>
    <tr>
    <th><h3> Datum / Uhrzeit</h3></th>
    <th><h3>Location</h3></th>
    <th><h3>Details / Tickets</h3></th>
    </tr>
    <tr>
    <td>
    <h3 class=”tribe-event-schedule-details”>
    <?php echo tribe_events_event_schedule_details() ?>
    </h3>
    <?php if ( $venue_details ) : ?>
    </td>
    <td>
    <div class=”tribe-events-venue-details”>
    <?php
    $address_delimiter = empty( $venue_address ) ? ‘ ‘ : ‘, ‘;

    // These details are already escaped in various ways earlier in the process.
    echo implode( $address_delimiter, $venue_details );

    if ( tribe_show_google_map_link() ) {
    echo tribe_get_map_link_html();
    }
    ?>
    </div>
    <?php endif; ?>
    </td>
    <td>
    <?php do_action( ‘tribe_events_before_the_content’ ); ?>
    <div class=”tribe-events-list-event-description tribe-events-content description entry-summary”>
    ” class=”tribe-events-read-more” rel=”bookmark”><?php esc_html_e( ‘Find out more’, ‘the-events-calendar’ ) ?> »
    </div>
    </td>

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no, sorry, I’m not into the details of all these actions of the events plugin.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Campatibility with Other Plugins’ is closed to new replies.