Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions Documentation/Global/Form.rst
Original file line number Diff line number Diff line change
@@ -1,37 +1,11 @@
:orphan:
:navigation-title: form

.. include:: /Includes.rst.txt
.. _typo3-fluid-form:

==========================
Form ViewHelper `<f:form>`
==========================

.. typo3:viewhelper:: form
:source: ../Global.json
:display: tags,description,gitHubLink,arguments

.. _typo3-fluid-form-example:

Examples
========

A complex form with a specified encoding type
---------------------------------------------

Form with enctype set::

<f:form action=".." controller="..." package="..." enctype="multipart/form-data">...</f:form>

A Form which should render a domain object
------------------------------------------

Binding a domain object to a form::

<f:form action="..." name="customer" object="{customer}">
<f:form.hidden property="id" />
<f:form.textarea property="name" />
</f:form>

This automatically inserts the value of ``{customer.name}`` inside the
textarea and adjusts the name of the textarea accordingly.
.. seealso::
See `Form ViewHelper <f:form> <https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-form>`_
43 changes: 40 additions & 3 deletions Documentation/Global/Form/Index.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,46 @@
:navigation-title: form

.. include:: /Includes.rst.txt
.. _typo3-fluid-form:

==========================
Form ViewHelper `<f:form>`
==========================

.. typo3:viewhelper:: form
:source: /Global.json
:display: tags,description,gitHubLink,arguments

.. _typo3-fluid-form-example:

Examples
========

A complex form with a specified encoding type
---------------------------------------------

Form with enctype set::

<f:form action=".." controller="..." package="..." enctype="multipart/form-data">...</f:form>

A Form which should render a domain object
------------------------------------------

Binding a domain object to a form::

<f:form action="..." name="customer" object="{customer}">
<f:form.hidden property="id" />
<f:form.textarea property="name" />
</f:form>

This automatically inserts the value of ``{customer.name}`` inside the
textarea and adjusts the name of the textarea accordingly.


====
Form
====
.. _typo3-fluid-form-viewhelpers:

ViewHelpers to be used within the form ViewHelper
=================================================

.. toctree::
:titlesonly:
Expand Down
1 change: 1 addition & 0 deletions Documentation/Global/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Global (f:*)
.. toctree::
:titlesonly:
:glob:
:globExclude: Form

*/Index
*
Loading