WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Printable View From Bookings Screen (5 posts)

  1. justbishop
    Member
    Posted 2 months ago #

    Any way to add an option for a printable view from the "Bookings" screen, rather than only from the "Edit Event" screen? I want my users of a certain level to be able to print off an attendee list, but not have access to edit the event itself.

    If there's any confusion, I'm talking about the screen accessible via the Events --> Bookings admin menu item. The screen title is "Manage 'EVENT_TITLE' Bookings", and includes button links to view the event and edit the event, as well as some basic info and a list of bookings. That's where I need a "Print View" link/button!

    https://wordpress.org/plugins/events-manager/

  2. angelo
    NetWebLogic Support
    Posted 2 months ago #

    you might need additional WP plugin to do this since this is not currently available to EM by default.

  3. justbishop
    Member
    Posted 2 months ago #

    Yes you can. There is a "printable view" link in the "Booking Stats" box on the edit event screen, right beneath the "manage bookings" link. I just want that same "printable view" link from the "Bookings" screen, rather than ONLY from the edit even screen.

  4. angelo
    NetWebLogic Support
    Posted 2 months ago #

    unfortunately this is not possible out of the box.

  5. justbishop
    Member
    Posted 2 months ago #

    Actually, I figured it out. There's no option to put the existing "printable view" anywhere else without mucking around in the plugin code, but if anyone else is interested in this, here's the code I placed after line 105 of the plugin file events-manager/admin/em-bookings.php:

    <a class='button add-new-h2' target='blank' href='<?php echo EM_ADMIN_URL ."&page=events-manager-bookings&action=bookings_report&event_id=".$EM_Event->event_id ?>'><?php echo sprintf(__('Print %s','dbem'), __('Event', 'dbem')) ?></a>

    It added a nice button to match the "View Event" and "Add Event" ones next to the event title on the single event admin screen that you can reach via the bookings dashboard.

    In order for the button/link to function properly when clicked, the logged in user must have the capability to edit_others_events. I don't really want my editors messing with events, so I'm going to remove all links to the edit event screen using various other methods a filter for the "Edit Event" link on the front end admin bar, a menu editor plugin to remove access to the event list in the back end, etc.)

    Done and done :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.