Skip to content

Commit b462b54

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 f55131e commit b462b54

File tree

3 files changed

+44
-32
lines changed

3 files changed

+44
-32
lines changed

Documentation/Global/Form.rst

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
1+
:orphan:
12
:navigation-title: form
23

34
.. include:: /Includes.rst.txt
4-
.. _typo3-fluid-form:
55

66
==========================
77
Form ViewHelper `<f:form>`
88
==========================
99

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.
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,46 @@
1+
:navigation-title: form
2+
13
.. 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+
239

3-
====
4-
Form
5-
====
40+
.. _typo3-fluid-form-viewhelpers:
641

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

845
.. toctree::
946
:titlesonly:

Documentation/Global/Index.rst

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

1213
*/Index
1314
*

0 commit comments

Comments
 (0)