{"action":"opened","issue":{"url":"https://api.github.com/repos/collective/plonetheme.booster/issues/4","repository_url":"https://api.github.com/repos/collective/plonetheme.booster","labels_url":"https://api.github.com/repos/collective/plonetheme.booster/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/collective/plonetheme.booster/issues/4/comments","events_url":"https://api.github.com/repos/collective/plonetheme.booster/issues/4/events","html_url":"https://github.com/collective/plonetheme.booster/issues/4","id":191326318,"number":4,"title":"Error activating theme in Plone 5.0.6","user":{"login":"rafaeltcc","id":3977779,"avatar_url":"https://avatars.githubusercontent.com/u/3977779?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaeltcc","html_url":"https://github.com/rafaeltcc","followers_url":"https://api.github.com/users/rafaeltcc/followers","following_url":"https://api.github.com/users/rafaeltcc/following{/other_user}","gists_url":"https://api.github.com/users/rafaeltcc/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaeltcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaeltcc/subscriptions","organizations_url":"https://api.github.com/users/rafaeltcc/orgs","repos_url":"https://api.github.com/users/rafaeltcc/repos","events_url":"https://api.github.com/users/rafaeltcc/events{/privacy}","received_events_url":"https://api.github.com/users/rafaeltcc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-23T16:49:43Z","updated_at":"2016-11-23T16:49:43Z","closed_at":null,"body":"\r\nIn a fresh Plone 5.0.6 install I activate the theme installed by buildout and I get the following error message:\r\n\r\n    Tag section invalid [49:32]\r\n    Tag header invalid [53:43]\r\n    Tag nav invalid [57:57]\r\n    ID portal-searchbox already defined [70:38]\r\n    Tag aside invalid [93:41]\r\n    Tag main invalid [96:78]\r\n    Tag footer invalid [109:39]\r\n\r\n<rules xml:id=\"r0\">\r\n\r\n  <theme href=\"index.html\" xml:id=\"r1\"/>\r\n  <notheme if=\"$ajax_load\" xml:id=\"r2\"/>\r\n\r\n  <!-- Toolbar -->\r\n  <before css:theme-children=\"body\" css:content-children=\"#edit-bar\" css:if-not-content=\".ajax_load\" css:if-content=\".userrole-authenticated\" xml:id=\"r3\"/>\r\n  <replace css:theme=\"#anonymous-actions\" css:content-children=\"#portal-personaltools-wrapper\" css:if-not-content=\".ajax_load\" css:if-content=\".userrole-anonymous\" xml:id=\"r4\"/>\r\n  <drop attributes=\"class\" css:content=\"#edit-bar a.pat-plone-modal\" xml:id=\"r5\"/>\r\n\r\n  <notheme css:if-not-content=\"#visual-portal-wrapper\" xml:id=\"r6\"/>\r\n\r\n  <rules css:if-content=\"#portal-top\" xml:id=\"r7\">\r\n    <!-- Attributes -->\r\n    <copy attributes=\"*\" css:theme=\"html\" css:content=\"html\" xml:id=\"r8\"/>\r\n    <!-- Base tag -->\r\n    <before css:theme=\"head title\" css:content=\"head base\" xml:id=\"r9\"/>\r\n    <!-- Title -->\r\n    <replace css:theme=\"head title\" css:content=\"head title\" xml:id=\"r10\"/>\r\n    <!-- Pull in Plone Meta -->\r\n    <after css:theme-children=\"head\" css:content=\"head meta\" xml:id=\"r11\"/>\r\n    <!-- dont use Plone icons, use the theme's -->\r\n    <drop css:content=\"head link[rel='apple-touch-icon'], head link[rel='shortcut icon']\" xml:id=\"r12\"/>\r\n    <!-- CSS -->\r\n    <after css:theme-children=\"head\" css:content=\"head link\" xml:id=\"r13\"/>\r\n    <after css:theme-children=\"head\" css:content=\"head style\" xml:id=\"r14\"/>\r\n    <!-- Script -->\r\n    <after css:theme-children=\"head\" css:content=\"head script\" xml:id=\"r15\"/>\r\n  </rules>\r\n\r\n  <!-- Copy over the id/class attributes on the body tag.\r\n       This is important for per-section styling -->\r\n  <copy attributes=\"*\" css:content=\"body\" css:theme=\"body\" xml:id=\"r16\"/>\r\n\r\n  <!-- Logo -->\r\n  <replace css:theme=\".navbar-brand\" css:content=\"#portal-logo\" xml:id=\"r17\"/>\r\n\r\n  <!-- Portal Navigation -->\r\n  <replace css:content-children=\"#portal-globalnav\" css:theme-children=\"#navbar\" xml:id=\"r18\"/>\r\n\r\n  <replace css:theme-children=\".navbar-nav\" css:content-children=\".plone-navbar-nav\" xml:id=\"r19\"/>\r\n\r\n  <xsl:template match=\"//ul//@class[contains(., 'selected')]\">\r\n    <xsl:attribute name=\"class\"><xsl:value-of select=\".\"/> active</xsl:attribute>\r\n  </xsl:template>\r\n\r\n  <!-- dynamic slider content only for addon -->\r\n  <replace if=\"$is_zip\" css:theme=\"#carousel-example-generic\" css:content=\"#carousel-example-generic\" href=\"/slider-images/@@slider-images\" xml:id=\"r20\"/>\r\n\r\n  <!-- static banner for zip -->\r\n  <replace css:theme=\"#site-banner\" if-not=\"$is_zip\" xml:id=\"r21\">\r\n    <div id=\"site-banner-img\">\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n            <div class=\"col-md-10 col-md-offset-1\">\r\n                <div class=\"fh5co-owl-text-wrap item\">\r\n                    <div class=\"fh5co-owl-text site-heading text-center to-animate\">\r\n                        <h1 class=\"fh5co-lead\">\r\n                          <xsl:value-of select=\"$site_title\"/>\r\n                        </h1>\r\n                        <h2 class=\"fh5co-sub-lead\">\r\n                          <xsl:value-of select=\"$slogan\"/>\r\n                        </h2>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </replace>\r\n\r\n  <!-- front-page wrap -->\r\n  <drop css:theme=\"#carousel-example-generic\" css:if-not-content=\".section-front-page\" xml:id=\"r22\"/>\r\n  <drop css:theme=\"#carousel-example-generic\" css:if-content=\".template-edit\" xml:id=\"r23\"/>\r\n  <drop css:theme=\"#carousel-example-generic\" css:if-content=\".template-topbar-manage-portlets\" xml:id=\"r24\"/>\r\n\r\n  <drop css:theme=\"#site-banner\" css:if-not-content=\".section-front-page\" xml:id=\"r25\"/>\r\n  <drop css:theme=\"#site-banner\" css:if-content=\".template-edit\" xml:id=\"r26\"/>\r\n  <drop css:theme=\"#site-banner\" css:if-content=\".template-topbar-manage-portlets\" xml:id=\"r27\"/>\r\n\r\n  <!-- Portal-searchbox -->\r\n  <replace css:content=\"#portal-searchbox\" css:theme=\"#portal-searchbox\" xml:id=\"r28\"/>\r\n\r\n  <replace css:content=\"div#portal-searchbox input.searchButton\" xml:id=\"r29\">\r\n    <button class=\"search-icon\" type=\"submit\">\r\n      <i class=\"icon-search\"/>\r\n    </button>\r\n  </replace>\r\n\r\n  <replace css:content=\"div.mobile-live-search #portal-searchbox input.searchButton\" xml:id=\"r30\">\r\n    <button class=\"search-icon\">\r\n      <i class=\"icon-search\"/>\r\n    </button>\r\n  </replace>\r\n\r\n  <!-- login link -->\r\n  <after css:theme-children=\".navbar-nav\" css:content=\"#portal-anontools\" css:if-not-content=\".ajax_load\" css:if-content=\".userrole-anonymous\" xml:id=\"r31\"/>\r\n\r\n  <rules css:if-content=\"#portal-anontools\" xml:id=\"r32\">\r\n    <strip css:content=\"div#portal-anontools ul\" xml:id=\"r33\"/>\r\n    <strip css:content=\"#portal-anontools\" xml:id=\"r34\"/>\r\n  </rules>\r\n\r\n  <!-- Full-width breadcrumb -->\r\n  <replace css:theme-children=\"#above-content\" css:content-children=\"#viewlet-above-content\" xml:id=\"r35\"/>\r\n\r\n  <!-- Alert message -->\r\n  <replace css:theme-children=\"#global_statusmessage\" css:content-children=\"#global_statusmessage\" xml:id=\"r36\"/>\r\n\r\n  <!-- Central column -->\r\n  <replace css:theme=\"#content-container\" method=\"raw\" xml:id=\"r37\">\r\n    <xsl:variable name=\"central\">\r\n      <xsl:if test=\"//aside[@id='portal-column-one'] and //aside[@id='portal-column-two']\">col-xs-12 col-sm-6</xsl:if>\r\n      <xsl:if test=\"//aside[@id='portal-column-two'] and not(//aside[@id='portal-column-one'])\">col-xs-12 col-sm-9</xsl:if>\r\n      <xsl:if test=\"//aside[@id='portal-column-one'] and not(//aside[@id='portal-column-two'])\">col-xs-12 col-sm-9</xsl:if>\r\n      <xsl:if test=\"not(//aside[@id='portal-column-one']) and not(//aside[@id='portal-column-two'])\">col-xs-12 col-sm-12</xsl:if>\r\n    </xsl:variable>\r\n\r\n    <div class=\"{$central}\">\r\n      <div class=\"row\">\r\n        <div class=\"box\">\r\n          <div class=\"col-xs-12 col-sm-12\">\r\n            <xsl:apply-templates css:select=\"#content\"/>\r\n          </div>\r\n          <div class=\"clearFix\"/>\r\n        </div>\r\n      </div>\r\n      <section id=\"viewlet-below-content-body\" class=\"row\">\r\n        <div class=\"box\">\r\n          <div class=\"col-xs-12 col-sm-12\">\r\n            <xsl:copy-of css:select=\"#viewlet-below-content\"/>\r\n          </div>\r\n          <div class=\"clearFix\"/>\r\n        </div>\r\n      </section>\r\n    </div>\r\n  </replace>\r\n\r\n  <!-- Left column -->\r\n  <rules css:if-content=\"#portal-column-one\" xml:id=\"r38\">\r\n    <replace css:theme=\"#column1-container\" xml:id=\"r39\">\r\n      <div class=\"col-xs-6 col-sm-3 sidebar-offcanvas\">\r\n        <aside id=\"portal-column-one\">\r\n          <xsl:copy-of css:select=\"#portal-column-one > *\"/>\r\n        </aside>\r\n      </div>\r\n    </replace>\r\n  </rules>\r\n\r\n  <!-- Right column -->\r\n  <rules css:if-content=\"#portal-column-two\" xml:id=\"r40\">\r\n    <replace css:theme=\"#column2-container\" xml:id=\"r41\">\r\n      <div class=\"col-xs-6 col-sm-3 sidebar-offcanvas\" role=\"complementary\">\r\n        <aside id=\"portal-column-two\">\r\n          <xsl:copy-of css:select=\"#portal-column-two > *\"/>\r\n        </aside>\r\n      </div>\r\n    </replace>\r\n  </rules>\r\n\r\n  <!-- footer -->\r\n  <replace css:theme-children=\"#portal-footer-wrapper\" css:content-children=\"#portal-footer-wrapper\" xml:id=\"r42\"/>\r\n\r\n  <!-- add alert to invalid fields -->\r\n  <xsl:template match=\"//div//@class[contains(., 'fieldErrorBox')]\">\r\n    <xsl:attribute name=\"class\">\r\n      <xsl:value-of select=\".\"/> alert-danger\r\n    </xsl:attribute>\r\n  </xsl:template>\r\n\r\n</rules>"}}
{"actor":{"display_login":"rafaeltcc"}}