<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Server name and port in email template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85395#M57613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As Sourcesense at a client, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we implemented a request root object (for FTL as for JS) which wraps the current FacesContext HttpServletRequest object, and exposes it to both Freemarker and Javascript to make url, context path, etc. environment independent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not thoroughly tested, by it worked ATM for both in web client FTLs (presentation templates + JSF embedded FTLs) and in the mail template, which is pretty much what we needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gab&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 10:10:30 GMT</pubDate>
    <dc:creator>mindthegab</dc:creator>
    <dc:date>2008-03-31T10:10:30Z</dc:date>
    <item>
      <title>Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85388#M57606</link>
      <description>In urls appearing in an FTL email template, how to avoid hardcoding the server name and port in the template ?Default email templates contain hardcoded server name and port, such as http://yourserver:8080/But we would like to replace this by the server name/port which effectively sent the mail (deve</description>
      <pubDate>Wed, 02 May 2007 11:22:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85388#M57606</guid>
      <dc:creator>dgenard</dc:creator>
      <dc:date>2007-05-02T11:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85389#M57607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently there is not a nice solution for this in 2.0. But we have implemented a "url" object for our FreeMarker template API in Alfresco 2.1, so you will do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${url.context}/something/moreurl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the correct server&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort will be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 13:31:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85389#M57607</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-05-03T13:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85390#M57608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${url.context} returns "alfresco" but no server&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort&amp;nbsp; (v2.1.1)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 09:29:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85390#M57608</guid>
      <dc:creator>pcuvecle</dc:creator>
      <dc:date>2008-02-05T09:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85391#M57609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On a similar subject, this also needs to be altered in the RSS feed template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just looking at this: is the file RSS_2.0_recent_docs.ftl cached &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;somewhere, because i have just altered the file but Alfresco does not seem &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to have responded to the changes, even through a restart?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:32:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85391#M57609</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2008-02-05T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85392#M57610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;${url.context} returns "alfresco" but no server&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort&amp;nbsp; (v2.1.1)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You are quite right - my mistake the external server name/port is only available in the WebScript API through the absurl() template method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;href="${absurl("/myrelativeurl")}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For plain non-webscript templates, it will have to be hardcoded in the template for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:43:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85392#M57610</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2008-02-05T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85393#M57611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;On a similar subject, this also needs to be altered in the RSS feed template.&lt;BR /&gt;&lt;BR /&gt;I was just looking at this: is the file RSS_2.0_recent_docs.ftl cached &lt;BR /&gt;somewhere, because i have just altered the file but Alfresco does not seem &lt;BR /&gt;to have responded to the changes, even through a restart?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you changed the right file i.e. the repo object stored in /Company Home/Data Dictionary/RSS Templates&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:53:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85393#M57611</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2008-02-05T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85394#M57612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops, no!&amp;nbsp; I was trying to do something else at the some time &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and was editing the copy in the exploded .war.&amp;nbsp;&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:55:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85394#M57612</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2008-02-05T11:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Server name and port in email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85395#M57613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As Sourcesense at a client, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we implemented a request root object (for FTL as for JS) which wraps the current FacesContext HttpServletRequest object, and exposes it to both Freemarker and Javascript to make url, context path, etc. environment independent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not thoroughly tested, by it worked ATM for both in web client FTLs (presentation templates + JSF embedded FTLs) and in the mail template, which is pretty much what we needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gab&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 10:10:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/server-name-and-port-in-email-template/m-p/85395#M57613</guid>
      <dc:creator>mindthegab</dc:creator>
      <dc:date>2008-03-31T10:10:30Z</dc:date>
    </item>
  </channel>
</rss>

