承接 danstaver/template-hints 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

danstaver/template-hints

Composer 安装命令:

composer require danstaver/template-hints

包简介

Add the option to customize templatehints parameter name.

README 文档

README

Install: composer require danstaver/template-hints

Add the option to customize templatehints parameter name:

By default, if you enable Stores -> Settings -> All Stores -> Advanced -> Developer -> Debug -> Enable Hints for Storefront with URL Parameter / dev/debug/template_hints_storefront_show_with_parameter, the only option you have for the parameter name, is templatehints, because it is hard coded inside \Magento\Developer\Model\TemplateEngine\Plugin\DebugHints::afterCreate, there is no option to customize parameter name.

For me, it was annoying during debugging to write so many letters just to enable the hints. That is why I have created this module, which is adding the Stores -> Settings -> All Stores -> Advanced -> Developer -> Debug -> Parameter Name option in the admin panel. By default, it is set to th, but you can of course set it to any value you want. This, on top with changing the default Parameter Value from default magento to a 1 char value, like 1 or y instead, makes activating the hints a lot faster.

?/th=1 vs ?/templatehints=magento

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固