[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Thank you very much, it seems to have worked flawlessly. But i had to change the line where i create the Typo3QuerySettings object to "'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings'". I had not time to test it yet in its full extent, because i just got to work, but you saved me

[TYPO3-english] Re: RTE + TYPO3 7.6.x + contenttable

2017-11-07 Thread francois beaulieu
Close!!! ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

[TYPO3-english] Re: Counting page content

2017-11-07 Thread Christian Hackl
pls give us a hint, who should your html output look like? From where should your images come? ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
> But really thanks... So far at least i can access the repository but my > biggest concern is actually how to get from here to be able to use findAll(), > to auto generate my files as described in the initial post. Any idea why it > works with findByUid() and not with findAll? The repository

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Quote: christian ewigfrost (ewigfrost) wrote on Tue, 07 November 2017 16:14 Quote: christian ewigfrost (ewigfrost) wrote on Tue, 07 November 2017 16:08 > Quote: Mikel wrote on Tue, 07 Novembe

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Quote: christian ewigfrost (ewigfrost) wrote on Tue, 07 November 2017 16:08 Quote: Mikel wrote on Tue, 07 November 2017 16:02 > The execute method needs a return statement. > Add return TRUE;

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Quote: Mikel wrote on Tue, 07 November 2017 16:02 The execute method needs a return statement. Add return TRUE; add the end of your method. Thanks... It works. But the var dump returns NUL

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
Stupid question: do you have an existing record with uid = 1 in your database? ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
The execute method needs a return statement. Add return TRUE; add the end of your method. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Quote: christian ewigfrost (ewigfrost) wrote on Tue, 07 November 2017 15:37 Here my TestTask.php: get(\Cjk\Icingaconfgen\Domain\Repository\HostRepository::class); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($apprep->findByUid(1));

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
It works now, it was my fault... But: I get an error when executing the saved task: Execution of task "Foobar Test ()" failed with the following message: Task failed to execute successfully. Class: Cjk\Icingaconfgen\Tasks\TestTask, UID: 5 ___ TYPO3-e

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Here my TestTask.php: get(\Cjk\Icingaconfgen\Domain\Repository\HostRepository::class); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($apprep->findByUid(1)); } } ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Sry, i'm an idiot... I forgot a semicolon in the line before.^^ It works now. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
> Another error: > > Oops, an error occurred! > syntax error, unexpected '\' (T_NS_SEPARATOR) Please show your complete code. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Quote: Mikel wrote on Tue, 07 November 2017 15:18 > > Oops, an error occurred! > syntax error, unexpected 'DebuggerUtility' (T_STRING) Take the full namespace (or take a use statement at the beggining of your class): \TYPO3\CMS\Extbase\Utili

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
> > Oops, an error occurred! > syntax error, unexpected 'DebuggerUtility' (T_STRING) Take the full namespace (or take a use statement at the beggining of your class): \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($apprep->findByUid(1)); ___ T

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
OK, i tried to do what you told me: I registered the task in the ext_localconf.php: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\Cjk\Icingaconfgen\Tasks\TestTask::class] = array( 'extension' => $_EXTKEY, 'title' => 'Foobar Test' ); I created a TestTask.php file in Classes/C

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
> I already registered the CommandController in the ext_localconf.php like this: > > if (TYPO3_MODE === 'BE') { > > > $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] > = 'Cjk\\Icingaconfgen\\Command\\SimpleCommandController'; > > } The commandController is some

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
One thing i'm confused about: I already registered the CommandController in the ext_localconf.php like this: if (TYPO3_MODE === 'BE') { $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'Cjk\\Icingaconfgen\\Command\\SimpleCommandController'; } So i need to add

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
This TypoScrips won’t help, as you don’t have a module nor a plugin (module = backend module, plugin = frontend plugin). But I don’t get it right now. Can you please focus? :-) As far as I know, DependencyInjection does not work in the tasks. You have to build the instances in the constructor o

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
..Also the part about: "The TypoScript needs to be present in the root page of your website for backend modules/CommandControllers to use them. I suggest you add the stuff to myext/Configuration/TypoScript/setup.txt and add the static template of your ext to the root page." ..Is something that

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
BTW: I used that Stackoverflow post as a reference: https://stackoverflow.com/questions/23068053/in-an-extbase-extension-how-to-access-the-persistence-layer-from-a-scheduler-ta/23077743#23077743 The problem is: I don't understand where to put the line "module.tx_yourext.persistence < plugin.tx_

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Quote: Mikel wrote on Tue, 07 November 2017 13:18 Try to fetch a single record with findByUid instead of getting all with findAll. If you get a result, your repository has no records storage uid. You can set it global in TypoScript or you can

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
Try to fetch a single record with findByUid instead of getting all with findAll. If you get a result, your repository has no records storage uid. You can set it global in TypoScript or you can change your repository settings. Just to go for sure: Rename your method to execute and let your class e

[TYPO3-english] Re: Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
The task runs well enough, i tried this with creating a dummy file with some summy text in it with trying to access the repositories. It worked (even without execute()). But it seems i cannot access the repositories from the Command Controller. ___ TY

Re: [TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread Mikel
You need to implement an „execute“ method into your task. public function execute() See documentation: The only method that must be implemented is the execute() method which is expected to perform the task logic. To go for sure that the task is performed, you can var_dump something and trigger

[TYPO3-english] Counting page content

2017-11-07 Thread Adrian O .
Hello, i am using Typo3 7.6 + Fluid. Assuming, i have placed 4 custom content elements on my page, how can i get 4 images (in my case simple bullets) on my page? So that, for each page content, there will be one of these bullets? Greetings, xola ___

[TYPO3-english] Command Controller: I can't execute a command that uses class repositories of my extension

2017-11-07 Thread christian ewigfrost
Yesterday i finally got my Typo3 Scheduler working the way i want. Mostly it was the implementation of the CommandController into my extension that was a little bit "problematic". Now i have another question regarding the Scheduler and the CommandController specifically. I have an Action i have

[TYPO3-english] Re: Typo3 scheduler: Can i somehow execute Action of controllers of my extension with it or my code?

2017-11-07 Thread christian ewigfrost
Thanks. I'm working with a CommandController now btw. Is still need to figure out how to use it properly but it seems i learn how to properly use the scheduler the way it's supposed to be used. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.