/redaxo-multiglossar:multiglossar-replacement-enginefrom redaxo-multiglossar
Debug missing replacements, broken tooltip HTML, and replacement performance in the MultiGlossar addon. Covers OUTPUT_FILTER hook, DOM parsing, regex matching, and URL namespace resolution.
Ships in redaxo-multiglossar. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Frontend replacement is executed in boot.php via rex_extension::register('OUTPUT_FILTER', ...) and delegated to MultiGlossar\\Parser (lib/glossar/multiglossar.php).
OUTPUT_FILTER receives the rendered page HTML.clang_id.This architecture avoids raw global string replacement and limits changes to parsed text nodes.
MultiGlossar\Parseris internal. Don't construct or call it from your own code — the stable integration points are theOUTPUT_FILTERhook (which the addon already registers) and the addon's config. The methods below are documented so you can read along when debugging, not as an API to invoke.
Key parser methods:
init_dom($source) - detects configured start/end scope, loads glossary rows, initializes ignored tags/classesparse_dom() - traverses the DOM and rebuilds final outputparse_childs($node) - recursive node walk with lock checkstext_replace($content) - regex-based term matching and replacement token strategy<!--exclude-->...<!--endexclude--> comment pairs are transformed into temporary elements and excluded from matching.
Replacement behavior includes:
term_alt are additional searchable markerscasesensitive)article_complete IDs where all matches are replaced\\b...\\b) to reduce accidental substring hitsReplacement markup is driven by config replace_definition. Supported placeholders include:
---DEFINITION---, ---URL---, ---TERM--- (escaped variants)---DEFINITION_RAW---, ---URL_RAW---, ---TERM_RAW--- (raw variants)This enables custom tooltip/link markup without touching PHP code.
resolveUrlKey() resolves the query key/namespace for glossary detail URLs:
gloss_id_<clangId>Url\\Profile or rex_url_generator_profileThis is important when URL profiles rewrite parameter names.
The parser normalizes certain UIkit tooltip patterns so configured output remains valid with dynamic definitions (for example converting direct data-uk-tooltip usage to a uk-tooltip="title: ..." format when needed).
a, headings, script, style, configured classes/tags).clang_id specific.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub friendsofredaxo/claude-marketplace --plugin redaxo-multiglossar3 skills in this plugin
/multiglossar-configuration-exclusionsMultiGlossar configuration and exclusion rules - glossar_starttag/glossar_endtag scope selection, glossar_ignoretags with tag/class locks, article/template/metainfo exclusion settings, cache and turbocache options, and yrewrite/domain-specific glossary article mapping (article_<domainId>). Use when the user configures where replacements happen or why certain pages/articles must be skipped./multiglossar-content-managementMultiGlossar backend data management - creating terms and term_alt aliases, activating/deactivating terms, multi-language behavior with clang tabs, and editor permissions. Use when the user works with pages/main.php, rex_multiglossar records, clang-specific glossary entries, or asks how terms are maintained across languages.Other plugins' skills for the same job