I use clonable templates for data storage and set some values as standard like so (here the first two editables):
For some reasons I had to remove the standard values in the template and then I imported the database from the previous version.
Somehow all the values of these editables from the cloned pages were set to empty instead of the values 5 and 2. They were restored only in cases where the values differed from these values.
Is this a bug?
They had been stored from a form like so:
I would be happy to have a simple solution to have these values stored while being able to remove the default values in the template.
Regards,
Olliwalli
- Code: Select all
<cms:template executable='1' clonable='1' title='Treatments' >
...
...
<cms:editable order='1' name='t7601' label='Einheiten 7601' type='text'>5</cms:editable>
<cms:editable order='2' name='t7602' label='Einheiten 7602' type='text'>2</cms:editable>
<cms:editable order='3' name='t7603' label='Einheiten 7603' type='text' />
<cms:editable order='4' name='t7604' label='Einheiten 7604' type='text' />
...
...
</cms:template>
For some reasons I had to remove the standard values in the template and then I imported the database from the previous version.
Somehow all the values of these editables from the cloned pages were set to empty instead of the values 5 and 2. They were restored only in cases where the values differed from these values.
Is this a bug?
They had been stored from a form like so:
- Code: Select all
<cms:set page_name="<cms:random_name />" />
<cms:db_persist_form
_invalidate_cache='0'
k_page_name=page_name
k_page_title="<cms:gpc 'date' />"
order=rt_id
date="<cms:gpc 'date' />"
time="<cms:gpc 'time' />"
t7601=t7601
t7602=t7602
t7603=t7603
t7604=t7604
km=km
/>
I would be happy to have a simple solution to have these values stored while being able to remove the default values in the template.
Regards,
Olliwalli