Chrome extension for Drupal 8, Drupal 7 and Backdrop CMS templates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
test
.babelrc
.bowerrc
.editorconfig
.gitattributes
.gitignore
.yo-rc.json
CHANGELOG.txt
LICENSE
README.md
bower.json
gulpfile.babel.js
package.json

README.md

Drupal Template Helper

A Chrome DevTools extension for Drupal 8, Drupal 7 and Backdrop CMS templates: https://chrome.google.com/webstore/detail/ppiceaegogijpjodfpiimifhbnaifbnn

drupal-template-helper

Installation

Step 1: Install and configure.
  1. Download and install the Drupal Template Helper extension for Chrome.
  2. Click on the extension icon.
  3. Click on Options under Drupal Template Helper.
  4. Add the urls for sites to enable the extension. Example: http://drupal.dev, http://www.drupal.dev.
  5. Save.
Step 2: Enable Chrome Experimental APIs.
  1. Go to chrome://flags/#enable-devtools-experiments, find Experimental Extension APIs and Developer Tools experiments, click the "Enable" links, and restart Chrome.
  2. Open DevTools and click on Settings.
  3. Find the Experiments tab and enable Allow custom UI themes. See screenshot below. Don't forget to restart Chrome again.

drupal-template-devtools-theme-ui

Note: If you want to hide the Twig comments, uncheck Show HTML comments under Preferences.

drupal-template-devtools-preferences

Step 3: Enable theme debug

Usage

Inspect an element using DevTools and click on Templates in the DevTools sidebar.

License

The MIT License (MIT)

Copyright (c) 2015 Arshad Chummun

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.