cancel
Showing results for 
Search instead for 
Did you mean: 

Share surf components' reuse

hkır
Champ in-the-making
Champ in-the-making
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.
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
Make sure you've also got the component bindings set-up in the site-data / components folder.

Thanks,
Mike

hkır
Champ in-the-making
Champ in-the-making
Thank you very much for your fast response Mike. That is the thing I was looking for.