Web Script: org/alfresco/components/title/search-title.get
Generated from /share/service/script/org/alfresco/components/title/search-title.get on Jun 17, 2026 7:48:29 AM

Script Properties
Id:org/alfresco/components/title/search-title.get
Short Name:Search Title
Description:Title component used in the search page
Authentication:none
Transaction:none
Method:GET
URL Template:/components/title/search-title
Format Style:any
Default Format:html
Negotiated Formats:[undefined]
Implementation:class org.alfresco.web.scripts.DeclarativeWebScript
Extensions:[undefined]

Store: classpath:alfresco/site-webscripts

File: org/alfresco/components/title/search-title.get.desc.xml
<webscript>
  <shortname>Search Title</shortname>
  <description>Title component used in the search page</description>
  <url>/components/title/search-title</url>
</webscript>
File: org/alfresco/components/title/search-title.get.head.ftl
<link rel="stylesheet" type="text/css" href="${page.url.context}/components/title/search-title.css"/>

File: org/alfresco/components/title/search-title.get.html.ftl
<div class="page-title search-title theme-bg-color-1">
	<h1><span>${msg("header.searchresults")}</span></h1>	
	<#if page.url.templateArgs.site??>
      <div>
         <span class="navigation-item backLink">
            <a href="${url.context}/page/site/${page.url.templateArgs.site}/dashboard">${msg("header.backlink", profile.title)}</a>
         </span>
      </div>
   </#if>
   <div class="clear"></div>
</div>
File: org/alfresco/components/title/search-title.get.js
if (page.url.templateArgs.site != undefined)
{
   // Call the repository for the site profile
   var json = remote.call("/api/sites/" + page.url.templateArgs.site);

   var profile =
   {
      title: "[Not Found]"
   };

   if (json.status == 200)
   {
      // Create javascript objects from the repo response
      var obj = eval('(' + json + ')');
      if (obj && obj.title)
      {
         profile = obj;
      }
   }
   // Prepare the model
   model.profile = profile;
}
File: org/alfresco/components/title/search-title.get.properties
header.searchresults=Search Results
header.backlink=Back to {0} Site

Store: classpath:alfresco/webscripts

[No implementation files]