{"id":962285,"date":"2015-05-13T02:33:28","date_gmt":"2015-05-13T09:33:28","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/"},"modified":"2015-05-13T12:22:04","modified_gmt":"2015-05-13T19:22:04","slug":"list-view-not-working-if-the-default-view-is-changed","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/","title":{"rendered":"List View not working if the default View is changed."},"content":{"rendered":"<p>Hi, <\/p>\n<p>the list view &#8220;href&#8221; in the &#8216;&lt;ul class=&#8221;tribe-bar-views-list&#8221;&gt;&#8217; is not working if the default view setting is set other then to list view. <\/p>\n<p>After digging into the source I found the select option. <\/p>\n<p>  &lt;select class=&#8221;tribe-bar-views-select tribe-no-param&#8221; name=&#8221;tribe-bar-view&#8221;&gt;<br \/>\n    &lt;option data-view=&#8221;list&#8221; selected value=&#8221;http:\/\/domain.org?post_type=tribe_events&#8221;&gt; &lt;!&#8211; Now it gets clear, if the default view is changed and list view link points to the default view, the list view won&#8217;t show up&#8211;&gt;<br \/>\n      Liste<br \/>\n    &lt;\/option&gt;<\/p>\n<p>    &lt;option data-view=&#8221;month&#8221; value=<br \/>\n    &#8220;http:\/\/domain.org?post_type=tribe_events&amp;eventDisplay=month&#8221;&gt;<br \/>\n      Monat<br \/>\n    &lt;\/option&gt;<\/p>\n<p>    &lt;option data-view=&#8221;day&#8221; value=&#8221;http:\/\/domain.org?post_type=tribe_events&amp;eventDisplay=day&#8221;&gt;<br \/>\n      Tag<br \/>\n    &lt;\/option&gt;<br \/>\n  &lt;\/select&gt;<\/p>\n<p>in addition i also checked the php files, and ended up here: <\/p>\n<p>var_dump(tribe_events_get_views()); <\/p>\n<p>array(3) {<br \/>\n  [0]=&gt;<br \/>\n  array(4) {<br \/>\n    [&#8220;displaying&#8221;]=&gt;<br \/>\n    string(4) &#8220;list&#8221;<br \/>\n    [&#8220;event_bar_hook&#8221;]=&gt;<br \/>\n    string(28) &#8220;tribe_events_before_template&#8221;<br \/>\n    [&#8220;anchor&#8221;]=&gt;<br \/>\n    string(5) &#8220;Liste&#8221;<br \/>\n    [&#8220;url&#8221;]=&gt;<br \/>\n    string(62) &#8220;http:\/\/domain.org\/wordpress?post_type=tribe_events&#8221;<br \/>\n  }<br \/>\n  [1]=&gt;<br \/>\n  array(4) {<br \/>\n    [&#8220;displaying&#8221;]=&gt;<br \/>\n    string(5) &#8220;month&#8221;<br \/>\n    [&#8220;event_bar_hook&#8221;]=&gt;<br \/>\n    string(34) &#8220;tribe_events_month_before_template&#8221;<br \/>\n    [&#8220;anchor&#8221;]=&gt;<br \/>\n    string(5) &#8220;Monat&#8221;<br \/>\n    [&#8220;url&#8221;]=&gt;<br \/>\n    string(81) &#8220;http:\/\/domain.org\/wordpress?post_type=tribe_events&amp;eventDisplay=month&#8221;<br \/>\n  }<br \/>\n  [2]=&gt;<br \/>\n  array(4) {<br \/>\n    [&#8220;displaying&#8221;]=&gt;<br \/>\n    string(3) &#8220;day&#8221;<br \/>\n    [&#8220;anchor&#8221;]=&gt;<br \/>\n    string(3) &#8220;Tag&#8221;<br \/>\n    [&#8220;event_bar_hook&#8221;]=&gt;<br \/>\n    string(28) &#8220;tribe_events_before_template&#8221;<br \/>\n    [&#8220;url&#8221;]=&gt;<br \/>\n    string(79) &#8220;http:\/\/domain.org\/wordpress?post_type=tribe_events&amp;eventDisplay=day&#8221;<br \/>\n  }<br \/>\n}<\/p>\n<p>Adding the eventDisplay=list param, will solve the problem. <\/p>\n<p>kind regards<\/p>\n","protected":false},"template":"","class_list":["post-962285","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>List View not working if the default View is changed. -<\/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\/list-view-not-working-if-the-default-view-is-changed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"List View not working if the default View is changed. -\" \/>\n<meta property=\"og:description\" content=\"Hi, the list view &#8220;href&#8221; in the &#8216;&lt;ul class=&#8221;tribe-bar-views-list&#8221;&gt;&#8217; is not working if the default view setting is set other then to list view. After digging into the source I found the select option. &lt;select class=&#8221;tribe-bar-views-select tribe-no-param&#8221; name=&#8221;tribe-bar-view&#8221;&gt; &lt;option data-view=&#8221;list&#8221; selected value=&#8221;http:\/\/domain.org?post_type=tribe_events&#8221;&gt; &lt;!&#8211; Now it gets clear, if the default view is changed and list [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-13T19:22:04+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\/list-view-not-working-if-the-default-view-is-changed\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/\",\"name\":\"List View not working if the default View is changed. -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-05-13T09:33:28+00:00\",\"dateModified\":\"2015-05-13T19:22:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/#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\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"List View not working if the default View is changed.\"}]},{\"@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":"List View not working if the default View is changed. -","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\/list-view-not-working-if-the-default-view-is-changed\/","og_locale":"en_US","og_type":"article","og_title":"List View not working if the default View is changed. -","og_description":"Hi, the list view &#8220;href&#8221; in the &#8216;&lt;ul class=&#8221;tribe-bar-views-list&#8221;&gt;&#8217; is not working if the default view setting is set other then to list view. After digging into the source I found the select option. &lt;select class=&#8221;tribe-bar-views-select tribe-no-param&#8221; name=&#8221;tribe-bar-view&#8221;&gt; &lt;option data-view=&#8221;list&#8221; selected value=&#8221;http:\/\/domain.org?post_type=tribe_events&#8221;&gt; &lt;!&#8211; Now it gets clear, if the default view is changed and list [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/","article_modified_time":"2015-05-13T19:22:04+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\/list-view-not-working-if-the-default-view-is-changed\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/","name":"List View not working if the default View is changed. -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-05-13T09:33:28+00:00","dateModified":"2015-05-13T19:22:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-not-working-if-the-default-view-is-changed\/#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":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"List View not working if the default View is changed."}]},{"@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\/962285","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/962285\/revisions"}],"predecessor-version":[{"id":962424,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/962285\/revisions\/962424"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=962285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}