cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot locate template [Solved]

michaelc
Champ on-the-rise
Champ on-the-rise
I have created a page but I have one minor error and I don't see the issue.
I see the following error code in the page.

An error has occured in the Share component: /share/service/components/profile-search/profile-search-title.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 07270000 Cannot locate template processor for template org/alfresco/components/profile-search/profile-search-title.get.html
Server: Alfresco Spring WebScripts - v1.0.0 (Milestone 3 357) schema 1,000
Time: Aug 27, 2010 10:16:27 AM

I don't understand why.

Now My web-extension\templates\org\alfresco\profile-search.ftl looks like this

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

<@templateHeader/>

<@templateBody>
   <div id="alf-hd">
      <@region id="header" scope="global" protected=true/>
      <@region id="title" scope="template" protected=true />
   </div>
   <div id="bd">
      <@region id="profile-search" scope="template" />
   </div>
</@>

<@templateFooter>
   <div id="ft">
      <@region id="footer" scope="global" protected=true />
   </div>
</@>
in web-extension\site-data\components\template.title.profile-search.xml

<?xml version='1.0' encoding='UTF-8'?>
<component>
   <scope>template</scope>
   <region-id>title</region-id>
   <source-id>profile-search</source-id>
   <url>/components/profile-search/profile-search-title</url>
</component>
in site-webscripts/org/alfresco/components/profile-search/profile-search-title.get.desc.xml

<webscript>
  <shortname>Profile Search Title</shortname>
  <description>Title component used in the people finder page</description>
  <url>/components/profile-search/profile-search-title</url>
</webscript>

in profile-search-title.get.ftl

<div class="page-title theme-bg-color-1 theme-border-1">
   <h1 class="theme-color-3"><span>${msg("header")}</span></h1>
</div>

any help would be very appreciated, thanks
Michael C
2 REPLIES 2

michaelc
Champ on-the-rise
Champ on-the-rise
I can be a dambass at times.

The file should be profile-search-title.get.html.ftl not profile-search-title.get.ftl

  damn there is a lot of parts in this  :wink:

aleksczajka
Champ in-the-making
Champ in-the-making
you don't seem like a dumbass to me :-). this just helped me big time. i had no idea you had to even have the "ftl" extension 🙂