By editor, 30 September, 2016 Create HTML Table. render and theming Tags Drupal 8 Code Theming Example : Table. $header = ['#','Name', 'Mail']; $data = [ [1,'Name 1', 'Mail1@example.com'], [2,'Name NĀ°2', 'second@example.com'], ];
By editor, 27 September, 2016 Get Theme details (Name, Regions, Libraries ...) Tags Drupal 8 Code Theming Get current theme. $theme = \Drupal::theme()->getActiveTheme(); Theme name: $theme_name = \Drupal::theme()->getActiveTheme()->getName();
By editor, 16 September, 2016 Drupal 8's HTML elements render and themes Tags Drupal 8 Code Theming Use custom twig template or alter an existence. Create a custom module then use hook_theme()
By editor, 29 July, 2016 Preprocess a Field, Change Theming of a field Tags Drupal 8 Drupal 7 Theming Pre Process For thah you must use an additional process. 1. Create a custom module (Example : Here we use mymodule)
By editor, 1 July, 2016 Reorder Elements using CSS Tags Theming CSS Example : <style> #parent-div { display: flex; } #el1 { order: 3; } #el2 { order: 2; } #el3 { order: 1; } </style>
By editor, 21 June, 2016 SASS SCSS LESS compile Tags CSS Code Settings Theming Compilers 1. COMPASS Compass is a powerfull command line compiler Install (Linux debian) : sudo apt-get install ruby-compass Link : http://compass-style.org/help/documentation/command-line/ 2. Koala
By editor, 20 June, 2016 CSS Word Wrapping and Text Overflow Propertys Tags Theming CSS Word Wrap ( word-wrap ) Available values of word-wrap property: normal, break-word, initial, inherit Example : Disable HTML word wrapping using CSS .your-class{white-space:nowrap;}
By editor, 14 June, 2016 CSS block formating contexte / CSS Box Model Tags CSS Theming Tuto English : CSS Box Model : http://www.w3schools.com/css/css_boxmodel.asp CSS display Property - http://www.w3schools.com/cssref/pr_class_display.asp
By editor, 4 June, 2016 Inline template with Drupal 8 and Twig Tags Drupal 8 Code Theming Twig Example 1. Basic inline template $output[] = [ '#type' => 'inline_template', '#template' => '{{ yourvar }}', '#context' => [