Skip to content

Repository files navigation

EXT:relation_processor

install

composer req andersundsehr/relation-processor

what does it do

It adds a RelationProcessor so you don't have to manually define a DatabaseQueryProcessor for each relation you want to use.
It uses the TCA configuration to determine the correct query to use.
It uses the PageRepository->versionOL() and PageRepository->getLanguageOverlay() functions so it hase correct versioning and language overlay support.

Example

10=AUS\RelationProcessor\DataProcessing\RelationProcessor10{
# thisfieldisofthecurrenttableandwillbeusedtodeterminetherelation
# eg.ifyouhave EXT:newsandthisprocessorisusedonatt_contentyoucangetallrelatednews like this:
field=tx_news_related_news}

Advanced Example

page=PAGEpage.10=FLUIDTEMPLATEpage.10{dataProcessing{10=TYPO3\CMS\Frontend\DataProcessing\FilesProcessor10{references.fieldName=header_imageas=headerImage}20=AUS\RelationProcessor\DataProcessing\RelationProcessor20{field=tx_customerproduct_companiesdataProcessing{10=TYPO3\CMS\Frontend\DataProcessing\FilesProcessor10{references.fieldName=header_imageas=headerImage}20=AUS\RelationProcessor\DataProcessing\RelationProcessor20{field=tx_customercompany_product_familydataProcessing{10=TYPO3\CMS\Frontend\DataProcessing\FilesProcessor10{references.fieldName=header_imageas=headerImage}}}}}}}

with ♥️ from anders und sehr GmbH

If something did not work 😮
or you appreciate this Extension 🥰 let us know.

We are hiring https://www.andersundsehr.com/karriere/

About

Adds DataProcessor to resolve all types of TCA Relations

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages