定制 monsieurbiz/sylius-scripts-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

monsieurbiz/sylius-scripts-plugin

Composer 安装命令:

composer require monsieurbiz/sylius-scripts-plugin

包简介

Allows you to add JS scripts from the admin panel.

README 文档

README

Banner of Sylius Scripts plugin

Scripts Settings for Sylius

Scripts Plugin license Tests Status Recipe Status Security Status

This plugin lets you add JS scripts from the admin panel. You can add scripts to the header or the footer of your website.
For example, add Google Analytics, Facebook Pixel, or any other tracking script.

Compatibility

Sylius Version PHP Version
2.0, 2.1 8.2 - 8.3

ℹ️ For Sylius 1.x, see our 1.x branch and all 1.x releases.

Installation

If you want to use our recipes, you can configure your composer.json by running:

composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
composer require monsieurbiz/sylius-scripts-plugin

Create the config file in config/packages/monsieurbiz_sylius_scripts_plugin.yaml:

imports:
    resource: '@MonsieurBizSyliusScriptsPlugin/Resources/config/config.yaml'

Configuration

Go to the admin panel, then Settings > Scripts and add your scripts:

Screenshot of the scripts form in admin panel

And that's it! Your scripts will be added:

Screenshot of the shop example

How to

Change the default settings values for your project

Open the config/packages/monsieurbiz_sylius_scripts_plugin.yaml file and change the default values. For example:

monsieurbiz_sylius_settings:
    plugins:
        monsieurbiz_scripts.scripts:
            default_values:
                before_head_end: |
                    <script type="text/javascript">console.log('My script');</script>

统计信息

  • 总下载量: 11.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固