Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello! I am trying to create a repeatable group of text tags for a "Quote" repeatable slider, however I keep receiving this error:

"ERROR! Closing tag "editable" has no matching opening tag (line: 151 char: 8853)"

I have tried multiple times with and without the closing tags (because I noticed in the repeatable documentation there were no closing tags for the repeatable elements, which allowed the page to load, but then did not populate the sections correctly. Any help would be greatly appreciated. I have posted the original code below, as well as a link to the staging for the site. Since I am activly working on this, some may change inbetween now and any troubleshooting review from the forum, but i appreciate the help in advance!

bigspindle.com/cp

Code: Select all
<cms:repeatable name='quotes' >
           
            <div>
                    <h3><cms:editable type='text' label='Customer Quote' desc="Enter Customer Quote Here" name='cust_quote' group='cust_quotes'/>Text Here</cms:editable></h3>
                    <h4 class="name"><cms:editable type='text' label='Customer Quote' name='cust_name' group='cust_quotes'/>Text Here</cms:editable></h4>
               <h6 class="company"><cms:editable type='text' label='Customer Quote' name='cust_comp' group='cust_quotes'/>Text Here</cms:editable></h6>
                   
                   
                    </div>   
                     
            </cms:repeatable>
Hi,

You are self-closing all the three cms:editable tags and then also using the end-tag with them e.g. -
<cms:editable type='text' label='Customer Quote' desc="Enter Customer Quote Here" name='cust_quote' group='cust_quotes'/>Text Here</cms:editable>

Please make them as follows (i.e. remove the '/') and things should be fine -
<cms:editable type='text' label='Customer Quote' desc="Enter Customer Quote Here" name='cust_quote' group='cust_quotes'>Text Here</cms:editable>

That said, I wonder why you are using the HTML markup within the cms:repeatable tag? It'll ignore everything except cms:editable child tags.

Hope this helps.
So it is not possible to repeat a div container?

That being said... I gave up on the repeatable aspect, and I understand the closing aspect to an extent, but now I have essnetially duplicated your exact code found on a tutorial to make multiple groups (based on the same structure but duplicated) but the second group is not showing in the backend.

After reviewing your tutorial I found the same is happening a well, but there is never any mention of how to fix it: http://www.meressin.com/couchcms/docume ... mg/121.png

This is where i am now: Any help is greatly appreciated.

Code: Select all
<cms:template title='Home Page' order='1' />

<cms:editable name='quote1' label='Customer Quote' type='group' />
<cms:editable
   name='customer_quote1'
    label='Quote'
    desc='Insert the Customer Quote Here'
    group='quote1'
    type='text'
    />
<cms:editable
   name='customer_name1'
    group='quote1'
    label='Customer Name'
    type='text'
    />
<cms:editable
   name='company_name1'
    label='Company Name'
    group='quote1'
    type='text'
    />
   
<cms:editable name='quote_2' label='Customer Quote 2' type='group' />
<cms:editable
   name='customer_quote2'
    label='Quote 2'
    desc='Insert the Customer Quote Here'
    group='quote_2'
    type='text'
    />
<cms:editable
   name='customer_name2'
    group='quote_2'
    label='Customer Name 2'
    type='text'
    />
<cms:editable
   name='company_name2'
    label='Company Name 2'
    group='quote_2'
    type='text'
    />


<!-- Quote 1 -->                   
<div>

<h3><cms:show customer_quote1 /></h3>


<h4 class="name"><cms:show customer_name1 /></h4>

<h6 class="company"><cms:show company_name1 /></h6>

</div>

<!-- Quote 12 -->                   
<div>

<h3><cms:show customer_quote2 /></h3>

<h4 class="name"><cms:show customer_name2 /></h4>

<h6 class="company"><cms:show company_name2 /></h6>

</div>
but the second group is not showing in the backend.

After reviewing your tutorial I found the same is happening a well, but there is never any mention of how to fix it:
Sorry couldn't get you. I tried out the code and the second group shows up just fine (you need to click on it to expand it).

Just made a minor change to your code -
You are using cms:template tag as self-closing.
It should be used as the opening/closing pair to enclose all the definitions of the editable region.
So you code now becomes -
Code: Select all
<cms:template title='Home Page' order='1' >

    <cms:editable name='quote1' label='Customer Quote' type='group' />
    <cms:editable
       name='customer_quote1'
        label='Quote'
        desc='Insert the Customer Quote Here'
        group='quote1'
        type='text'
        />
    <cms:editable
       name='customer_name1'
        group='quote1'
        label='Customer Name'
        type='text'
        />
    <cms:editable
       name='company_name1'
        label='Company Name'
        group='quote1'
        type='text'
        />
       
    <cms:editable name='quote_2' label='Customer Quote 2' type='group' />
    <cms:editable
       name='customer_quote2'
        label='Quote 2'
        desc='Insert the Customer Quote Here'
        group='quote_2'
        type='text'
        />
    <cms:editable
       name='customer_name2'
        group='quote_2'
        label='Customer Name 2'
        type='text'
        />
    <cms:editable
       name='company_name2'
        label='Company Name 2'
        group='quote_2'
        type='text'
        />

</cms:template>
4 posts Page 1 of 1
cron