Skip to content

Commit aedfdfa

Browse files
authored
[TASK] Improve BE Tablelist ViewHelper page (#105)
* [TASK] Improve BE Tablelist ViewHelper page Releases: main, 13.4 * [TASK] Improve BE Tablelist ViewHelper page Releases: main, 13.4
1 parent 7bd60d1 commit aedfdfa

File tree

5 files changed

+50
-23
lines changed

5 files changed

+50
-23
lines changed
Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:navigation-title: be.tableList
1+
git :navigation-title: be.tableList
22

33
.. include:: /Includes.rst.txt
44
.. _typo3-fluid-be-tablelist:
@@ -7,40 +7,54 @@
77
Be.tableList ViewHelper `<f:be.tableList>`
88
==========================================
99

10+
.. figure:: /Images/BeTablelistCategory.png
11+
:alt: Screenshot of a table of categories.
12+
1013
.. typo3:viewhelper:: be.tableList
1114
:source: ../../Global.json
12-
:display: tags,description,gitHubLink,arguments
15+
:display: tags,description,gitHubLink
16+
:noindex:
17+
18+
.. contents:: Table of contents
1319

1420
.. _typo3-fluid-be-tablelist-example:
1521

1622
Examples
1723
========
1824

19-
Minimal::
25+
Display and make editable the content elements of page 1 and its direct children:
26+
27+
.. tabs::
28+
29+
.. group-tab:: Code example
30+
31+
.. literalinclude:: /Global/Be/_TableList/_Content.html
32+
:caption: EXT:my_extension/Resources/Private/Backend/Templates/MyModule.html
33+
34+
.. group-tab:: Screenshot
2035

21-
<f:be.tableList tableName="fe_users" />
36+
.. figure:: /Images/BeTablelist.png
37+
:alt: Screenshot of a table of content elements with edit options.
2238

23-
List of all "Website user" records stored in the configured storage PID.
24-
Records will be editable, if the current backend user has got edit rights for the table ``fe_users``.
39+
List all categories on page 5 and make them editable when clicking the title:
2540

26-
Only the title column (username) will be shown.
41+
.. tabs::
2742

28-
Context menu is active.
43+
.. group-tab:: Code example
2944

30-
Full::
45+
.. literalinclude:: /Global/Be/_TableList/_Category.html
46+
:caption: EXT:my_extension/Resources/Private/Backend/Templates/MyModule.html
3147

32-
<f:be.tableList tableName="fe_users" fieldList="{0: 'name', 1: 'email'}"
33-
storagePid="1"
34-
levels="2"
35-
filter="foo"
36-
recordsPerPage="10"
37-
sortField="name"
38-
sortDescending="true"
39-
readOnly="true"
40-
enableClickMenu="false"
41-
enableControlPanels="true"
42-
clickTitleMode="info"
43-
/>
48+
.. group-tab:: Screenshot
4449

45-
List of "Website user" records with a text property of ``foo`` stored on PID ``1`` and two levels down.
46-
Clicking on a username will open the TYPO3 info popup for the respective record
50+
.. figure:: /Images/BeTablelistCategory.png
51+
:alt: Screenshot of a table of categories.
52+
53+
.. _typo3-fluid-be-tablelist-arguments:
54+
55+
Arguments
56+
=========
57+
58+
.. typo3:viewhelper:: be.tableList
59+
:source: ../../Global.json
60+
:display: arguments-only
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<f:be.tableList
2+
tableName="sys_category"
3+
fieldList="{0: 'title', 1: 'parent'}"
4+
storagePid="4"
5+
clickTitleMode="edit"
6+
/>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<f:be.tableList
2+
tableName="tt_content"
3+
fieldList="{0: 'header', 1: 'CType'}"
4+
storagePid="1"
5+
levels="2"
6+
enableControlPanels="1"
7+
/>
37.7 KB
Loading
10.4 KB
Loading

0 commit comments

Comments
 (0)