From 632a173566d631cf93444a17caa890aeb2708be2 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 12 May 2018 18:23:20 +0200 Subject: [PATCH] MVC, add note for non common fieldtypes --- source/development/frontend/models.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/development/frontend/models.rst b/source/development/frontend/models.rst index a6caa78f..48efe8e0 100644 --- a/source/development/frontend/models.rst +++ b/source/development/frontend/models.rst @@ -113,9 +113,19 @@ From top to bottom we find the following nodes in our tree: - someText, not part of the entity tag and also defined as text without validation -The fieldtypes are easily extendable in the base system and they all live in +The fieldtypes are easily extendable in the base system and all common ones live in their own namespace at *OPNsense\\Base\\FieldTypes* deriving from *BaseField*. +.. Note:: + + When designing application specific fieldtypes, you can point to a field + type within the application namespace using a full or partial path. + + For example using *Vendor\\Component\\FieldTypes\\MyFieldType* to point to a specific non + common field type or *.\\MyFieldType* when linked from the application model itself (which assumes a namespace FieldTypes + exists) + + ------------- Usage example -------------