Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
I have added an order number on every editable field (even though I believe it should display them in the same order as they are created?) but still in the admin backend it seems to just display them in any old way it wants to? Any ideas? Is it due to the group?

Code: Select all

<!--Slider-->
<cms:editable name='title_slide1' type='text' order='1' group='Slider' label='Title Slide 1' />
<cms:editable name='description_slide1' type='textarea' order='2' group='Slider' label='Description Slide 1' />

<cms:editable name='title_slide2' type='text' order='3' group='Slider' label='Title Slide 2' />
<cms:editable name='description_slide2' type='textarea' order='4' group='Slider' label='Description Slide 2' />

<cms:editable name='title_slide3' type='text' order='5' group='Slider' label='Title Slide 3' />
<cms:editable name='description_slide3' type='textarea' order='6' group='Slider' label='Description Slide 3' />

<!--Promotion-->
<cms:editable name='heading_promotion' type='text' order='7' group='Promotion' label='Heading' />
<cms:editable name='content_promotion' type='textarea' order='8' group='Promotion' label='Content' />
<cms:editable name='button_promotion' type='text' order='10' group='Promotion' label='Button' />
<cms:editable name='button_url_promotion' type='text' order='11' group='Promotion' label='Button Url' />

<!--Section 1-->
<cms:editable name='heading_section1' type='text' order='12' group='Section 1' label='Heading' />
<cms:editable name='content_section1' type='textarea' order='13' group='Section 1' label='Content' />
    <!--Service 1-->
    <cms:editable name='image_service1' order='14' group='Section 1' label='Image - Service 1'
        width='390'
        height='260'
        crop='1'
        type='image' />
    <cms:editable name='heading_service1' type='text' order='15' group='Section 1' label='Heading - Service 1' />
    <cms:editable name='content_service1' type='textarea' order='16' group='Section 1' label='Content - Service 1' />

    <!--Service 2-->
    <cms:editable name='image_service2' group='Section 1' order='17' label='Image - Service 2'
        width='390'
        height='260'
        crop='1'
        type='image' />
    <cms:editable name='heading_service2' type='text' order='18' group='Section 1' label='Heading - Service 2' />
    <cms:editable name='content_service2' type='textarea' order='19' group='Section 1' label='Content - Service 2' />
   
    <!--Service 3-->
    <cms:editable name='image_service3' group='Section 1' order='20' label='Image - Service 3'
        width='390'
        height='260'
        crop='1'
        type='image' />
    <cms:editable name='heading_service3' type='text' order='21' group='Section 1' label='Heading - Service 3' />
    <cms:editable name='content_service3' type='textarea' group='Section 1' label='Content - Service 3' />

<!--CTA-->
<cms:editable name='heading_cta' type='text' group='Call To Action' order='22' label='Heading - Call To Action' />
<cms:editable name='content_cta' type='textarea' group='Call To Action' order='23' label='Content - Call To Action' />   
<cms:editable name='number_cta' type='text' group='Call To Action' order='24' label='Number - Call To Action' />

<!--Section 2-->
<cms:editable name='heading_section2' type='text' group='Section 2' order='25' label='Heading' />
<cms:editable name='content_section2' type='textarea' group='Section 2' order='26' label='Content' />
<cms:editable name='image_section2' group='Section 2' order='27' label='Image - Section 2'
    width='480'
    height='480'
    crop='1'
    type='image' />
       
    <!--Point 1-->
    <cms:editable name='heading_point1' type='text' order='28' group='Section 2' label='Heading - Point 1' />
    <cms:editable name='content_point1' type='textarea' order='29' group='Section 2' label='Content - Point 1' />

    <!--Point 2-->
    <cms:editable name='heading_point2' type='text' order='30' group='Section 2' label='Heading - Point 2' />
    <cms:editable name='content_point2' type='textarea' order='31' group='Section 2' label='Content - Point 2' />
   
    <!--Point 3-->
    <cms:editable name='heading_point3' type='text' order='32' group='Section 2' label='Heading - Point 3' />
    <cms:editable name='content_point3' type='textarea' order='33' group='Section 2' label='Content - Point 3' />
   

<!--SEO-->
<cms:editable name='meta_title' type='text' group='SEO' order='34' label='Meta Title' />
<cms:editable name='meta_description' type='text' group='SEO' order='35' label='Meta Description' />
<cms:editable name='meta_keywords' type='text' group='SEO' order='36' label='Meta Keywords' />

I'm sure you did great putting those orders. Did you revisit template as superadmin? Please, make sure you did and also visit any clonable page of that template, in case you have relations. It should work one way or the other.

Edit: Oh-ohh, you specified groups! That's the issue. You didn't actually created those groups.
Code: Select all
<cms:editable name='SEO' type='group' />

That makes editables not know how to order themselves properly.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
trendoman wrote:
Edit: Oh-ohh, you specified groups! That's the issue. You didn't actually created those groups.
Code: Select all
<cms:editable name='SEO' type='group' />

That makes editables not know how to order themselves properly.


Never would have known to do that. Brilliant all working thanks for the heads up!
Welcome :)

Just for future reference: http://docs.couchcms.com/tags-reference ... group.html
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
4 posts Page 1 of 1