Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Theming

By editor , 22 January, 2018

FormattableMarkup : Add parameters, links to a text, table cell data.

Tags

  • Drupal 8
  • Code
  • Theming

Create a customizable text.

Example :
use Drupal\Component\Render\FormattableMarkup;
$text = new FormattableMarkup('My name is @name', ['@name' => "The name"]);

By nuwantha , 24 July, 2017

CSS Fluid Width Video

Tags

  • CSS
  • Theming

Example :

By editor , 19 June, 2017

Test a webpage for Retina display

Tags

  • Testing
  • CSS
  • Theming

To test retina display, just adjust the screen pixel ratio.

By editor , 5 June, 2017

Views template suggestion files

Tags

  • Drupal 8
  • Code
  • Views
  • Theming

All views templates can be overridden with a variety of names, using the view, the display ID of the view, the display type of the view, or some combination thereof.

By editor , 8 March, 2017

Display a web page as print. Media Print Emulate For development and test

Tags

  • CSS
  • Theming

Media Print Emulate on Chrome

(Tested on Chrome Version 56)

By editor , 24 November, 2016

HTML Unicode symbols (From U+2600)

Tags

  • Theming
  • CSS
By editor , 15 November, 2016

Basic CSS Styling tips

Tags

  • Theming
  • CSS
By editor , 9 November, 2016

Specific styling for internet explorer (IE)

Tags

  • Theming
  • CSS

 

By editor , 30 October, 2016

Theme Negotiators - Switch theme dynamically

Tags

  • Drupal 8
  • Code
  • Theming

Create a custom module (here : example)

For active themes by route you first have to define a service in your $module.services.yml file:


On example.services.yml

Add:

By editor , 7 October, 2016

CSS Font Styling

Tags

  • CSS
  • Code
  • Theming

Standard weights:

medium -> font-weight : 500;
semi-bold ->font-weight : 600;

Font Face

Example

Pagination

  • 1
  • Next page
Theming

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer