I try to create an own inspector editor which should be able to load data via a controller. For this I render an LINK-tag – like Neos does – in the header:
<link rel="vendor-package-backend-content" href="http://typo3-neos-1.1.x.dev/vendor.package/backend/content/load />
A controller Packages/Application/Vendor.Package/Classes/Vendor/Package/Controller/Backend/ContentController.php
is created.
This is the file Configuration/Routes.yaml
:
-
name: 'TYPO3 Neos'
uriPattern: '<TYPO3NeosSubroutes>'
subRoutes:
'TYPO3NeosSubroutes':
package: 'TYPO3.Neos'
variables:
'defaultUriSuffix': '.html'
-
name: 'Vendor Package
uriPattern: '<VendorPackageSubroutes>'
subRoutes:
'VendorPackageSubroutes':
package: 'Vendor.Package'
variables:
'defaultUriSuffix': '.html'
Here the file Packages/Application/Vendor.Package/Configuration/Routes.yaml
-
name: 'Backend'
uriPattern: 'vendor.package/<BackendSubRoutes>'
defaults:
'@package': 'Vendor.Package'
'@action': 'index'
'@format': 'html'
subRoutes:
'BackendSubRoutes':
package: 'Vendor.Package'
suffix: 'Backend'
And finaly the file Packages/Application/Vendor.Package/Configuration/Routes.Backend.yaml
-
name: 'Backend Content Controller'
uriPattern: 'backend/content(/{@action})'
defaults:
'@package': 'Vendor.Package'
'@controller': 'Backend\Content'
appendExceedingArguments: TRUE
If the URL is now called: http://domain.com/vendor.package/backend/content/index
an "Page not found" error is thrown. I have to deactivate the TYPO3.Flow.error.exceptionHandler.renderingGroups.notFoundExceptions
to see more details:
Sorry, the page you requested was not found. Technical details:
Could not find a preset for content dimension "language" through the given URI segment "vendor.package". (reference code: 2014121115590523bc78)
But I don't find out how the path segment for /neos
is defined for dimensions, there it works…
How I must configure this?
Try putting your vendor routes definition above neos in main
Routs.yaml
. Check your Data/Logs/System_Development.log if it matches what it should.Hm, and remove this part for your Vendor.Package: