fatchip-gmbh/plugin_oxid6_srcinject

An Oxid Module for sourcecode injection

1.0.0 2021-11-25 10:20 UTC

This package is auto-updated.

Last update: 2024-12-25 17:22:15 UTC


README

OXID Module for sourcecode injection
With this module you can add additional content such as
CSS snippets or tracking codes, fed directly into the source code through the admin page.

Installation

Installation with Composer

  • In your console, navigate to the root directory of your shop
  • Use the following command to install the module: composer require fatchip-gmbh/plugin_oxid6_srcinject

Manual Installation

  • Copy the content into source/modules of the shop installation
  • In the composer.json file in the base folder of the shop add the autoload configuration or extend if already existing:
"autoload-dev": {
    "psr-4": {
        "FATCHIP\\fcsrcinject\\": "./source/modules/fc/fcsrcinject"
    }
},
  • Connect to the webserver with a console, navigate to the shop base folder and execute the following command:
vendor/bin/composer dump-autoload
  • If your OXID Version >= 6.2, execute the following command
vendor/bin/oe-console oe:module:install-configuration source/modules/fc/fcsrcinject
  • Log in to the shop admin area go to the module
  • Enable the module
  • In the module settings
    • Set Head injection if needed
    • Set Body injection if needed

Author

FATCHIP GmbH | https://www.fatchip.de | support@fatchip.de