Unique template for Tribe Community

Home Forums Calendar Products Community Events Unique template for Tribe Community

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #75473
    hanen
    Participant

    I need to use a different template for Tribe Community than the one set in The Events Calendar settings (second tab).

    I have been able to hard-code a reference to the default template for Tribe Community in the-events-calendar-community-events->lib->tribe-community-events-templates.class.php on line 385:

    384: public function addRoutes( $router ) {
    385: $tec_template = ‘default’; // tribe_get_option( ‘tribeEventsTemplate’ );
    386: switch ( $tec_template ) {
    387: case ” :
    388: case ‘default’ :
    389: $template_name = ‘page.php’;
    390: break;
    391: default :
    392: $template_name = $tec_template;
    393: }

    But I know this will be broken the next time you update the plugin. How can I achieve the same result without changing the core plugin?
    Thanks,Benjamin Weggersen

    #75627
    Casey
    Participant

    Benjamin,
    This was recently updated to begin using your EC template settings. Just go to ‘Events->Settings->Display’ and you’ll see this dropdown: http://d.pr/i/FGgT

    Whatever option you select there, Community will use. Hope that helps!

    #75628
    hanen
    Participant

    My understanding, and experience, is that setting the option you’re refering to, also changes the template for the actual presentation of the event calendar. I want to use one template for the event calendar and another for the Community pages.

    #75632
    Casey
    Participant

    That’s correct Hanen. Unfortunately this isn’t currently possible, except for the way that you’re currently doing it. In the future, I’m hoping we might add a filter so that advanced users can use a different page template than the main Events Calendar.

    Hope that helps!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Unique template for Tribe Community’ is closed to new replies.