Module CustomFields Dev: Difference between revisions

Jump to navigation Jump to search
→‎Introduction to CustomFields API: added a note about prefixing or not
(→‎Introduction to CustomFields API: added a note about prefixing or not)
Line 170: Line 170:


This will give you a better understanding of how CustomFields works, as well as giving you insights on how to use it for your own applications.
This will give you a better understanding of how CustomFields works, as well as giving you insights on how to use it for your own applications.
Important note: contrary to the Facade API, the core CustomFields class use columns names without any prefix, so don't try to use the prefix, it won't work! For example: if your field is named 'mycustomfield' and prefix is 'cf_', when you use the Facade API you should use '$object->$path->cf_mycustomfield' but when you use the core CustomFields class directly, $fieldname = 'mycustomfield'.


== Prerequisite to use the CustomFields class ==
== Prerequisite to use the CustomFields class ==
439

edits

Navigation menu