cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing document/page title

cybertoast
Champ in-the-making
Champ in-the-making
I want to set the document.title (browser title) of the site and document that I'm on to be more relevant. Right now the title says Alfresco Share >> Document Library (or something similar).
I'm currently setting the title by changing import/alfresco-template.ftl as follows:

<#– Look up page title from message bundles where possible –>
<#assign pageTitle = page.title />
<#if page.titleId??>
   <#assign pageTitle = (msg(page.titleId))!page.title>
</#if>
<#if context.properties["page-titleId"]??>
   <#assign pageTitle = msg(context.properties["page-titleId"])>
</#if>
<#if page.url.templateArgs.site??>
  <#assign pageTitle = page.url.templateArgs.site + " &laquo; " + pageTitle>
</#if>

Is this the correct way to make these changes or is the a more recommended approach? Also is there documentation somewhere on what variables alfresco makes available in freemarker templates (like the page object, for example)?
1 REPLY 1

gronfelt
Champ in-the-making
Champ in-the-making
Also is there documentation somewhere on what variables alfresco makes available in freemarker templates (like the page object, for example)?

I believe this is what you are looking for:

http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.