uniwue-rz/typo3-housekeeping


Typo3 Housekeeping Extension

Host: GitHub

License: MIT

Language: PHP


Typo3 HouseKeeping Extension

This extension can be used to do batch tasks on the Typo3 platform over the command line. It can be used for the actions that take a long time to be done over the Web UI of Typo3. With this the timeout problem is solved. This extension take advantage Typo3 Core and Extbase methods.

Installation

To install this extension just clone the git repository in the typo3conf/ext/ or your designated extension folder.

git clone typo3-housekeeping

Usage:

Help:

To see the available functions use the following command:

# Displays help on the command line
./cli_dispatch.phpsh extbase help

Filesystem

This extension is capable of several file system actions:

Delete

# Deletes the file|folder from Typo3 without dryrun
./cli_dispatch.phpsh extbase file:delete "1:/03220100/Test,1:/03220100/Test3.jpeg" false

Move

# Moves the file|folder without dryrun
./cli_dispatch.phpsh extbase file:move 1:/03220100/Test1,1:/Test2.png 1:/03220100/TestFolder
# Moves and renames the file|folder to the new directory
./cli_dispatch.phpsh extbase file:move 1:/03220100/Test1 1:/03220100/TestFolder "TestRenamed"

Rename

# Renames the file|folder without dryrun
./cli_dispatch.phpsh extbase file:rename 1:/03220100/Test1 1:/03220100/Test2

Copy

# Copies the file|folder from Typo3 without dryrun
./cli_dispatch.phpsh extbase file:copy 1:/03220100/Test1,1:/Test2.png 1:/03220100/TestFolder
# Copies and renames the file|folder to the new directory
./cli_dispatch.phpsh extbase file:copy 1:/03220100/Test1 1:/03220100/TestFolder "TestRenamed"

Page

This extension can be used to manipulate Typo3 pages:

Delete

# Deletes page 182377 recursively
./cli_dispatch.phpsh extbase page:move 182377 true

Move

# Moves page 182377 to 182372
./cli_dispatch.phpsh extbase page:move 182377 182372

Copy

# Copies page 182377 to 180070 recursively
./cli_dispatch.phpsh extbase page:copy 182377 180070 true 

Records

Every record in the database which can be added to a page can be manipulated using these functions:

Move

# Moves record 453924 to page 12323 in tt_content table
./cli_dispatch.phpsh extbase record:move 453924 12323 "tt_content" 

Delete

# Deletes record 453924 from tt_content table with dryrun on (No Action)
./cli_dispatch.phpsh extbase record:delete 453924 "tt_content" true

Copy

# Copies record 453924 to page 12323 in tt_content table
./cli_dispatch.phpsh extbase record:copy 453924 12323 "tt_content" 

Contents

Contents use the same schema as records:

# Deletes the content 453923 without dryrun
./cli_dispatch.phpsh extbase content:delete 453923 "" false

Powermail

Powermail also follows the same schema:

# Deletes the powermail 12 without dryrun
./cli_dispatch.phpsh extbase powermail:delete 12 "" false

Project Statistics

Sourcerank 3
Repository Size 0 Bytes
Stars 0
Forks 0
Watchers 2
Open issues 0
Dependencies 0
Tags 0
Created
Last updated
Last pushed

Something wrong with this page? Make a suggestion

Last synced: 2017-03-07 15:11:10 UTC

Login to resync this repository