<?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 accessing content repsitory in WCM in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107953#M75648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to understand how to access things like images that are placed in the content repository in the WCM forms.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is my situation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I have a ftl template that displays the images from the content repository using the below code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;#assign child1 = companyhome.childByNamePath["Data Dictionary/Images/RoofHeat/roofheat_blueheat2_thumb.jpg"] &amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;#if child1.isDocument &amp;amp;&amp;amp; (child1.mimetype = "image/png" || child1.mimetype = "image/jpeg" || child1.mimetype = "image/gif")&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class="pics"&amp;gt;&amp;lt;a href="/alfresco${child1.url}" target="_blank"&amp;gt;&amp;lt;img src="/alfresco${child1.url}" width="200" height="126" border="0"/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This works just fine and when I preview the "Presentation Template" in the content manager, it looks perfect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; I then added the following code (with an xsd to match)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;${Welcome.Welcome_Message}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The plan is to use the xsd to create dynamic content templates and generate them to html.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; In the "Create Web Content Wizard" thing seem to work fine.&amp;nbsp; It reads the xsd, allows me to enter my dynamic content, creates the new xml file, but &lt;/SPAN&gt;&lt;STRONG&gt;cannot&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN&gt; create the new merged html file.&amp;nbsp; I get the following error on the final step of the wizard:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Error generating rendition using index.ftl: freemarker.template.TemplateModelException: Cannot perform an XPath query against an empty node set. &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I am assuming it has having a hard time resolving my xpath to my images.&amp;nbsp; How should I be doing this?&amp;nbsp; What is different in the environments for it to work fine int the ECM but not in the WCM.&amp;nbsp; Is XPath different/better/easier?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2007 22:40:44 GMT</pubDate>
    <dc:creator>nyronian</dc:creator>
    <dc:date>2007-04-26T22:40:44Z</dc:date>
    <item>
      <title>accessing content repsitory in WCM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107953#M75648</link>
      <description>I am trying to understand how to access things like images that are placed in the content repository in the WCM forms.&amp;nbsp; Below is my situation:1. I have a ftl template that displays the images from the content repository using the below code:&amp;lt;#assign child1 = companyhome.childByNamePath["Data Dict</description>
      <pubDate>Thu, 26 Apr 2007 22:40:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107953#M75648</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2007-04-26T22:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: accessing content repsitory in WCM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107954#M75649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just want to make sure my question makes sense.&amp;nbsp; Can you not access the CMS repository with freemarker when in the WCM?&amp;nbsp; Am I accessing it wrong?&amp;nbsp; I can't find any of the examples where resources are pulled from the CMS?&amp;nbsp; It seems very basic to me and I'm sure I'm doing the template wrong even though it works from the presentation templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know, if it doesn't work then I need to scrap the WCM and build my own on top of Alfresco the does pull content.&amp;nbsp; Seems like a waste to me though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 17:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107954#M75649</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2007-04-27T17:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: accessing content repsitory in WCM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107955#M75650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;currently rendering engines (including the freemarker engine in wcm) do not provide the same access to variables that the TemplateService provides to freemarker, meaning that the companyhome variable is not available.&amp;nbsp; this will most likely be made available in 2.1 once we integrate renderingengines into TemplateService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however, what you can do is place your images in the webproject, not the data dictionary.&amp;nbsp; note that only the webproject is deployed to your production system, not assets within the data dictionary.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2007 21:45:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107955#M75650</guid>
      <dc:creator>arielb</dc:creator>
      <dc:date>2007-04-28T21:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: accessing content repsitory in WCM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107956#M75651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much for your response Ariel.&amp;nbsp; It is clear that I need to take a little different approach for my objectives.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be nice to build websites that pull merged xml documents and pulls content and link from/into the repository.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:42:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-content-repsitory-in-wcm/m-p/107956#M75651</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2007-04-30T15:42:41Z</dc:date>
    </item>
  </channel>
</rss>

