Home › Forums › Calendar Products › Events Calendar PRO › Can the 'Press This' bookmark open up 'Add New Event' in the back-end?
- This topic has 5 replies, 3 voices, and was last updated 9 years, 6 months ago by
Paul.
-
AuthorPosts
-
October 4, 2016 at 12:48 am #1172121
Paul
ParticipantHello all,
Let me explain!
In this thread:
I asked if it was possible to enter predetermined information into the event information box. It is important for my client to be accurate with these event details and choosing from predetermined data is one way we can minimise the risk of any errors. As I expected, this could be technically difficult to achieve.So, I am now looking at a different approach to achieve essentially the same thing 🙂
I have created a form outside of WordPress with drop-down menu’s – administrators simply select from the predefined information. They then click a button which produces a neatly formatted table of their information which can subsequently be pasted into the event information box. My form is a work in progress with some errors but you can see a working example from the links I’ll provide in a private post.
To make the event publication process even simpler, it would be nice if the ‘Press This’ bookmark feature of WordPress could open up the back-end editor – specifically the Add New Event editor. Can you see what I am trying to achieve? 🙂 The administrator would then just click the Press This bookmark to open up the backend editor, and insert their table of information automatically.
The Press This bookmark includes javascript which frankly confuses me but can this be modified to open up the back-end Add New Event editor?
As always, any help would be very much appreciated.
Kind regards,
Paul.
October 4, 2016 at 12:54 am #1172125Paul
ParticipantThis reply is private.
October 4, 2016 at 8:44 am #1172293Geoff
MemberHey Paul, welcome back — hope all is well. 🙂
Man, what a cool idea! I have to admit that this is the first time I’ve seen someone trying to use the Press This functionality for publishing content this way and it’s super creative.
And, to be honest, I’m not entirely sure it’s possible to redirect the Press This functionality to work specifically with the back-end editor of a specific post type (like Events) without a lot of custom development. I spent a little time seeing if perhaps there were some existing plugins to help with the lifting I think it would require but came up empty.
If this were my task, I would probably start by looking into Advanced Custom Fields. That will allow you to replace any of the Event fields in the editor with your own and set default options for those fields, which you can then use to replace the Event content in the calendar template to build the formatted table on the event page. That might also be a nice way to keep the editing experience completely in WordPress rather than two different places. Just a thought though, and you may have already explored this as an option.
Sorry I don’t have a concrete answer for you on the Press This functionality, but hopefully this still helps gets the ball rolling in a way that will make the event creation/editing process much less prone to user error for your team.
Cheers!
GeoffOctober 5, 2016 at 12:35 am #1172583Paul
ParticipantGeoff, you’re a star!
I downloaded the Advanced Custom Fields plugin and am slowly getting to grasps with it.
I created a sample field in the plugin called my_field_name (very original!), set the Rule to:
Post Type >> is equal to >> tribe_events
I then copied the single-event.php file to my child theme tribe-events folder and edited the code in that file to include:<?php the_field(‘my_field_name’); ?>
and to my surprise, my sample field appeared in the single event page on the front end 🙂
This is exactly what my client wanted and, as you say, keep editing experience completely in WordPress. Although the initial setup would take a bit of time, this is a much more seamless solution to my clients’ requirements.
We will have to train some new admins on the system in the future and if they are not familiar with WordPress, Events Calendar & WooCommerce, it could all be a bit overwhelming so this should make the learning process easier for them.
I can’t thank you enough for your time & the plugin suggestion, many thanks 🙂
Best wishes,
Paul.
October 5, 2016 at 7:16 am #1172677Geoff
MemberMy absolute pleasure, Paul! I’m really stoked to hear that’s going to do the trick — ACF is an excellent plugin and it works very well with The Events Calendar.
I’ll go ahead and close this thread but please do let us know if any other questions come up and we’d be more than happy to help. 🙂
Cheers,
Geoff -
AuthorPosts
- The topic ‘Can the 'Press This' bookmark open up 'Add New Event' in the back-end?’ is closed to new replies.
