Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Reserved words for fields


Reply


2 Posts   846 Views

Avatar
Derek

Community Member, 6 Posts

4 April 2011 at 2:37pm

Is there a list of reserved words for field names?
Today I discovered I couldn't name a field Email and have the data saved when editing. I changed the field name to Emails and it now works using updateCMSFields.

Avatar
Willr

Forum Moderator, 5513 Posts

6 April 2011 at 8:17pm

It depends on the object you have overriding. Have a look at the $db array of the parent classes. Member for instance will have fields already defined like FirstName, Surname, Email etc..