[TYPO3-english] inject pages to pagetree by cli
Lorenz Ulrich
lorenz-typo3 at visol.ch
Fri Feb 8 23:05:00 CET 2013
Hi David
By "injecting pages" you mean inserting a new page to your TYPO3 website?
This is no problem. The easiest way (IMO) is to use an Extbase
CommandController for the Scheduler:
http://forge.typo3.org/projects/typo3v4-mvc/wiki/CommandControllerInSchedulerTask
(You don't need Extbase for generating the page, but the fastest way to
create a scheduler task is using an Extbase CommandController.)
Then you can use TCEmain for inserting the page, see tutorial here:
http://blog.tolleiv.de/2010/03/handling-data-in-typo3-with-tcemain/
Since the Scheduler user (_cli_scheduler) doesn't run in admin mode, it
must have access to the tables and mounts you want to modify (in your
example table pages, DB mount of the root page).
Best regards,
Lorenz
Am 08.02.2013 17:25, schrieb d.ros:
> Hello,
>
> does anybody know if it is possible to inject pages ( with some
> configuration options ) to the pagetree by CLI ?
>
> Greets
>
> David
More information about the TYPO3-english
mailing list