{"id":1007655,"date":"2015-09-22T15:09:06","date_gmt":"2015-09-22T22:09:06","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/"},"modified":"2015-09-23T11:37:58","modified_gmt":"2015-09-23T18:37:58","slug":"adding-organizers-to-month-view-tooltip-and-mobile","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/","title":{"rendered":"Adding organizers to month view tooltip and mobile"},"content":{"rendered":"<p>We added the organizer (in our case, performer), to the list view of the events. We also added it to the tooltip and mobile list for the month view.  Now that we can have multiple organizers for an event, we&#8217;d like to list them all.  We have it working for the list views, but when we tried to add multiple organizers to the tooltip in month views, we had problems.<\/p>\n<p>Ideally, we&#8217;d add something like this:<\/p>\n<pre><code>[[ for (var i =0; i &lt; organizers.length; i++;) { ]]\n  [[ var organizer = organizers[i]; ]] \n  &lt;span class=&quot;lmp-performer&quot;&gt;[[=organizer]]&lt;\/span&gt;\n[[}]]<\/code><\/pre>\n<p>But with that in, the tooltip doesn&#8217;t work.  We&#8217;ve done some digging and observed the following behavior:<\/p>\n<p>Adding<\/p>\n<pre><code>[[ for (var i =0; i &lt; organizers.length; i++;) { ]]\n[[ }]]<\/code><\/pre>\n<p>also breaks the tooltip, but when we add<\/p>\n<pre><code>[[ for (var i =0; i &lt; organizers.length; i++;) { \n }]]<\/code><\/pre>\n<p>the tooltip still works, but displays <code>&quot;for (var i =0; i &lt; organizers.length; i++;) { }&quot;<\/code> in it.  So it seems like your parser doesn&#8217;t handle the JS for loop correctly.<\/p>\n<p>Also, we confirmed that the organizers variable does exist; adding this code with no for loop works as expected:<\/p>\n<pre><code>[[var org =organizers[0];]]\n[[=org]]<\/code><\/pre>\n<p>Is there another way to display the organizers without the for loop?  This is pretty simple JavaScript, so we expected it to work.  What are we missing?<\/p>\n","protected":false},"template":"","class_list":["post-1007655","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>Adding organizers to month view tooltip and mobile -<\/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\/adding-organizers-to-month-view-tooltip-and-mobile\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding organizers to month view tooltip and mobile -\" \/>\n<meta property=\"og:description\" content=\"We added the organizer (in our case, performer), to the list view of the events. We also added it to the tooltip and mobile list for the month view. Now that we can have multiple organizers for an event, we&#8217;d like to list them all. We have it working for the list views, but when [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-23T18:37:58+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\/adding-organizers-to-month-view-tooltip-and-mobile\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/\",\"name\":\"Adding organizers to month view tooltip and mobile -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-22T22:09:06+00:00\",\"dateModified\":\"2015-09-23T18:37:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/#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\":\"Adding organizers to month view tooltip and mobile\"}]},{\"@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":"Adding organizers to month view tooltip and mobile -","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\/adding-organizers-to-month-view-tooltip-and-mobile\/","og_locale":"en_US","og_type":"article","og_title":"Adding organizers to month view tooltip and mobile -","og_description":"We added the organizer (in our case, performer), to the list view of the events. We also added it to the tooltip and mobile list for the month view. Now that we can have multiple organizers for an event, we&#8217;d like to list them all. We have it working for the list views, but when [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/","article_modified_time":"2015-09-23T18:37:58+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\/adding-organizers-to-month-view-tooltip-and-mobile\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/","name":"Adding organizers to month view tooltip and mobile -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-22T22:09:06+00:00","dateModified":"2015-09-23T18:37:58+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizers-to-month-view-tooltip-and-mobile\/#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":"Adding organizers to month view tooltip and mobile"}]},{"@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\/1007655","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":3,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1007655\/revisions"}],"predecessor-version":[{"id":1007961,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1007655\/revisions\/1007961"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1007655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}