Giter Site home page Giter Site logo

lfalkenhain / magento2-module-templatehints Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shockwavemk/magento2-module-templatehints

0.0 2.0 0.0 30 KB

Magento 2 "Templatehints" module adds new features to Template Path Hints functionality of Magento 2: Template information, cache status, layout information

Home Page: https://packagist.org/packages/shockwavemk/magento2-module-templatehints

License: Open Software License 3.0

PHP 36.56% CSS 63.44%

magento2-module-templatehints's Introduction

Magento 2 - Enhanced template hints

Introduction

templatehings-magento2-settings

The creation, modification and debugging of Magento 2 frontend templates can be supported by enabling the build in "Template Path Hints for Storefront" in Admin configuration of Magento 2.

Store > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Storefront > Yes

The result are graphical enhanced frontend blocks with basic information about template pathes.

magento2-templatehints

This information is useful for template-designer and developers to create or modify Magento 2 features, but the information is provided is kept at a very low level:

Default Template-file behavior

Features

This Magento 2 "Templatehints" module addresses that point. New features are added to Template Path Hints functionality of Magento 2:

  • General information is displayed for each block

    • Template file
    • Block type
    • Name of block in layout
    • Module for block
    • Information about parent block
  • Cache information

  • Cache key of current block

  • Cache Tags of current block

  • Configured lifetime for current block

  • Cache key info string

  • Current status of current block in cache (found, disabled, not found)

Installation of the magento2 template path hints extension

Add the module to your composer file:

{

...

"require": { ...

"shockwavemk/magento2-module-templatehints": "dev-master",

... },

Add my packages server to your composer file:

{ "repositories": [ { "type": "composer", "url": "https://packages.martin-kramer.com" } ] }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.