AnsweredAssumed Answered

extracting properties.

Question asked by spazzm on Mar 27, 2006
Latest reply on Mar 30, 2006 by spazzm
I have a problem extracting document properties -
I've defined a new type in an xml file in the extensions directory:
—–snip—–
   <namespaces>
      <namespace uri="http://www.example.com/model/ypol/1.0" prefix="ypol"/>
   </namespaces>
   <types>
      <type name="ypol:specialOffer">
         <title>YPOL special offers custom model</title>
         <parent>cm:content</parent>
         <properties>
            <property name="ypol:iblId">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>


—snip—
I've created new content of the type, and sure enough - it has the specified property.

I then try to extract the iblId property using a template with the following line:
${document.properties.iblId}
The result is an error that says that iblId is undefined.

Strangely enough, when I iterate over the properties using the example code provided in the Wiki, the parameter shows up like this:
{http://www.example.com/model/ypol/1.0}iblId = 245234

I've tried any combination of paths and keys I can think of, but nothing seems to work - how do I reference iblId?

Outcomes