[TYPO3-extbase-kickstarter] Problem with Backend module
Thomas F.
allyouracid at googlemail.com
Mon Jun 4 09:32:37 CEST 2012
Hi,
the Folder 'Backend' is just fine (when starting with backend module
programming, i ran into the same problem, so i found out what to do).
What if you're planning on adding some Frontend Plugin which needs the
path? You need to configure the paths for module.tx_yourextension.[...]
as follows (don't forget to include the static template, but i assume
you already did that, as the change of the path had some effect):
The files are located in Configuration/TypoScript:
setup.txt:
# Module configuration
module.tx_yourextension {
view {
templateRootPath = {$module.tx_yourextension.view.templateRootPath}
partialRootPath = {$module.tx_yourextension.view.partialRootPath}
layoutRootPath = {$module.tx_yourextension.view.layoutRootPath}
}
}
constants.txt:
module.tx_yourextension {
view {
# cat=module.tx_yourextension/file; type=string; label=Path to
template root (BE)
templateRootPath =
EXT:wr_yourextension/Resources/Private/Backend/Templates/
# cat=module.tx_yourextension/file; type=string; label=Path to
template partials (BE)
partialRootPath =
EXT:wr_yourextension/Resources/Private/Backend/Partials/
# cat=module.tx_yourextension/file; type=string; label=Path to
template layouts (BE)
layoutRootPath =
EXT:wr_yourextension/Resources/Private/Backend/Layouts/
}
}
Am 04.06.2012 08:00, schrieb Robert Schneider:
> Hay anyone noticed my report?
>
> Regards,
> Robert
>
>
> Am 30.05.2012 17:13, schrieb Robert Schneider:
>> Hi,
>>
>> just an potential issue report from a t3-newbie:
>>
>> I have tried to create a backend module with the extension builder
>> (2.2.0). I have created two model objects. All seemed to work fine so
>> far. However, after installing the extenstion and clicking on the
>> menu item I've got an "No template was found. View could not be
>> resolved for action 'index'." message. The reason seems to be that
>> the template files were at the wrong location. To solve the problem I
>> have moved the folders Templates, Partials and Layouts from
>> <extname>/Resources/Private/Backend/ to <extname>/Resources/Private/.
>> The folder Backend was the problem. I'm not sure if I get other
>> problems with this action...
>>
>> Was that okay? Or should I configure anything? But if you reply keep
>> in mind that I'm a newbie and don't understand most of the things
>> about t3.
>>
>> Regards,
>> Robert
>>
> _______________________________________________
> TYPO3-project-extbase-kickstarter mailing list
> TYPO3-project-extbase-kickstarter at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-extbase-kickstarter
>
More information about the TYPO3-project-extbase-kickstarter
mailing list