Ich versuche 3 Tage lang jetzt, dieses Problem zu lösen. Es geht um einen
einfachen Frontend Plugin in TYPO3 6.2 der einfach auf die Seite nicht rendern
will. Hier sind alle mögliche Details:
VendorName = LAL
Extension = PackageBuilder
Plugin = PackageList
Controller = Package
Action = list
Und mein Code:
fileadmin/templates/ts/setup.ts
# ...
#plugins
lib.packagePlugin = USER
lib.packagePlugin {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = LAL
pluginName = PackageList
extensionName = PackageBuilder
#switchableControllerActions.Package.1 = list
controller = Package
action = list
switchableControllerActions {
Package {
1 = list
}
}
settings =< plugin.tx_packagebuilder.settings
persistence =< plugin.tx_packagebuilder.persistence
view =< plugin.tx_packagebuilder.view
}
typo3conf/ext/package_builder/ext_localconf.php
/** Plugin configuration */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'LAL'. $_EXTKEY, 'PackageList',
array('Package' => 'list'),
array('Package' => 'list')
);
typo3conf/ext/package_builder/ext_tables.php
/** Plugin registration */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY, 'PackageList', 'Travel Packages List'
);
/** TCA mapping, configuration */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY,
'Configuration/TypoScript', 'Package Builder');
typo3conf/ext/package_builder/Configuration/TypoScript/setup.txt
plugin.tx_packagebuilder {
persistence {
storagePid = {$plugin.tx_packagebuilder.persistence.storagePid}
}
view {
templateRootPath = {$plugin.tx_packagebuilder.view.templateRootPath}
partialRootPath = {$plugin.tx_packagebuilder.view.partialRootPath}
layoutRootPath = {$plugin.tx_packagebuilder.view.layoutRootPath}
}
}
typo3conf/ext/package_builder/Configuration/TypoScript/constants.txt
plugin.tx_packagebuilder {
view {
templateRootPath = EXT:package_builder/Resources/Private/Templates/
partialRootPath = EXT:package_builder/Resources/Private/Partials/
layoutRootPath = EXT:package_builder/Resources/Private/Layouts/
}
persistence {
storagePid = 11,0
}
}
Mein PackageController hat natürlich ein listAction() die zuerst nur statischen Text zum View ausgeben soll. Der Controller jedoch scheint nicht mal aufgerufen zu werden: einen dev-logging drin wird nicht gerufen.
Der View liegt unter Resources/Private/Templates/Package/List.html.
Das Plugin ist als Inhaltselement auf meine Seiten auswählbar. Jedoch wenn ich
eine dieser Seite im FE aufrufe, bekomme ich die folgende Ergebnisse:
<!-- CONTENT ELEMENT, uid:11/list [begin] -->
<div id="c11" class="csc-default">
<!-- Plugin inserted: [begin] -->
<!-- Plugin inserted: [end] -->
</div>
<!-- CONTENT ELEMENT, uid:11/list [end] -->
Der Plugin ist gerendert, aber leer - ohne jeglichen Inhalt. Es gibt zusätzlich
dazu keine Fehlermeldung oder Warnung.
Natürlich habe ich auch mehrmals den Cache geleert.
Hat jemand eine Idee, woran es liegen könnte? Ich habe alles ausprobiert und
habe keine Idee mehr, was ich als nächstes tun könnte.
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german