When I try to add the wizard named wizard_geo_selector in TCA ,there arised an error "module not registered".Please tell me how to register the wizard properly in the TCA.?
相关问题
- Access fluidpage configuration in template
- How to install an extension to TYPO3 using compose
- TYPO3 Ajax Page Configuration
- Extbase query to compare two fields in same table
- TYPO3: Set more than one storage pid for one exten
相关文章
- How to get TYPO3 settings in the utility files?
- “Controller does not exist. Reflection failed.” TY
- How can i have different translations for action c
- Typo3 LTS9 Routing: ReUse config.YAML
- TYPO3 Extbase: How to sort child objects
- How to add custom wizards in typo3 7 TCA?
- Typo3 eID, how to access config
- How to access properties of a FileReference Object
Ricky's answer doesn't really work anymore, since addModulePath ist deprecated since version 7.
Also, just registering the module like this still give's you said error.
The only thing that keeps the wizard going again is this:
But when you add this, the module appears as a new point in your TYPO3 backend.
In TYPO3 Version 7.6 new wizards are added like this:
Configuration/Backend/
Routes.php
, it will be found automatically, no mentioningin ext_localconf.php
orext_tables.php
is required. If you still need Ajax you can add the fileAjaxRoutes.php
in the same folder.Content for
Routes.php
:Content for
AjaxRoutes.php
If you're unsure about the notation you can compare with existing entries in the Global Variables in the Backend:
The route of the paths is handled different, for Ajax it's always "ajax" prepended, so you've never to add it to the path, else it's twice in the route. For the common route there is no change concerning the defined string.
Now the wizard can be used and even it never has to be defined in ext_tables.php it has to be mentioned there from any table-field in the configuration-area (module[name]):
In the userFunc
Path/to/class/without/wizard->renderForm
you've to create a button which is linking to the wizard and onClick the wizard will open with the route you defined in Routes.php and the optional urlParameters.Currently I never found this whole item explained in the core-documentation.
Edit:
Details about routing can be found here: Routing
The rendering process can be found here: Rendering / NodeFactory You should probably read also the outer context of the linked paragraph.
Edit 2:
An example extension can be found here, some things never work 100% but the wizard is working. The extension is for TYPO3 Version 7:
https://github.com/DavidBruchmann/imagemap_wizard
IN TCA add the wizard like follows:
In ext_tables.php register the wizard.
Keep in mind this is deprecated since Typo3 7 and removed in Typo3 8.So you can use this method upto Typo3 7.For Typo3 8 do use the method specified by David below.