[TYPO3-extbase-kickstarter] Problem with Backend module
Robert Schneider
r.schneider at artworx.at
Thu Jun 28 08:10:56 CEST 2012
That's true. I should have a look at the extbase source code.
Unfortunately, there is no better documentation out there than the
source itself as it seems.
Regards,
Robert
> Hi,
>
> no problem, glad to help. :)
> Yeah, it works in the frontend as Fluid brings some basic
> configuration which indeed includes the templateRootPath for frontend
> plugins, but not for backend modules.
> You can check this yourself: Go to your TYPO3 source and open
> typo3/sysext/fluid/Classes/View/TemplateView.php. The very first
> variable is $templateRootPathPattern, and it's set to some magical
> @stuff with /Private/Templates in behind (no "Backend" in between).
> Probably that was done due to Extbase being more frequently used for
> making plugins instead of modules, and the more sophisticated ones
> making modules are supposed to find the solution theirselves or
> whatever... :)
>
> I have no information about the blog example, as i have never used it.
> But as a general hint for a growing experience in solving issues:
> reading the (Extbase/Fluid-) sourcecode is always a good idea, when it
> comes to problems. With some practice, the source itself is a much
> better help than any documentation or explanation. And in most of the
> cases, the problems can be easily traced back to their origin (e.g. i
> was just searching for the "templateRootPath" in Fluid source to get
> an answer to the frontend/backendquestion, found five files containing
> the word and so i just picked the one which seemed the most relevant
> for me). And for learning purposes, it's just awesome. :)
>
>
> Am 26.06.2012 13:04, schrieb Robert Schneider:
>> That was the problem: I didn't select the template as you have
>> described it! Now the frontend and the backend seems to work so far.
>> So thank you very much for your help! I didn't know that I have to do
>> this step. I thought this would be done automatically by the
>> Extension Builder and/or when the extension gets installed. At least
>> in any example this is not mentioned. Hm... the blog example uses
>> also this structure and there it is not necessary to include static
>> files into the templates, although the list of available objects
>> include two entries for the blog example. Funny...
>>
>> But the frontend worked also without those template path information.
>> There must be some default path settings. That is also the reason why
>> the backend module has worked if I moved the files from
>> Private/Backend/... to Private/...
>>
>> Thanks again. Do you know why the blog example works out of the box?
>>
>>> 1. You configured your Backend module via "module.tx_..." instead of
>>> "plugin.tx_..."?
>>> 2. You added the static template (root template, "edit the whole
>>> template record", "includes" -> select your template under "include
>>> static templates"? And, does your static template appear in the
>>> list? If not, check your ext_tables.php for the following line
>>>
>>> t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript',
>>> 'descriptive name of your static template');
>>>
>>> ) as it is supposed to be included?
>>>
>>> You can check whether or not the settings are correct by using the
>>> Template -> TypoScript Object Browser and navigating to
>>> module.tx_yourmodule and check if templateRootPath and so on are set
>>> correctly.
>>>
>>>
>>> Am 26.06.2012 11:13, schrieb Robert Schneider:
>>>> I've encountered the problem again. The constants.txt is configured
>>>> correctly. However the file is not used, I guess.
>>>>
>>>> DI(FH) Robert Schneider
>>>> Web Development
>>>>
>>>>
>>>>
>>>> artworx® GmbH
>>>> Dr.-Schauer-Straße 26
>>>> A-4600 Wels
>>>> Tel: +43(0)7242 908099 - 19
>>>> Fax: +43(0)7242 908099 - 99
>>>> Mail: _r.schneider at artworx.at <mailto:r.schneider at artworx.at>_
>>>> Web: www.artworx.at <http://www.artworx.at/>
>>>>
>>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>>>> Informationen.
>>>> Wenn sie nicht der richtige Adressat sind oder diese E-Mail
>>>> irrtümlich erhalten haben, informieren Sie bitte sofort den
>>>> Absender und vernichten Sie diese E-Mail.
>>>> Das unerlaubte Kopieren sowie die unbefugte Weitergabe der Inhalte
>>>> dieser E-Mail ist nicht gestattet.
>>>> .......................................................................................................................................................................................................
>>>>
>>>> This e-mail contains confidential and/or privileged information.
>>>> If you are not the intended recipient (or have received this e-mail
>>>> in error) please notify the sender immediately and destroy this
>>>> e-mail.
>>>> Any unauthorised copying, disclosure or distribution of the
>>>> material in this e-mail is strictly forbidden.
>>>>
>>>> Am 04.06.2012 09:32, schrieb Thomas F.:
>>>>> 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
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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