AnsweredAssumed Answered

New page is blank - What did I miss

Question asked by michaelc on Aug 25, 2010
So I am trying to add a new page to my dashboard site and when I click the link I get a a blank page and a backend error of

12:15:01,722  WARN  [extensions.webscripts.WebTemplateProcessor] Unable to find
a valid template path for uri: org/alfresco/profile-search

I thought I had it, but I missed something, anyone give my a clue.

1. in header.get.html.ftl I add the following line, this works fine.
   <span class="menu-item-icon search-icon"><a href="${url.context}/page/profile-search">${msg("link.profileSearch")}</a></span>

2. created a directory /alfresco/tomcat/shared/classes/alfresco/web-extensions/site-webscripts/org/alfresco/components/profile-search
3. add the descriptor file into this directory. (profile-search.get.desc.xml)

<webscript>
  <shortname>profile-search</shortname>
  <description>Profile Search component</description>
  <url>/components/profile-search/profile-search</url>
</webscript>

4. copied people-finder.get.head.ftl,  people-finder.get.html.ftl,  people-finder.get.properties into the profile-search folder and renamed them
profile-search.get.head.ftl,  profile-search.get.html.ftl,  profile-search.get.properties.

5. in :\Alfresco\tomcat\shared\classes\alfresco\web-extension\site-data\pages
create profile-search.xml

<?xml version='1.0' encoding='UTF-8'?>
<page>
   <title>Search Profiles</title>
   <title-id>page.profileSearch.title</title-id>
   <description>Profile Search page</description>
   <description-id>page.profileSearch.description</description-id>
   <template-instance>profile-search</template-instance>
   <authentication>user</authentication>
</page>

6 in :\Alfresco\tomcat\shared\classes\alfresco\web-extension\site-data\template-instances
create profile-search.xml

<?xml version='1.0' encoding='UTF-8'?>
<template-instance>
   <template-type>org/alfresco/profile-search</template-type>
</template-instance>

7 . in :\Alfresco\tomcat\shared\classes\alfresco\web-extension\site-data\components
create template.profile-search.profile-search.xml

<?xml version='1.0' encoding='UTF-8'?>
<component>
   <scope>template</scope>
   <region-id>profile-search</region-id>
   <source-id>invite</source-id>
   <url>/components/profile-search/profile-search</url>
   <properties>
      <setFocus>true</setFocus>
   </properties>
</component>

8.  in :\Alfresco\tomcat\shared\classes\alfresco\web-extension\templates\org\alfresco\profile-search
create profile-search.ftl
9. Restarted the server.

Outcomes