Feature #91917

Web List filter record_type

Added by varioous OG over 1 year ago. Updated over 1 year ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2020-08-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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


Related issues

Related to TYPO3 Core - Story #82206: list module enhancements/bugfixesNew2005-07-21

Actions
#1

Updated by Daniel Windloff over 1 year 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

#2

Updated by Daniel Windloff over 1 year ago

  • Related to Story #82206: list module enhancements/bugfixes added

Also available in: Atom PDF