Customize the mini calendar widget with the calendar view (gridview.php) ?

Home Forums Welcome! Pre-Sales Questions Customize the mini calendar widget with the calendar view (gridview.php) ?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #30670
    Thierry
    Guest

    Hi 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!

    #30797
    Leah
    Member

    Hi 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?
    ~Leah

    #30824
    Thierry
    Guest

    Hi 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 !

    #30861
    Lee
    Member

    Im 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.

    #30872
    Thierry
    Guest

    No, 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 ?

    #30885
    Jonah
    Participant

    Hi 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

    #31010
    Thierry
    Member

    Hi 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 !

    #31051
    Jonah
    Participant

    You’re welcome Thierry, let us know if there’s anything else you need.

    – Jonah

    #922638
    Brook
    Participant

    We 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Customize the mini calendar widget with the calendar view (gridview.php) ?’ is closed to new replies.