Hi Dennis,

My repeater-header macro looks like this:

<macro name="repeater-header">
    <grid width="100%">
      <cell row="1" col="1"> ${label} </cell>
      <cell row="1" col="1">

        <action action="add" ref="${path}"/>
      </cell>
    </grid>
  </macro>

I changed this a bit since last email but now my error message looks like:
Element 'widget' refers to unexistent widget path 
'xxxxxxxxxxxxxxdocumentxxxxxxxxxxxxxxnieuwsartikelxxxxxxxxxxxxxxbijlagenxxxxxxxxxxxxxxbijlagezzzzzzzzzzzzzzzcrepeatadd',
 relative to the form container, at unknown

What's the logic behind this error message, I can't seem to get my head around 
it.

Grtz
Paul


-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Dennis Dam
Verzonden: donderdag 16 oktober 2008 9:48
Aan: Hippo CMS development public mailinglist
Onderwerp: Re: [HippoCMS-dev] trying to add a repeater element to my template

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

********************************************
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

Reply via email to