AnsweredAssumed Answered

Share surf components' reuse

Question asked by hkır on Apr 21, 2010
Latest reply on Apr 21, 2010 by hkır
Hi, I want to develop my own Document Library and as a first step I developed my own document list. But I also want to reuse existing alfresco components, such as left handside tree (Library). For this purpose I wrote this template (actually very similar with documentlibrary template);

<@templateBody>
   <div id="alf-hd">
      <@region id="header" scope="global" protected=true />
      <@region id="title" scope="global" protected=true />
      <@region id="navigation" scope="global" protected=true />
   </div>
   <div id="bd">
      <@region id=doclibType + "actions-common" scope="template" protected=true />
      <div class="yui-t1">
         <div id="yui-main">
            <div class="yui-b" id="divDocLibraryDocs">
               <@region id=doclibType + "toolbar" scope="template" protected=true />
               <@region id="mydoclist" scope="page" protected=true />
            </div>
         </div>
         <div class="yui-b" id="divDocLibraryFilters">
            <@region id=doclibType + "filter" scope="template" protected=true />
            <@region id=doclibType + "tree" scope="template" protected=true />
            <@region id=doclibType + "tags" scope="template" protected=true />
            <@region id=doclibType + "fileplan" scope="template" protected=true />
            <@region id=doclibType + "savedsearch" scope="template" protected=true />
         </div>
      </div>
   </div>
</@>
<@templateFooter>
   <div id="alf-ft">
      <@region id="footer" scope="global" protected=true />
   </div>
</@>


When I displayed this page I can only see header, mydoclist and footer regions. And for the other regions I see "unbound-region-X"(such as; unbound-region-title). At first I thought this is related with the scopes, but while header, title, navigation and footer regions all are global, I can only see header and footer.
Is there a way of using existing surf components. Thank you very much.

Outcomes