mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-12-05 03:26:13 +01:00
Add example integration of data processor for menus to documentation (#79)
This commit is contained in:
parent
5447b95c0a
commit
48eec144c1
2 changed files with 39 additions and 0 deletions
|
@ -18,6 +18,7 @@ Table of Contents
|
|||
Features
|
||||
Installation
|
||||
Configuration
|
||||
Integration
|
||||
Changelog
|
||||
Maintenance
|
||||
Sitemap
|
||||
|
|
38
Documentation/Integration.rst
Normal file
38
Documentation/Integration.rst
Normal file
|
@ -0,0 +1,38 @@
|
|||
.. _integration:
|
||||
|
||||
===========
|
||||
Integration
|
||||
===========
|
||||
|
||||
Menu with tourist attractions
|
||||
=============================
|
||||
|
||||
The extension provides a custom page type which references tourist attraction.
|
||||
This can be used in conjunction with TYPO3 menus if generated via data processing,
|
||||
see
|
||||
|
||||
An concrete example would be to extend the content element ``menu_subpages``:
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
tt_content.menu_subpages {
|
||||
dataProcessing {
|
||||
10 {
|
||||
dataProcessing {
|
||||
20 = WerkraumMedia\ThueCat\Frontend\DataProcessing\ResolveEntities
|
||||
20 {
|
||||
as = touristAttraction
|
||||
if {
|
||||
isInList.data = field:doktype
|
||||
value = 950
|
||||
}
|
||||
table = tx_thuecat_tourist_attraction
|
||||
uids.data = flexform:tx_thuecat_flexform:touristAttraction
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
This will add the additional data processor delivered by the extension.
|
||||
It will extend each page of the menu with the model of the referenced tourist attraction.
|
Loading…
Reference in a new issue