Teilbaum kopieren
Aus eZ Wiki
Die Anzahl der Knoten die über die Administrationsoberfläche kopiert werden können ist begrenzt. Das ist eine Sicherheitsmaßnahme, damit nicht die Beschränkung der maximale Ausführungszeit dazwischenfunkt und den Kopiervorgang abbricht.
Relevante Einstellungen dazu kannn man in der content.ini vornehmen.
content.ini
[CopySettings] # Maximum number of nodes to copy using Copy Subtree feature MaxNodesCopySubtree=30 # Use either user-defined, last-published or all VersionHandling=all # Use either user-defined, keep-unchanged or current to # set current user as creator of copied contentobjects CreatorHandling=current # Use either user-defined, keep-unchanged or current TimeHandling=current # Show or not copy subtree notification after copying subtree ShowCopySubtreeNotification=enabled # Controls where it will redirect after copying a class # Use one of: # grouplist - Redirect to the main classgroup list # classlist - Redirect to group of the copied class # classedit - Redirect to edit mode of copied class # classview - Redirect to view mode of copied class ClassRedirect=classlist
ezsubtreecopy.php
Statt den Teilbaum manuell umhängen kann man besser ein Skript auf der Konsole starten. In jedem Fall sollte man zuvor eine vollständige Kopie der Datenbank zur Seite legen.
php bin/php/ezsubtreecopy.php --src-node-id=151 --dst-node-id=651 --keep-creator --keep-time
Man erhält eine Ausgabe wie folgt:
Copying subtree: ............................................................................................................................................... Number of copied nodes: 143 Number of copied contentobjects: 143 Fixing global and local links... Done.
ZU beachten ist, dass man ggf. einen Siteaccess und den Login angeben muss, damit das Skript auch Zugriff auf die gewünschten
Knoten hat.
php bin/php/ezsubtreecopy.php -s MY_SITEACCESS -l MY_LOGIN -p MY_PASSWORD --src-node-id=4228 --dst-node-id=4877 --keep-creator --keep-time
- Weblinks
- http://ez.no/doc/ez_publish/user_manual/current/daily_tasks/copying_content
- http://ez.no/doc/ez_publish/user_manual/current/the_administration_interface/the_content_structure_tab
