Home › Forums › Calendar Products › Community Events › Community Events – Shortcode with Permalink
- This topic has 4 replies, 3 voices, and was last updated 10 years, 6 months ago by
Support Droid.
-
AuthorPosts
-
September 14, 2015 at 6:48 am #1004800
Thomas
ParticipantHello,
We are in the process of installing Community Events. We saw that the instructions provided shortcodes, but that they only work for sites that do not use permalink. Naturally our site does and as such cannot use the shortcodes. Is there a mechanism that would allow us to embed the event submission and event list components into the content of a page so that we can manage the surrounding page elements and not have to customize the php?
Additionally, we have fully customized our login page (via WooCommerce default login) and we see that Community Events utilizes its own login page. Is there a method in place that would allow us to leverage our current login page?
Thank you for your help
-
This topic was modified 10 years, 7 months ago by
Thomas.
September 14, 2015 at 4:31 pm #1005056Nico
MemberHi Thomas,
Thanks for reaching out to us! Interesting questions here, let’s jump into answering them…
Regarding the first question about embedding the event submission form to better customize it: it’s not possible with pretty permalinks enabled. But, shortcodes are just used to insert it in a page that acts as a place holder, it doesn’t provide any advantages relative to customizing the form or other elements. I would rather suggest creating template overrides to edit the views you need to. Our Themer’s guide will give you an overview of the process of customizing the plugin views.
On the login page inquire, I think Brian did a great job here: https://theeventscalendar.com/support/forums/topic/custom-login-page/#dl_post-955020 describing what can and cannot be done with it.
Please check on those links and let me know,
Best,
NicoSeptember 15, 2015 at 12:37 pm #1005375Thomas
ParticipantHello Nico,
Thank you for your reply. The ideal strategy was to use the shortcode to place the event submission and event list components within the content of a page so that we could use VamTam to add visual elements, such as sliders and headers, which exist on all the run of site pages. It seems that these elements will have to be hard coded into the php files. Just to clarify, attempting to use shortcodes with PermaLink will just result in a redirect to the actual page correct? That is currently what I am seeing at the moment.
In regards to the login page, the strategy is to basically remove “wp_login_form();” on:
the-events-calendar-community-events\views\community\edit-event.phpand replace it with our own script?
Thank you
September 16, 2015 at 5:13 am #1005541Nico
MemberHey Thomas,
Thanks for following up on this!
I see the point in using a placeholder for this, but unfortunately that’s not possible right now 🙁 If Vamtam elements are usable via shortcodes yo can use the WordPress ‘do_shortcode‘ in the modified templates.
On the login form, the work around is to wrap all the template code in your own logged in check and if the user is not logged in then show your own form -maybe a redirect works here too. It’s not recommended at all to edit the file directly in the plugin folder, but create a template override in your theme folder, as described in our Themer’s guide. Be sure to go over it before you start working on this customization.
Please let me know if there’s anything else I can help you with,
Best,
NicoOctober 1, 2015 at 7:05 am #1010391Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
This topic was modified 10 years, 7 months ago by
-
AuthorPosts
- The topic ‘Community Events – Shortcode with Permalink’ is closed to new replies.
