bitrix-extensions
Installation
SKILL.md
Bitrix JS/CSS extensions
Baseline: main 23.0+ · Verified: main 26.800.0, ui 26.687.0
ID → directory
Every dot of the ID is a directory level (Extension::getPath()): vendor.module.editor → js/vendor/module/editor/, searched in /local/js/ first, then /bitrix/js/. At least 2 segments, each [a-z0-9_-]. A dotted directory (/local/js/vendor.module/editor/) cannot be loaded by ID.
| Code | Where |
|---|---|
| Project | /local/js/vendor/module/editor/ → ID vendor.module.editor |
Distributed module vendor.module |
install/js/vendor/module/editor/, copied to /local/js/ on install |
| Kernel | /bitrix/js/<module>/<ext>/ (ui.buttons) — never edit; a same-path copy in /local/js/ shadows it and stops getting updates |
public function InstallFiles(): void
{
CopyDirFiles(__DIR__ . '/js', \Bitrix\Main\Application::getDocumentRoot() . '/local/js', true, true); // 4th arg = recursive
}