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

tag (migration step)

Creates, updates, ensures, deletes, moves or merges a tag of eztags, with its translations and synonyms.

Download as PDF

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

On this page

tag

Creates, updates, ensures, deletes, moves or merges a tag of eztags, with its translations and synonyms.

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

Modes

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

Keys

KeyTypeModesDefaultWhat it is
tagidentifier (tag)update, delete, move, mergethe tag: its id, remote:<remote id> or path:<keyword path>
parentscalarcreate, ensure, movethe parent tag (id, remote:, path:); none or 0: at the top. move: the new parent
remote_idstringcreate, update, ensurethe remote id of the tag; ensure finds the tag by it (without it: by keyword: below parent:)
languagestringcreate, update, ensurethe language of keyword: and synonyms: (default: the default language of content); a new tag's main language
keywordstringcreate, update, ensurethe keyword in the language of language:
keywordsmapcreate, update, ensurelanguage => the keyword in it: the translations
main_languagestringupdate, ensurethe language of the tag's main translation (it must have one in it)
always_availableboolcreate, update, ensurewhether the tag is shown in languages it has no translation in (a new tag: false)
synonymslistcreate, update, ensurekeywords that are synonyms of the tag, in the language of language:; the missing ones are added
intoidentifier (tag)mergethe tag that keeps the objects, children and synonyms of tag:
missingstring: fail, skipall"fail"what happens when the tag, or the extension eztags, 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
tag_idthe id of the tag
remote_idits remote id
keywordits keyword in its main language
pathits keyword path (Topics/Sport)
createdtrue when the step created the tag
changedtrue when the step changed something

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.

Example

- type: tag
  mode: ensure
  parent: "path:Topics"
  remote_id: topic-sport
  keyword: Sport
  keywords: { ger-DE: Sport }
  synonyms: [ Sports ]
  references: { sport: tag_id }

Generated by ./console exp:help:examples from settings/migration.ini, kernel/classes/migration/steps/expmigrationsteptag.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