XF 2.2 Addon for Template Modification not applyed

drfuture1

Member
Hi,
i created a very simple "addon" through xenforo UI to modify a template. After i moved this addon to a new forum and installed it there - it does not work (The Modifikation is not listed at "Template Modifiacations" on Dev-Mod.

The addon.js:

{
"legacy_addon_id": "",
"title": "Template x",
"description": "Insert Script",
"version_id": 1000,
"version_string": "1.0",
"dev": "Mrx",
"dev_url": "",
"faq_url": "",
"support_url": "",
"extra_urls": [],
"require": [],
"icon": "logo.png"
}

The only Folders:

/_output/template_modifications/public

Src JS.json:
{
"template": "PAGE_CONTAINER",
"description": "Do something.",
"execution_order": 10,
"enabled": true,
"action": "str_replace",
"find": "</footer>",
"replace": "$0\n<script> <!-- JS -->xxxxx\>
}
one level up there is a _metadata.json with the hash to JS.json

since creation of this addon and installation on the new forum there was a version update from 2.2.6 to 2.2.7
Do i have to change something to have loaded the modification?
 
It sounds like you may have missed some steps.

The _output directory and the JSON files that have been created are only for development purposes and aren't used for deploying the add-on to other sites.

You need to build the add-on release which will convert it into an installable zip file you can install via the control panel of the target site.
 
Back
Top Bottom