AnsweredAssumed Answered

custom site page does not render as expected !

Question asked by bhashitha on Jun 5, 2013
Latest reply on Jun 6, 2013 by bhashitha
Hi all,
Im using alfresco 4.2c and during the past few dayz i really tried to crete a site page(such as calender,Disscussions etc.) which is "Knowledge Base" and render that with few dashlets.I followed the alfresco 3.4
(http://docs.alfresco.com/3.4/index.jsp?topic=%2Fcom.alfresco.Enterprise_3_4_0.doc%2Fconcepts%2Fsite-component-add.html)
documentation for create the page site and followed the instructions properly.
But after creating the page site and add it into a site and when i click the particular tab(link which is at navigation bar) it displays only the header section and footer section for particular Knowledge Base site page

the scope='template' does not render :(

All the codings are same as the codes which is mentioned at the above given link .

knowledgebase.get.desc.xml

<blockcode>
<webscript>
   <shortname>Knowledge Base</shortname>
   <description>A summary of all Knowledge Base articles</description>
   <family>site-dashlet</family>
   <url>/components/knowledgebase</url>
</webscript>
</blockcode>


knowledgebase.get.desc.xml

<blockcode>
<div class="dashlet knowledgebase">
   <div class="title">${msg("header.knowledgebase")}</div>
   <div class="body">
      <div class="msg">
<#if (error?exists)>
         <div>${msg("error.call")}</div>         
<#else>
         <table>
            <tr>
               <td>${msg("label.all")}:</td>
               <td>${all}</td>
            </tr>
            <tr>
               <td><a href="${url.context}/page/site/${page.url.templateArgs.site!""}/documentlibrary?filter=tag&filterData=draft#" class="theme-color-1">${msg("label.drafts")}</a>:</td>
               <td>${drafts}</td>
            </tr>
            <tr>
               <td><a href="${url.context}/page/site/${page.url.templateArgs.site!""}/documentlibrary?filter=tag&filterData=pending#" class="theme-color-1">${msg("label.pendingApprovals")}</a>:</td>
               <td>${pendingApprovals}</td>                  
            </tr>
            <tr>
               <td><a href="${url.context}/page/site/${page.url.templateArgs.site!""}/documentlibrary?filter=tag&filterData=current#" class="theme-color-1">${msg("label.current")}</a>:</td>
               <td>${current}</td>
            </td>
            <tr>
               <td><a href="${url.context}/page/site/${page.url.templateArgs.site!""}/documentlibrary?filter=tag&filterData=archived#" class="theme-color-1">${msg("label.archived")}</a>:</td>
               <td>${archived}</td>
            </td>
         </table>
</#if>
      </div>
   </div>
</div>
</blockcode>

org.alfresco.knowledgebase.ftl

<blockcode>
<#include "include/alfresco-template.ftl" />

<@templateHeader/>

<@templateBody>
   <div id="hd">
      <@region id="header" scope="global" protected=true />
      <@region id="title" scope="template" protected=true />
      <@region id="navigation" scope="template" protected=true />
   </div>
   <div id="bd">
      <div>
         <div id="yui-main">
            <div id="divknowledgebaseList">
               <@region id="knowledgebase" scope="template" />
            </div>
         </div>
      </div>
   </div>
</@>

<@templateFooter>
   <div id="ft">
      <@region id="footer" scope="global" protected=true />
   </div>
</@>
</blockcode>

and i have implemented the template.knowledgebase.knowledgebase.xml, template.navigation.knowledgebase.xml, template.title.knowledgebase.xml and template.toolbar.knowledgebase.xml files as exactly mentioned in the documentation…


but Knowledge Base site page doesnt render as expected and it only output header and the footer.It doesnt output navigation bar, dashlets that i have mentioned within the templates files


please help to overcome this problem.Any support, is really appreciated :)



Outcomes