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
Close!!!
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
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
> 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
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
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;
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
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
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
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));
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
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.
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
> 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
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
>
> 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
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
> 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
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
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
..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
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_
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
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
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
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
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
___
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
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.
29 matches
Mail list logo