<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Template-scoped header errors in utilities.js in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/template-scoped-header-errors-in-utilities-js/m-p/234503#M187633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to create site-scoped headers so that the header bar has different components based on which site you're on. But I'm starting with a simple common header for all sites, which would be different from the global header visible for other pages (user primarily).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I figured I could create&amp;nbsp; &amp;lt;@region id="header" scope="template"&amp;gt; and create a template for this header. I'm calling it collaboration-header in keeping with the documentlibrary components being called collaboration-*. This works well, but when I navigate to the documentlibrary I get nothing in the pane that displays the folders and files, the Library block has nothing in it, and the links in the Documents block all go nowhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked further into this and the error I'm getting is in utilities.js. Firebug console gives me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;this._events is undefined at utilities.js (line 37)&lt;BR /&gt;…&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;utilities.js is /share/yui/utilities/utilities.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The steps I followed to create a template-scoped header (which I'm assuming to be what I need to do to have the header be localized to sites only):&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Modify web-extension/templates/org/alfresco/documentlibrary.ftl to have &amp;lt;%region id="header" scope="template" protected=true /&amp;gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Create web-extension/site-webscripts/org/alfresco/components/header/collaboration-header.get.[desc.xml, head.ftl, html.ftl, js] all copied from header.*&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Modify collaboration-header.desc.xml's url to point to /components/header/collaboration-header&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Leave collaboration-header.get.head.ftl the same as header.get.head.ftl, and collaboration-header.get.js the same as header.get.js&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Customize collaboration-header.get.html.ftl as I need&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;I feel like I'm missing something that should be included (like a javascript file that ensures that this._events is not undefined) but I can't figure out what the global scoped header is doing that is different from the template-scoped collaboration-header.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is my understanding of scope and customization incorrect? What am I doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2009 14:16:38 GMT</pubDate>
    <dc:creator>cybertoast</dc:creator>
    <dc:date>2009-11-13T14:16:38Z</dc:date>
    <item>
      <title>Template-scoped header errors in utilities.js</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/template-scoped-header-errors-in-utilities-js/m-p/234503#M187633</link>
      <description>I'm trying to create site-scoped headers so that the header bar has different components based on which site you're on. But I'm starting with a simple common header for all sites, which would be different from the global header visible for other pages (user primarily).I figured I could create&amp;nbsp; &amp;lt;@</description>
      <pubDate>Fri, 13 Nov 2009 14:16:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/template-scoped-header-errors-in-utilities-js/m-p/234503#M187633</guid>
      <dc:creator>cybertoast</dc:creator>
      <dc:date>2009-11-13T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Template-scoped header errors in utilities.js</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/template-scoped-header-errors-in-utilities-js/m-p/234504#M187634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forgot to add that I also modified web-extension/site-data/components/template.header.documentlibrary.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;component&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;scope&amp;gt;template&amp;lt;/scope&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;region-id&amp;gt;header&amp;lt;/regien-id&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;source-id&amp;gt;documentlibrary&amp;lt;/source-id&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;url&amp;gt;/components/header/collaboration-header&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;lt;/component&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 14:36:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/template-scoped-header-errors-in-utilities-js/m-p/234504#M187634</guid>
      <dc:creator>cybertoast</dc:creator>
      <dc:date>2009-11-13T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Template-scoped header errors in utilities.js</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/template-scoped-header-errors-in-utilities-js/m-p/234505#M187635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem turned out to be because I had removed the sites menu from the header, and the client-side code was blowing up when it tried to execute anything related to the *sites-menu element, which of course was missing!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The lesson here is to keep in mind that there is so much client-side link to the back-end that things will break if UI elements are changed in any way without looking in great detail at the events that are defined in the back-end. Freemarker (HTML), YUI and alfresco are tied very closely together, so always do things with great attention to detail!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 17:41:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/template-scoped-header-errors-in-utilities-js/m-p/234505#M187635</guid>
      <dc:creator>cybertoast</dc:creator>
      <dc:date>2009-11-19T17:41:39Z</dc:date>
    </item>
  </channel>
</rss>

