Hello
Is there a parameter for editables to allow only unique values within cloned pages of a template? Meaning that Couch should give an error if someone tries to save a value and the value exists already in another cloned page.
A solution might be the following:
But will the performance be ok with this solution if there are several thousand 'users'?
Regards,
Olliwalli
Is there a parameter for editables to allow only unique values within cloned pages of a template? Meaning that Couch should give an error if someone tries to save a value and the value exists already in another cloned page.
A solution might be the following:
- Code: Select all
<cms:set unique="<cms:pages masterpage='userprofiles' custom_field='username==<cms:show frm_username />' ids_only='1' />" />
<cms:if unique==''>
<p>Username does not exists!</p>
<cms:db_persist
...
/>
<cms:else/>
<p>Username already exists!</p>
</cms:if>
But will the performance be ok with this solution if there are several thousand 'users'?
Regards,
Olliwalli