Bug #69962
closed
Added by Hans-Georg Althoff about 9 years ago.
Updated about 9 years ago.
Description
I have created a new extension with the extension builder git version from today.
The setup.txt and constants.txt looks OK. Also the values for the directories in the object browser.
But if I execute the BE module it is using the list.html from the FE and not from the FE.
I have setup different storagePids for FE and BE. But in the object browser under the BE I see the same Pid as for the FE.
In setup.txt layoutRootPaths.0_ ... is used, but the object browser still shows the old names without s and 0.
$this->xLFRepository->findAll(); returns for the BE no data, but for the FE.
If I change the storagePid fo the FE, the different data are displayed.
Changing the storagePid for the BE has no effect. Still no data retrived.
- Status changed from New to Rejected
If you work with an BE module, your settings need to go to module.myextension. This is possible by copying it, like
module.myextension < plugin.myextension
module.myextension {
view.partialRootPaths.0 = some directory storing BE partials
persistence.storagePid = 42 // use this records for BE module
settings.backgroundColor = blue // special settings for BE module
}
and then set the different settings seperately.
What you experience, is the usage of default settings (like the template and layout path), when not set explicitly.
Hi Anja,
below my setting of the BE modul.
constants.txt
module.tx_hgaxlfedit_xlfedit {
view {
# cat=module.tx_hgaxlfedit_xlfedit/file; type=string; label=Path to template root (BE)
templateRootPath = EXT:hgaxlfedit/Resources/Private/Backend/Templates/
# cat=module.tx_hgaxlfedit_xlfedit/file; type=string; label=Path to template partials (BE)
partialRootPath = EXT:hgaxlfedit/Resources/Private/Backend/Partials/
# cat=module.tx_hgaxlfedit_xlfedit/file; type=string; label=Path to template layouts (BE)
layoutRootPath = EXT:hgaxlfedit/Resources/Private/Backend/Layouts/
}
persistence {
# cat=module.tx_hgaxlfedit_xlfedit//a; type=string; label=Default storage PID
storagePid =
}
}
Here the setup.txt
# Module configuration
module.tx_hgaxlfedit_xlfedit {
persistence {
storagePid = {$module.tx_hgaxlfedit_xlfedit.persistence.storagePid}
}
view {
templateRootPaths.0 = {$module.tx_hgaxlfedit_xlfedit.view.templateRootPath}
partialRootPaths.0 = {$module.tx_hgaxlfedit_xlfedit.view.partialRootPath}
layoutRootPaths.0 = {$module.tx_hgaxlfedit_xlfedit.view.layoutRootPath}
}
}
As you could see, all 3 directories are defined as sub directories to /Resources/Private/Backend/... but the views are still going to /Resources/Private/...
The above code is generated by the extension builder, newest version from the git.
Is something wrong with the stup. If not, I don't know, why the wrong directories are used?
Also available in: Atom
PDF