Feature #91917
closedWeb List filter record_type
0%
Description
Hello,
it would be great to generate a Module and filter them by record_type (configured in TCA).
Backend Module is registered and route is by
public function bookAction() {
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
$uri = $uriBuilder->buildUriFromRoute('web_list', array(
'id' => 79,
'table' => 'tx_vatemplate_domain_model_book',
#filter by record type -> currently not possible
'record_type' => '1'
));
$this->redirectToUri($uri);
}
Best would be to add a custom where clause like ' AND book_type=1'
Thanks and best regards,
Harald
Updated by Daniel Windloff almost 4 years ago
- Status changed from New to Needs Feedback
Hello Harald,
that doesn't do exactly as you suggest, but the behavior is quite similar:
The extension querybuilder https://extensions.typo3.org/extension/querybuilder/ could be used to set a filter for the list module rows.
Furthermore, I suggest having a look to the following hook, as it may solve your issue:
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.2/Feature-83740-CleanupOfAbstractRecordListBreaksHook.html
This hook could be used to add additional contraints e.g. book_type=1.
Best regards,
Daniel
Updated by Daniel Windloff almost 4 years ago
- Related to Story #82206: list module enhancements/bugfixes added
Updated by Christian Kuhn over 2 years ago
- Status changed from Needs Feedback to Closed
hey. i hope it's ok to close here: the querybuilder extension adds functionality to the list module to allow fine grained filters, it probably solves the needs outlined here.