AnsweredAssumed Answered

Issue preventing component rendering with extension module

Question asked by alejandrogarciaseco on Dec 7, 2012
Latest reply on Dec 10, 2012 by alejandrogarciaseco
Hi guys,

I'm trying to prevent rendering the "title" ("title" region) within any site's "documentlibrary" page. After following the tutorials in the official documentation (http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/tasks/tu-40-hide-content.html and http://docs.alfresco.com/4.1/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Ftu-40-hide-content.html)  and some blog post of Dave Drapper I got this extension definition:

<extension>
   <modules>
      <module>
         <id>Customization applied to sites' document library.</id>
         <auto-deploy>true</auto-deploy>
         <components>
            <component>
               <scope>template</scope>
               <region-id>title</region-id>
               <source-id>site/{site}/documentlibrary</source-id>
               <sub-components>
                  <sub-component id="default">
                     <evaluations>
                        <evaluation id="guaranteedToHide">
                           <render>false</render>
                        </evaluation>
                     </evaluations>
                  </sub-component>
               </sub-components>
            </component>
         </components>
      </module>
   </modules>
</extension>

If I change the <source-id> value to the dashboard page (site/{site}/dashboard) and the <scope> value to "page", it works. I presume the problem is related to the "template" scope, which I got after using SurfBug. I also tried with other scopes unsuccessfully. May be the reason that "template" scoped regions cannot be managed by extensions? May be I'm doing anything wrong?

Thanks in advance.

Regards.

Outcomes