Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,090 of 9,090 pages
About the help in other languages
All help pages

exp:addeditorpolicies

Gibt der Rolle Editor die alltäglichen Richtlinien, die ihr fehlen: content/hide, content/restore, content/reverserelatedlist, ezmultiupload, den Bildeditor, das eigene Konto, den UI-Umschalter, die Klassengruppen aus…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/addeditorpolicies.md

On this page

This page is a translation. Read the English original

exp:addeditorpolicies

Gibt der Rolle Editor die alltäglichen Richtlinien, die ihr fehlen: content/hide, content/restore, content/reverserelatedlist, ezmultiupload, den Bildeditor, das eigene Konto, den UI-Umschalter, die Klassengruppen aus editorpolicies.ini, ohne doppelte Richtlinien (Probelauf, außer mit --apply).

Skript bin/php/addeditorpolicies.php, Code in kernel/private/classes/commands/addeditorpolicies.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:addeditorpolicies --help
php bin/php/addeditorpolicies.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Give the Editor role the policies an editor needs for everyday work and it lacks: hiding and
revealing (content/hide), the trash (content/restore), the list of what uses an object
(content/reverserelatedlist), where the modules are active ezmultiupload and the image editors
(expimageeditor/edit, ezie/*), and the own account
(user/password, user/selfedit, notification/use) when no other role of the editors has it.
A policy the role, or another role of the same users or groups, has in any form (also limited, or
module/*) is left alone, so the script can run again.
First, a content/* without limitations (the base data's, which plain_site keeps) is replaced by the
content functions the site packages give editors (create, edit, read, manage_locations, diff,
versionread, versionremove, remove, translate, bookmark, pendinglist, dashboard, view_embed, hide,
restore, reverserelatedlist): it also grants emptying everybody's trash, the languages, the URL
aliases and everybody's content jobs. --keep-content-wildcard leaves it. Lists what the role still
holds that an editor role should not (WARN lines). Prints PASS or FAIL at the end.
The UI switch's language and design choice (uiswitch/language, uiswitch/design) are added where
the provider exists. Then the class sets of editorpolicies.ini (default: the media site's ng_*
classes): one content/create limited to the set's classes the role cannot create yet and its parent
classes, and one websitetoolbar/use for them. A policy the role holds twice (same module, function
and limitations) is removed once (--keep-duplicates leaves it).
Without --apply nothing is written: the script lists what it would remove and add. --dry-run is
still accepted and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).

Example: php bin/php/addeditorpolicies.php
         php bin/php/addeditorpolicies.php --apply
         php bin/php/addeditorpolicies.php --apply --only=content/restore
         php bin/php/addeditorpolicies.php --apply --skip=ezmultiupload/* --role=Redakteur

Optionen

OptionWertHilfe
--applyDie Änderungen schreiben (Standard ist ein Probelauf, der sie auflistet und nichts ändert)
--dry-runDer Standard, beibehalten für Skripte, die die Option übergeben: auflisten, was entfernt und hinzugefügt würde, nichts ändern
--roleerforderlichDie zu vervollständigende Rolle (ID oder Name); Standard Editor
--onlyerforderlichNur diese Richtlinie (Modul/Funktion), kann wiederholt werden
--skiperforderlichNie diese Richtlinie (Modul/Funktion), kann wiederholt werden; z. B. hält --skip=content/restore den Papierkorb geschlossen
--keep-content-wildcardEin content/* der Rolle so lassen, wie es ist (nicht durch einzelne Funktionen ersetzt)
--keep-duplicatesEine Richtlinie, die die Rolle zweimal hat, stehen lassen (Standard entfernt die spätere)
--skip-class-seterforderlichNie diese Klassengruppe aus editorpolicies.ini (z. B. media_site), kann wiederholt werden

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/addeditorpolicies.php, kernel/private/classes/commands/addeditorpolicies.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x