<?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 TemplateNode.getUrl() in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/templatenode-geturl/m-p/91892#M62764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have noticed the TemplateNode.getUrl() does not include the context in the url.&amp;nbsp; As a result the returned URL, without adding the context, seems unuasable.&amp;nbsp; Am I missing something here?&amp;nbsp; How does one deal with the url context without hardcoding it?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it is available through the FacesContext, or an HTTPServletRequest, but what if you have neither?&amp;nbsp; i.e. a Utility class that may be run outside of a FacesContext or and HTTPServletRequest.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there methods of dealing with URL's with no context and making them work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appriciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2007 15:42:36 GMT</pubDate>
    <dc:creator>nyronian</dc:creator>
    <dc:date>2007-07-23T15:42:36Z</dc:date>
    <item>
      <title>TemplateNode.getUrl()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/templatenode-geturl/m-p/91892#M62764</link>
      <description>I have noticed the TemplateNode.getUrl() does not include the context in the url.&amp;nbsp; As a result the returned URL, without adding the context, seems unuasable.&amp;nbsp; Am I missing something here?&amp;nbsp; How does one deal with the url context without hardcoding it?&amp;nbsp; I know it is available through the FacesContext,</description>
      <pubDate>Mon, 23 Jul 2007 15:42:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/templatenode-geturl/m-p/91892#M62764</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2007-07-23T15:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: TemplateNode.getUrl()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/templatenode-geturl/m-p/91893#M62765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In 2.1 you have the ${url.context} value that will give you the context (such as /alfresco) - previous to 2.1 you have to hardcode that value into your templates, such as &amp;lt;a href="/alfresco${node.url}"&amp;gt;…&amp;lt;/a&amp;gt;&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>Mon, 23 Jul 2007 16:57:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/templatenode-geturl/m-p/91893#M62765</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-07-23T16:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: TemplateNode.getUrl()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/templatenode-geturl/m-p/91894#M62766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick response Kevin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am on 2.0 right now.&amp;nbsp; Is the FacesContext or the HTTPServletRequest the only way to retreive that data?&amp;nbsp; How are you doing it in 2.1?&amp;nbsp; I was putting the context in a static variable in a class with a static initializer.&amp;nbsp; The problem is, if it is first initialized by a servlet then I have to pass in the servletrequest to get the context.&amp;nbsp; Just curious if you know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if there are any issues in 2.0 around changing the context?&amp;nbsp; Is /alfresco hardcoded within the system anywhere that will cause the system to break?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 17:15:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/templatenode-geturl/m-p/91894#M62766</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2007-07-23T17:15:42Z</dc:date>
    </item>
  </channel>
</rss>

