Forum for discussing general topics related to Couch.
10 posts Page 1 of 1
<cms:editable name='main_image' type='image' order='10' group='Important Details' />
<cms:editable name='thumbnail_image'width='100' height='130' type='image' order='11' group='Important Details' />
<cms:editable name='artwork_title' type='text' order='12' group='Important Details' />
<cms:editable name='artist_name' type='text' order='40' group='Important Details' />
<cms:editable name='art_dimensions' type='text' order='50' group='Important Details' />
<cms:editable name='art_medium' type='text' order='60' group='Important Details' />
<cms:editable name='artwork_description' type='richtext' order='100'/>


My "artwork title" category won't move above the "artwork description" category despite refreshing the template and page. Please help!
Please make sure you are visiting the modified template on the frontend while logged-in as super-admin (using a new tab in the same browser that has the admin-panel open is the best way of ensuring this).
KK wrote: Please make sure you are visiting the modified template on the frontend while logged-in as super-admin (using a new tab in the same browser that has the admin-panel open is the best way of ensuring this).


Yes, I've done this and it still won't rearrange unfortunately.
I think that is because the two fields do not belong to the same group -
please notice that there is no group specified with the 'artwork_description' field.

Try adding it to the same group as 'artwork title' and things should work as expected.

Hope this helps.
KK wrote: I think that is because the two fields do not belong to the same group -
please notice that there is no group specified with the 'artwork_description' field.

Try adding it to the same group as 'artwork title' and things should work as expected.

Hope this helps.


Fixed it!
KK wrote: I think that is because the two fields do not belong to the same group -
please notice that there is no group specified with the 'artwork_description' field.

Try adding it to the same group as 'artwork title' and things should work as expected.

Hope this helps.


Still having issues with this, driving me insane:

<cms:editable name='main_image' desc='Upload artwork image here' type='image' order='10' group='Important Details' />
<cms:editable name='artwork_title' desc='Input artwork title here' type='text' order='12' group='Important Details' />
<cms:editable name='artist_name' type='text' order='40' group='Important Details' desc='Input artist name here' />
<cms:editable name='art_year' type='text' order='41' group='Important Details' desc='Input art year here' />
<cms:editable name='art_dimensions' type='text' order='60' group='Important Details' desc='Input artwork dimensions here' />
<cms:editable name='art_medium' type='text' order='70' group='Important Details'desc='Input artwork medium here' />
<cms:editable name='artwork_description' type='richtext' order='100' group='Other Details' desc='Input artwork description here (Optional)'/>

I added on "art year", it always stays at the bottom despite putting it in the same group, refreshing my template page, etc. What am I doing wrong!?
It appears you are having difficulty in setting the 'group' properly with the editable regions.
I think you'll find the following alternative syntax of doing the same easier -
Code: Select all
<cms:editable name='artwork_details' label='Artwork Details' type='group' order='10'>
    <cms:editable name='main_image' desc='Upload artwork image here' type='image' order='1' />
    <cms:editable name='artwork_title' desc='Input artwork title here' type='text' order='3' />
    <cms:editable name='artist_name' type='text' order='4' />

    <cms:repeatable name='thumbnail_images' order='2' >
        <cms:editable type='image' name='thumbnail_images' label='Thumbnail Images' />
    </cms:repeatable>
</cms:editable>

Please notice above how we are nesting all child editable regions within a type 'group' and that now we don't have to explicitly set the 'group' params for those nested children.

Please try it.
Hope it helps.
KK wrote: It appears you are having difficulty in setting the 'group' properly with the editable regions.
I think you'll find the following alternative syntax of doing the same easier -
Code: Select all
<cms:editable name='artwork_details' label='Artwork Details' type='group' order='10'>
    <cms:editable name='main_image' desc='Upload artwork image here' type='image' order='1' />
    <cms:editable name='artwork_title' desc='Input artwork title here' type='text' order='3' />
    <cms:editable name='artist_name' type='text' order='4' />

    <cms:repeatable name='thumbnail_images' order='2' >
        <cms:editable type='image' name='thumbnail_images' label='Thumbnail Images' />
    </cms:repeatable>
</cms:editable>

Please notice above how we are nesting all child editable regions within a type 'group' and that now we don't have to explicitly set the 'group' params for those nested children.

Please try it.
Hope it helps.


<cms:editable name='main_details' label='Uploads' desc='Your main uploads' type='group' order='-2' />
<cms:editable name='other_details' label='Uploads' desc='your other details' type='group' order='11' />

<cms:editable
name='main_image_thumb'
label='Main Image Preview'
desc='Thumbnail of main image'
width='100'
show_preview='1'
assoc_field='main_image'
type='thumbnail'
order='1'
group='main_details'
/>
<cms:editable name='main_image' desc='Upload artwork image here' type='image' order='2' group='main_details' />
<cms:repeatable name='thumbnail_images' group='main_details' order='3' >
<cms:editable type='image' name='thumbnail_images' label='Thumbnail Images' group='main_details' order='4' />
</cms:repeatable>

<cms:editable name='artwork_title' desc='Input artwork title here' type='text' order='5' group='main_details' />
<cms:editable name='artist_name' type='text' order='6' group='main_details' />
<cms:editable name='art_year' type='text' order='7' group='main_details' />
<cms:editable name='art_dimensions' type='text' order='8' group='main_details' desc='Input artwork dimensions here' />
<cms:editable name='art_medium' type='text' order='9' group='main_details' desc='Input artwork medium here' />

<cms:editable name='artwork_description' type='richtext' group='other_details' desc='Input artwork description here (Optional)' order='12' />
I tested your code and it is working just fine on my end; so perhaps that 'visit changed template as super-admin' is not being effected?

Anyway, as I suggested before, use the following alternative syntax as it so much easier to manage -
Code: Select all
<cms:editable name='main_details' label='Uploads' desc='Your main uploads' type='group' order='1' >
    <cms:editable
        name='main_image_thumb'
        label='Main Image Preview'
        desc='Thumbnail of main image'
        width='100'
        show_preview='1'
        assoc_field='main_image'
        type='thumbnail'
        order='1'
    />
    <cms:editable name='main_image' desc='Upload artwork image here' type='image' order='2' />
   
    <cms:repeatable name='thumbnail_images' group='main_details' order='3' >
        <cms:editable type='image' name='thumbnail_images' label='Thumbnail Images' order='1' />
    </cms:repeatable>

    <cms:editable name='artwork_title' desc='Input artwork title here' type='text' order='4' />
    <cms:editable name='artist_name' type='text' order='5' />
    <cms:editable name='art_year' type='text' order='6' />
    <cms:editable name='art_dimensions' type='text' desc='Input artwork dimensions here' order='7' />
    <cms:editable name='art_medium' type='text' desc='Input artwork medium here' order='8' />
</cms:editable>

<cms:editable name='other_details' label='Uploads' desc='your other details' type='group' order='2' >
    <cms:editable name='artwork_description' type='richtext' group='other_details' desc='Input artwork description here (Optional)' order='1' />
</cms:editable>

Again, it is tested and is working or me. So if it happens not to work or you, please ascertain the super-admin thing (viewtopic.php?f=4&t=8059#p13845).
KK wrote: I tested your code and it is working just fine on my end; so perhaps that 'visit changed template as super-admin' is not being effected?

Anyway, as I suggested before, use the following alternative syntax as it so much easier to manage -
Code: Select all
<cms:editable name='main_details' label='Uploads' desc='Your main uploads' type='group' order='1' >
    <cms:editable
        name='main_image_thumb'
        label='Main Image Preview'
        desc='Thumbnail of main image'
        width='100'
        show_preview='1'
        assoc_field='main_image'
        type='thumbnail'
        order='1'
    />
    <cms:editable name='main_image' desc='Upload artwork image here' type='image' order='2' />
   
    <cms:repeatable name='thumbnail_images' group='main_details' order='3' >
        <cms:editable type='image' name='thumbnail_images' label='Thumbnail Images' order='1' />
    </cms:repeatable>

    <cms:editable name='artwork_title' desc='Input artwork title here' type='text' order='4' />
    <cms:editable name='artist_name' type='text' order='5' />
    <cms:editable name='art_year' type='text' order='6' />
    <cms:editable name='art_dimensions' type='text' desc='Input artwork dimensions here' order='7' />
    <cms:editable name='art_medium' type='text' desc='Input artwork medium here' order='8' />
</cms:editable>

<cms:editable name='other_details' label='Uploads' desc='your other details' type='group' order='2' >
    <cms:editable name='artwork_description' type='richtext' group='other_details' desc='Input artwork description here (Optional)' order='1' />
</cms:editable>

Again, it is tested and is working or me. So if it happens not to work or you, please ascertain the super-admin thing (viewtopic.php?f=4&t=8059#p13845).


Somethings wrong or I'm missing something, I'm doing this under super-admin. I decided to test it out and just strip out groups to simplify everything and keep it uncomplicated as a test. No matter what I do, "art_year" *always* shows up at the bottom of the form. I can never get it above "artwork description". I can edit other editables and it updates on the front end, except for these two editables.

See simplified code:

<cms:editable
name='main_image_thumb'
label='Main Image Preview'
desc='Thumbnail of main image'
width='100'
show_preview='1'
assoc_field='main_image'
type='thumbnail'
order='-3'
/>
<cms:editable name='main_image' desc='Upload artwork image here' type='image' order='-2' />
<cms:repeatable name='thumbnail_images' order='-1' >
<cms:editable type='image' name='thumbnail_images' label='Thumbnail Images' />
</cms:repeatable>

<cms:editable name='artwork_title' desc='Input artwork title here' type='text' order='5' />
<cms:editable name='artist_name' type='text' order='6' />
<cms:editable name='art_year' type='text' order='7' />
<cms:editable name='art_dimensions' type='text' order='8' desc='Input artwork dimensions here' />
<cms:editable name='art_medium' type='text' order='9' desc='Input artwork medium here' />


<cms:editable name='artwork_description' type='richtext' desc='Input artwork description here (Optional)' order='20' />
10 posts Page 1 of 1