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

section (migration step)

Creates, updates, ensures or deletes a section, or assigns a section to a part of the content tree.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/migration-steps/section.md

On this page

section

Creates, updates, ensures or deletes a section, or assigns a section to a part of the content tree.

A step of a YAML migration with type: section. The class expMigrationStepSection (kernel/classes/migration/steps/expmigrationstepsection.php) is registered in settings/migration.ini [StepSettings] StepTypeList[section].

Modes

mode: is one of create, update, ensure, delete, assign; every step names one.

Keys

KeyTypeModesDefaultWhat it is
sectionidentifier (section)update, delete, assignthe section: its identifier or id
identifierstringcreate, update, ensurethe identifier of the section; ensure finds the section by it (update: a new identifier)
namestringcreate, update, ensurethe name of the section
navigation_partstringcreate, update, ensurethe navigation part of the administration the section belongs to (default: ezcontentnavigationpart)
nodeidentifier (node)assignthe node whose object (and the objects below it, by scope:) gets the section
objectidentifier (object)assignthe object that gets the section (or node:), at its main node
scopestring: subtree, inherited, objectassign"subtree"subtree (the default): the objects below too; inherited: those below that had the same section; object: the object alone
missingstring: fail, skipupdate, delete, assign"fail"what happens when the section is not there: fail (the default) or skip

Besides these, every step takes the keys of the engine: type, mode, if, references, environments, engines and comment (the file format). A key of type identifier names a node, an object or another part of the installation by id, remote id, path or name (identifiers).

Values for references

references: { <name>: <value> } keeps a value of the step's result as ${ref.<name>} for the steps and migrations after it:

ValueWhat it is
section_idthe id of the section
identifierits identifier
nameits name
createdtrue when the step created the section
changedtrue when the step changed it (created, updated, deleted or assigned)

Undoing

Some steps of this type undo themselves when their migration is rolled back without down: (the class says which); a migration with any other step of it needs down: or a rollback to its caption.

Caches it touches (cleared after the run): content, user_info_cache.

Example

- type: section
  mode: ensure
  identifier: news
  name: News
- type: section
  mode: assign
  section: news
  node: "path:news"

Generated by ./console exp:help:examples from settings/migration.ini, kernel/classes/migration/steps/expmigrationstepsection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

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