I am trying to understand how to access things like images that are placed in the content repository in the WCM forms. Below is my situation:1. I have a ftl template that displays the images from the content repository using the below code:
<#assign child1 = companyhome.childByNamePath["Data Dictionary/Images/RoofHeat/roofheat_blueheat2_thumb.jpg"] >
<#if child1.isDocument && (child1.mimetype = "image/png" || child1.mimetype = "image/jpeg" || child1.mimetype = "image/gif")>
<td class="pics"><a href="/alfresco${child1.url}" target="_blank"><img src="/alfresco${child1.url}" width="200" height="126" border="0"/></a></td>
</#if>
This works just fine and when I preview the "Presentation Template" in the content manager, it looks perfect.2. I then added the following code (with an xsd to match)
${Welcome.Welcome_Message}
The plan is to use the xsd to create dynamic content templates and generate them to html.3. In the "Create Web Content Wizard" thing seem to work fine. It reads the xsd, allows me to enter my dynamic content, creates the new xml file, but cannot create the new merged html file. I get the following error on the final step of the wizard:
Error generating rendition using index.ftl: freemarker.template.TemplateModelException: Cannot perform an XPath query against an empty node set.
I am assuming it has having a hard time resolving my xpath to my images. How should I be doing this? What is different in the environments for it to work fine int the ECM but not in the WCM. Is XPath different/better/easier?Thank you in advance.