Using CMSMS 2.2.20 “Saguenay”
Since I put {content_image} into my layout, automatically on the main tab of content edit, an input field for image appeared. Very convenient for the backend users. The original input field under the options tab is still there too, thats ok.
The big problem now is, when I choose an image in the main tab, it is not saved. when open again, the field is empty again.
Only when I set an image in the option tab, it gets saved.
edit content image stays empty
Re: edit content image stays empty
I was not able to recreate this on a clean 2.2.20 install. Can you experiment a bit more and see if there's a specific usage that makes it happen reliably? e.g. it's in a child template or assigned to a variable etc. Feel free to include the full tag you're using, and/or the page template.
Not getting the answer you need? CMSMS support options
Re: edit content image stays empty
well, the full tag is
{content_image class='breit radius-oben' block='image' alt='Themenbild Ziegelei Museum'}
and the behaviour is constant. I can not on any page save a chosen image in the main tab. But it always works in the option tab.
BUT, I had one page where I did set an image in main tab before when I still was on 2.2.19 that was saved and it stayed in the main tab image field.
When I now cleared both image fields (tab and options) and tried to set it again in the main tab, now in 2.2.20, it was also not possible anymore.
{content_image class='breit radius-oben' block='image' alt='Themenbild Ziegelei Museum'}
and the behaviour is constant. I can not on any page save a chosen image in the main tab. But it always works in the option tab.
BUT, I had one page where I did set an image in main tab before when I still was on 2.2.19 that was saved and it stayed in the main tab image field.
When I now cleared both image fields (tab and options) and tried to set it again in the main tab, now in 2.2.20, it was also not possible anymore.
Re: edit content image stays empty
Try giving the block a name other than 'image'
{content_image class='breit radius-oben' block='anotherimage' alt='Themenbild Ziegelei Museum'}
{content_image class='breit radius-oben' block='anotherimage' alt='Themenbild Ziegelei Museum'}
Not getting the answer you need? CMSMS support options
Re: edit content image stays empty
Ah, OK, I see now what happened.
Of course you are right. I gave it another name, now it works.
There are two things now about this:
1. I was simply trying to incorporate that content_image field of the content editor into my layout, and I did what some guide showed me to do, identify which field to use with define block='image'. Yes I was surprised when after that suddenly I had an image field on the main tab too. But I found that convenient and it worked.
2. That it did not work anymore after the update to 2.2.20 now leaves the question:
Was it right before in 2.2.19 where two identical fields both appeared and both worked? Or is it right now, when two fields wo have the same ID are both shown, but only one of them works ?
Of course you are right. I gave it another name, now it works.
There are two things now about this:
1. I was simply trying to incorporate that content_image field of the content editor into my layout, and I did what some guide showed me to do, identify which field to use with define block='image'. Yes I was surprised when after that suddenly I had an image field on the main tab too. But I found that convenient and it worked.
2. That it did not work anymore after the update to 2.2.20 now leaves the question:
Was it right before in 2.2.19 where two identical fields both appeared and both worked? Or is it right now, when two fields wo have the same ID are both shown, but only one of them works ?
Re: edit content image stays empty
As far as I know, naming it 'image' has always caused it to not work. I believe this is because the variable is used somewhere else but I'm not sure. I don't think it would have changed from 2.2.19 to 2.2.20, that might be a red herring.
It wouldn't be anything to do with two fields having the same name, that has always thrown an error. This issue is specifically for the name 'image'.
It wouldn't be anything to do with two fields having the same name, that has always thrown an error. This issue is specifically for the name 'image'.
Not getting the answer you need? CMSMS support options
Re: edit content image stays empty
Thank you, Digi