Reputation: 1813
What are the possibilities to create a new page programmatically in Typo3? In WordPress there is a convenient function called wp_insert_post which can be called by plugins. Is there a similar way of doing this in Typo3? If not, what would be the alternatives?
Upvotes: 2
Views: 922
Reputation: 1264
TCE : https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Typo3CoreEngine/Index.html
in short :
$data = array(
'pages' => array(
'NEW_1' => array(
'pid' => 456,
'title' => 'Title for page 1',
),
'NEW_2' => array(
'pid' => 456,
'title' => 'Title for page 2',
),
) );
Upvotes: 4