Skip to content

Commit

Permalink
[TASK] Document how to manipulate flexform with tsconfig
Browse files Browse the repository at this point in the history
Resolves: #787
  • Loading branch information
georgringer committed Nov 2, 2018
1 parent a70d62a commit 013c1d1
Showing 1 changed file with 31 additions and 0 deletions.
Expand Up @@ -75,3 +75,34 @@ For example:
- next Monday
- +1 week 2 days 4 hours



Modify flexform values
^^^^^^^^^^^^^^^^^^^^^^
The flexform values can be modified by using TsConfig.

.. code-block:: typoscript
TCEFORM {
tt_content {
pi_flexform {
news_pi1 {
sDEF {
settings\.orderDirection.disabled = 1
settings\.orderBy.addItems {
teaser = teaser
}
}
}
}
}
}
.. attention::

The dot inside the field name must be escaped!

To identify the key of the tab (e.g. `sDEF`) and the field name (e.g. `settings.orderBy`)
look either in the source code while checking the flexforms or look into the configuration itself
which can be found at `EXT:news/Configuration/FlexForms/flexform_news.xml`.

0 comments on commit 013c1d1

Please sign in to comment.