Skip to content

Commit 321dc03

Browse files
[TASK] List Form ViewHelper and Sub View helpers together (#111)
Until now, the form ViewHelper itself was listed at the bottom of the menu, its subviewhelpers on top within a directory. As they are used together I moved them into one location now, hiding the former form viewhelper page as orphan so it does not get regenerated. Update of Form examples tbd I just moved them for the time beeing Releases: main, 13.4 Co-authored-by: lina.wolf <[email protected]>
1 parent 24d3223 commit 321dc03

File tree

3 files changed

+44
-12
lines changed

3 files changed

+44
-12
lines changed

Documentation/Global/Form.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
.. This reStructured text file has been automatically generated, do not change.
2-
.. Source: https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php
3-
4-
:edit-on-github-link: https://github.com/TYPO3/typo3/edit/main/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php
1+
:orphan:
52
:navigation-title: form
63

74
.. include:: /Includes.rst.txt
85

9-
.. _typo3-fluid-form:
10-
116
==========================
127
Form ViewHelper `<f:form>`
138
==========================
149

15-
.. typo3:viewhelper:: form
16-
:source: ../Global.json
10+
.. seealso::
11+
See `Form ViewHelper <f:form> <https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-form>`_

Documentation/Global/Form/Index.rst

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,46 @@
1-
.. This reStructured text file has been automatically generated, do not change.
1+
:navigation-title: form
2+
23
.. include:: /Includes.rst.txt
4+
.. _typo3-fluid-form:
5+
6+
==========================
7+
Form ViewHelper `<f:form>`
8+
==========================
9+
10+
.. typo3:viewhelper:: form
11+
:source: /Global.json
12+
:display: tags,description,gitHubLink,arguments
13+
14+
.. _typo3-fluid-form-example:
15+
16+
Examples
17+
========
18+
19+
A complex form with a specified encoding type
20+
---------------------------------------------
21+
22+
Form with enctype set::
23+
24+
<f:form action=".." controller="..." package="..." enctype="multipart/form-data">...</f:form>
25+
26+
A Form which should render a domain object
27+
------------------------------------------
28+
29+
Binding a domain object to a form::
30+
31+
<f:form action="..." name="customer" object="{customer}">
32+
<f:form.hidden property="id" />
33+
<f:form.textarea property="name" />
34+
</f:form>
35+
36+
This automatically inserts the value of ``{customer.name}`` inside the
37+
textarea and adjusts the name of the textarea accordingly.
38+
339

4-
====
5-
Form
6-
====
40+
.. _typo3-fluid-form-viewhelpers:
741

42+
ViewHelpers to be used within the form ViewHelper
43+
=================================================
844

945
.. toctree::
1046
:titlesonly:

Documentation/Global/Index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Global (f:*)
99
.. toctree::
1010
:titlesonly:
1111
:glob:
12+
:globExclude: Form
1213

1314
*/Index
1415
*

0 commit comments

Comments
 (0)