Home › Forums › Welcome! › Pre-Sales Questions › Customize the mini calendar widget with the calendar view (gridview.php) ?
- This topic has 8 replies, 5 voices, and was last updated 11 years, 3 months ago by
Brook.
-
AuthorPosts
-
January 12, 2013 at 5:57 am #30670
Thierry
GuestHi there – before I purchase I would like to know if it’s possible to customize the mini calendar widget in order to display his content with the calendar view (the gridview) with all the events names instead of the table-mini grid. Thanks for any help!
January 14, 2013 at 2:07 pm #30797Leah
MemberHi Thierry, I’m afraid I don’t completely understand your question… are you wanting a list of upcoming events in the sidebar instead of a calendar grid?
~LeahJanuary 15, 2013 at 1:26 am #30824Thierry
GuestHi Leah and thanks for the reply, but i wanted to know if there is a way to display the calendar in the calendar-mini place. I would keep the ajax function (and no slug-replacement) and the widget to put it where i want in my post, but i want to display all the big calendar with the days and links inside instead of the mini-calendar body (below the navigation) as shown on this screenshot : http://www.thierrydev.com/capresilience/wp-content/themes/capresilience/images/2013/01/mini_calendar_question.jpg
And if it’s possible, could you please expalin me how to do this ? Which files should i modify and what could i put inside to manage to do this.
Thanks a lot !January 15, 2013 at 8:17 am #30861Lee
MemberIm not really sure what you mean either … You want the full (gridview) calendar to appear in the sidebar?
I don’t see much logic in doing this as the text would be too small to be able to read / fit in the space.January 15, 2013 at 9:15 am #30872Thierry
GuestNo, I want use the widget a the bottom of my pages, he would normally be in a full width template. It will not be in a sidebar. It will look like this, if i can do it : http://www.thierrydev.com/capresilience/wp-content/themes/capresilience/images/2013/01/page_with_calendar.jpg
But do you think it’s possible, and if yes, how can i make it ?January 15, 2013 at 11:37 am #30885Jonah
ParticipantHi Thierry,
What you’re asking for is going to take a fair amount of customization however its done and we won’t be able to help you here. To point you in the right direction there’s basically two ways you can do it:
1. Customize the heck out of the widget by modifying /wp-content/plugins/the-events-calendar/views/table-mini.php and then including it somewhere in your template with the_widget() function. You would call it like so:
the_widget('TribeEventsCalendarWidget');
2. Try to include the gridview directly somewhere in your template like so:
include('wp-content/plugins/the-events-calendar/views/gridview.php');
The downside to this approach is that I’m uncertain how well all the native functions, primarily the AJAX navigation is going to work if at all outside of the main calendar page.The first option might be your best bet mainly for the fact that you should be able to retain the AJAX functionality. But, it’s going to take a fair amount of customization to the view file to get it to look the way you want.
Does that help?
– Jonah
January 17, 2013 at 1:42 am #31010Thierry
MemberHi Jonah,
Thanks a lot for your help and point me in the right direction.
Finally, i managed to get it as the look i wanted in putting the template tag <?php tribe_calendar_grid(); after the in the table-mini.php file. The AJAX navigation works perfectly and i have the display i wanted.
Thanks again, you made my day !January 17, 2013 at 1:16 pm #31051Jonah
ParticipantYou’re welcome Thierry, let us know if there’s anything else you need.
– Jonah
December 18, 2014 at 1:13 pm #922638Brook
ParticipantWe are going to archive this topic since it has been inactive for a while. If you need anything else please open a new topic. Cheers!
– Brook
-
AuthorPosts
- The topic ‘Customize the mini calendar widget with the calendar view (gridview.php) ?’ is closed to new replies.
