dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
update-seo.php
Go to the documentation of this file.
1<?php
3declare(strict_types=1);
4
5$titles = array(
6 89 => 'Tutorial: dbxContent mit dbxKi',
7 125 => 'Tutorial: Shop administrieren',
8 126 => 'Tutorial: Shop im Frontend benutzen',
9 127 => 'Tutorial: Workflow erstellen',
10 128 => 'Tutorial: Workflow benutzen',
11);
12
13$steps = array();
14foreach ($titles as $id => $title) {
15 $steps[] = array(
16 'id' => 'seo_' . $id,
17 'action' => 'page.update',
18 'params' => array(
19 'lng' => 'de',
20 'id' => $id,
21 'patch' => array('seo_title' => $title),
22 ),
23 );
24}
25
26echo json_encode(
27 array('recipe' => 'tutorial-series-20260718.update-seo.v1', 'steps' => $steps),
28 JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR
29);
$titles
Definition update-seo.php:5