AnsweredAssumed Answered

Error generating rendition using pressRelease.ftl

Question asked by jon318 on Mar 10, 2009
Latest reply on Mar 16, 2009 by showky
Hi,

I have just started using Alfresco WCM. According to Alfresco_developer guide, I created a web form. When I create web content by using that web form. There is a error information displayed.  I show it as below:

Please correct the errors below then click Finish.
    * Error generating rendition using pressRelease.ftl: Store not found.


Please instruct me how to solve this problem.

Thank you in advance!

Jon

Two files are from Alfresco_Developer_Guide.pdf

pressRelease.xsd

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:pr="http://localhost:8084/EvaluateIt/"
    xmlns:alf="http://www.alfresco.org"
    targetNamespace="http://localhost:8084/EvaluateIt/"
    elementFormDefault="qualified">

        <!– defines the form for creating a press release –>
<xs:element name="press_release">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="title" type="xs:normalizedString"/>
         <xs:element name="sub_title" type=
          "xs:normalizedString"/>
          <xs:element name="location" type=
           "xs:normalizedString" default="Austin, TX"/>
           <xs:element name="date" type="xs:date"/>
          <xs:element name="body" type="xs:string" minOccurs=
           "1" maxOccurs="1">
              <xs:annotation>
                    <xs:appinfo>
                        <alf:appearance>custom</alf:appearance>
                    </xs:appinfo>
                 </xs:annotation>
              </xs:element>
             <xs:element name="company_footer" type="xs:string"
              minOccurs="0" maxOccurs="unbounded"/>
             <xs:element name="contact_info" type="xs:string"
              minOccurs="0" maxOccurs="unbounded"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

pressPrelease.ftl

<#ftl ns_prefixes={"pr":"http://localhost:8084/EvaluateIt/"}>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
   <head>
       <title>Press Release</title>
   </head>
   <body>
     <#assign press_release = .vars["pr:press_release"]>
     <div class="node">
  <h2>${press_release["pr:sub_title"]}</h2>
  <p><p>${press_release["pr:location"]} - ${press_release
        ["pr:date"]} - ${press_release["pr:body"]}
            <#list press_release["pr:company_footer"] as cf>
            <p>${cf}</p>
         </#list>
         <#list press_release["pr:contact_info"] as ci>
            <p>${ci}</p>
         </#list>
  </p></p>
  <div class="clearfix"></div>
</div>
<div class="clearfix"></div>

   </body>
</html>

Outcomes