Hey Warrel,

yeah sure, we use it all the time, like the one I showed Marco. Did you try that one?

Dennis

warrell harries wrote:
Hi Marco and Dan,

Did you ever build a properly recursive content type in Hippo?

Regards

On 24/01/2008, Marco Casavecchia Morganti <
[EMAIL PROTECTED]> wrote:
Thanks a lot Dan!
I will try to follow your suggestions soon.

By Marco.


Dennis Dam wrote:
Hi Marco,

In the XML schema definition of "box" you don't have a recursive
reference to the box. Here's an example of a "nodetree" recursive XSD :

<xs:element name="nodes">
     <xs:complexType>
       <xs:sequence>
         <xs:element name="node" minOccurs="0" maxOccurs="unbounded">
           <xs:complexType>
             <xs:attribute name="id" type="xs:string"/>
             <xs:attribute name="value" type="xs:string"/>
             <xs:sequence>
               <xs:element ref="node" minOccurs="0"
maxOccurs="unbounded"/>
             </xs:sequence>
           </xs:complexType>
         </xs:element>
       </xs:sequence>
     </xs:complexType>
   </xs:element>

And I think the <reference> element pointing to box in the layout is not
correct. Here's the example for the nodetree backend template:

<layout>

 ....

 <template name="/nodes/node">
    <!-- display node's content here -->
   ....      <!-- and call the node recursively -->
    <reference id="/nodes/node"/>
 </template>

</layout>


HTH,
Dennis
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to