{"id":75473,"date":"2013-11-09T01:52:10","date_gmt":"2013-11-09T09:52:10","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/unique-template-for-tribe-community\/"},"modified":"2014-01-14T14:32:37","modified_gmt":"2014-01-14T22:32:37","slug":"unique-template-for-tribe-community","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/","title":{"rendered":"Unique template for Tribe Community"},"content":{"rendered":"<p>I need to use a different template for Tribe Community than the one set in The Events Calendar settings (second tab). <\/p>\n<p>I have been able to hard-code a reference to the default template for Tribe Community in <i>the-events-calendar-community-events-&gt;lib-&gt;<b>tribe-community-events-templates.class.php<\/b><\/i> on line 385:<\/p>\n<p>384: public function addRoutes( $router ) {<br \/>\n385:\t\t$tec_template = <b>&#8216;default&#8217;;<\/b> \/\/ tribe_get_option( &#8216;tribeEventsTemplate&#8217; );<br \/>\n386:\t\tswitch ( $tec_template ) {<br \/>\n387:\t\t\tcase &#8221; :<br \/>\n388:\t\t\tcase &#8216;default&#8217; :<br \/>\n389:\t\t\t\t$template_name = &#8216;page.php&#8217;;<br \/>\n390:\t\t\t\tbreak;<br \/>\n391:\t\t\tdefault :<br \/>\n392:\t\t\t\t$template_name = $tec_template;<br \/>\n393:\t\t}<\/p>\n<p>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?<br \/>\nThanks,Benjamin Weggersen<\/p>\n","protected":false},"template":"","class_list":["post-75473","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unique template for Tribe Community -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unique template for Tribe Community -\" \/>\n<meta property=\"og:description\" content=\"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-&gt;lib-&gt;tribe-community-events-templates.class.php on line 385: 384: public function addRoutes( $router ) { 385: $tec_template = &#8216;default&#8217;; \/\/ tribe_get_option( &#8216;tribeEventsTemplate&#8217; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-01-14T22:32:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/\",\"name\":\"Unique template for Tribe Community -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-11-09T09:52:10+00:00\",\"dateModified\":\"2014-01-14T22:32:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Unique template for Tribe Community\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unique template for Tribe Community -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/","og_locale":"en_US","og_type":"article","og_title":"Unique template for Tribe Community -","og_description":"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-&gt;lib-&gt;tribe-community-events-templates.class.php on line 385: 384: public function addRoutes( $router ) { 385: $tec_template = &#8216;default&#8217;; \/\/ tribe_get_option( &#8216;tribeEventsTemplate&#8217; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/","article_modified_time":"2014-01-14T22:32:37+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/","name":"Unique template for Tribe Community -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-11-09T09:52:10+00:00","dateModified":"2014-01-14T22:32:37+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unique-template-for-tribe-community\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Unique template for Tribe Community"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/75473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/75473\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=75473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}