Hi Paul,
what does the macro "repeater-header" do?
<macro-call id="repeater-header">
<param name="path">/document/nieuwsartikel/bijlagen/bijlage</param>
</macro-call>
The problem might be that you have to put some widgets *inside* the
template for /document/nieuwsartikel/bijlagen/bijlage , instead of outside.
gr
Dennis
Paul van der Maden wrote:
Hi there,
I'm trying to add a repeating element to my template. it should repeat the
following structure
<bijlagen>
<bijlage>
<naam />
<pad />
</bijlage>
<bijlagen>
So <bijlage /> should be repeated.
Schema fragment looks like:
<xs:element name="bijlagen">
<xs:complexType>
<xs:sequence>
<xs:element ref="bijlage" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="bijlage">
<xs:complexType>
<xs:sequence>
<xs:element name="naam" type="xs:string" />
<xs:element name="pad" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
In my layout I tried, probably tried wrong, this:
<group type="column">
<macro-call id="repeater-header">
<param
name="path">/document/nieuwsartikel/bijlagen/bijlage</param>
</macro-call>
<display id="/document/nieuwsartikel/bijlagen/bijlage"/>
</group>
<template name="/document/nieuwsartikel/bijlagen/bijlage">
<gridrow>
<cell col="1" colspan="2">
<action action="delete"
ref="/document/nieuwsartikel/bijlagen/bijlage"/>
</cell>
</gridrow>
<textfield id="/document/nieuwsartikel/bijlagen/bijlage/naam"/>
<textfield id="/document/nieuwsartikel/bijlagen/bijlage/pad"/>
</template>
This validates according to
"http://localhost:50000/editing/cf2/validity-test/check/nieuws"
Now what ever I try I can't get it to work and after solving a few error
messages I'm now stuck on:
"Element 'repeater-size' refers to unexistent widget path
'xxxxxxxxxxxxxxdocumentxxxxxxxxxxxxxxnieuwsartikelxxxxxxxxxxxxxxbijlagenxxxxxxxxxxxxxxbijlagezzzzzzzzzzzzzzzrepeat',
relative to the form container, at unknown"
What does this mean and where should I look trying to solve it?
Thanx in advance
Grtz
Paul
P. van der Maden
Consultant
GSM: +31 (0)6 18 80 92 88
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html