Home › Forums › Calendar Products › Events Calendar PRO › Display the calendar in a block on page
- This topic has 4 replies, 3 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
March 29, 2016 at 4:24 am #1095304
Michael Byrne
ParticipantHello,
We need to display the calendar as it is on the /events page in a block on the homepage.
I supposed it should be achievable using
tribe_get_template_part( 'modules/bar' ); tribe_get_template_part( 'month/content' );But I ran across the following issues:
1. If we use the template functions outside the page loop the days table looks like this (only days names are shown, tribe_events_have_month_days() in loop-grid.php returns false)
2. If we use it inside the loop, it has the same issue + for some reason we get an infinite loop which duplicates all the content on the page until we stop it.How do I use the template functions to display the calendar in the block on the homepage in the same way as it displays on the /events page?
March 29, 2016 at 5:21 am #1095318Brook
ParticipantHowdy Michael,
I would love to help you with this.
This is actually a pretty complex problem. In our own tests we have found this to be highly difficult, which si why we do not yet have a shortcode to do this for you. When loading the template parts you will not get any of the CSS or JavaScript necessary to power the view. Further there are issues with paging back and forth, switching views, and so forth. The CSS and JavaScript also has issues even if you manage to get it loaded. Basically, it’s not super doable just yet, but in the near future would like to make this as easy as embedding a shortcode and simultaneously fix the things that are making this difficult from the code side.
Until then, what about a workaround? What if you used an HTTP redirect to forward users from the home page to /events/, and then customized the /events/ page via the usual means to make it look how you need. Would that work?
- Brook
March 29, 2016 at 10:59 pm #1095745Michael Byrne
ParticipantHi Brook,
Thanks for your reply.
Sorry to hear that it is not achievable. I am afraid we will have to use another plugin.
March 30, 2016 at 5:52 am #1095829Brook
ParticipantOnly fair! I appreciate you’re letting us know, the feedback is good to have. To be honest it won’t change anything for us, but that’s because we’re already building shortcodes as fast as we can. Feedback like htis just gives us more motivation to work hard at what we’re doing. 🙂
Do you want me to refund your most recent order?
Cheers!
– Brook
April 14, 2016 at 9:35 am #1102517Support 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. -
AuthorPosts
- The topic ‘Display the calendar in a block on page’ is closed to new replies.
