benjaminkott/packagebuilder

Controller action via typeNum not executed (depending on TS order)

MacGyer opened this issue · 1 comments

TYPO3 Version: 10.4.21
Bootstrap Package Version: 11.0.3

The extension provides static TS included via Template -> Includes and a custom page via typeNum for handling AJAX requests. The TS config is as follows:

plugin.tx_mobilityprojects_ajaxapi {
    persistence {
        storagePid = 3
    }
    settings {
        ajaxPageTypes {
            projectUserActions = 1964651634
        }
    }
}

mobilityprojects_projectuseractions = PAGE
mobilityprojects_projectuseractions {
    typeNum < plugin.tx_mobilityprojects_ajaxapi.settings.ajaxPageTypes.projectUserActions
    10 < tt_content.list.20.mobilityprojects_ajaxapi

    config {
        disableAllHeaderCode = 1
        additionalHeaders.10.header = Content-Type: application/json
        xhtml_cleaning = 0
        admPanel = 0
        debug = 0
        no_cache = 1
    }
}

The plugin provides a Controller class which has an action to render JSON (via \TYPO3\CMS\Extbase\Mvc\View\JsonView).

When the extension TS is included before Bootstrap Package TS, the Controller action is not executed (thus no JSON response).
When the extension TS is included after Bootstrap Package TS, the action is executed and the JSON data is returned.

Any idea, why this happens? Or am I missing something very elementary in TS configuration, inheritance or similar?

Working:
image

Not working:
image

Thanks for getting back. If you need further information, please feel free to ask.

Cheers,

sorry, wrong repo ---> meant to be in bootstrap_package.
Closed