Add fields ########## .. seealso:: /app_extend/add_field Most fields added need a column in the model associated MYSQL table. Fields are then added in the CRUD form using the ``fields`` key in the configuration file. Syntax used is using a existing feature, which defines how a column displays. .. seealso:: `FuelPHP documentation about model properties `__ Moreover, Novius OS team implemented :ref:`renderers `, which allows more freedom. Some renderer allow to select medias, pages, date. Configuration example: .. code-block:: php array( 'label' => 'Text displayed next to field', 'form' => array( 'type' => 'text', 'value' => 'Default field', ), 'validation' => array(), ); Standards fields ---------------- Bold text is the ``type`` property value: * * * <**textarea**> * <**select**> * * * * * `` * ``type = button`` generate ```` ``tag`` property can be used to force HTML tab, for the ``submit`` button case. FuelPHP use automatically ``value`` as button text. .. code-block:: php array( 'form' => array( 'type' => 'submit', 'tag' => 'button', 'value' => 'Save', ), ), ); .. versionadded:: Chiba2.1 The ``save`` key no longer required in CRUD fields configuration. Renderers (enhanced fields) --------------------------- ``renderers`` list is available in :ref:`API documentation `.