![Page 1: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/1.jpg)
Introducción Comprensivo al Drupal
Front-endJames Wilson
![Page 2: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/2.jpg)
@jwilson3jwilson3.postach.io
![Page 3: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/3.jpg)
![Page 4: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/4.jpg)
• Templates.
• HTML.tpl.php
• Page.tpl.php
• Hooks.
• Themes.
• Tips
• clear cache
• clear registry
![Page 5: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/5.jpg)
Levanta la mano.
![Page 6: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/6.jpg)
![Page 7: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/7.jpg)
![Page 8: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/8.jpg)
![Page 9: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/9.jpg)
Drupal 8: Twig (.twig.html)HTML5 por defecto
![Page 10: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/10.jpg)
Drupal 7: PHP Template (.tpl.php)XHTML por defecto
![Page 11: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/11.jpg)
D8 D7
![Page 12: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/12.jpg)
Conceptos
![Page 13: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/13.jpg)
Conceptos
“Don't hack core”
![Page 14: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/14.jpg)
Conceptos
“Don't hack core”
“Don’t hack contrib”
![Page 15: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/15.jpg)
Conceptos
“Don't hack core”
“Don’t hack contrib”
Aplica a themes también.
![Page 16: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/16.jpg)
Conceptos
• Utilizar "Base themes” (temas de base).
• Crear “Child themes” (sub-temas) para heredar funcionalidad, estilos, etc.
![Page 17: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/17.jpg)
• Usa precaución con actualizaciones, que puedan romper tu sitio.
• Revisar linea-por-linea los cambios (ejem. con GIT) y las páginas que podrían estar afectadas.
![Page 18: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/18.jpg)
![Page 19: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/19.jpg)
CSS
![Page 20: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/20.jpg)
Herencia de hojas de estilo• el sistema
• system.base.css
• system.menus.css
• system.messages.css
• system.theme.css
• los módulos (core y contrib)
• el tema ancestral (si se puede tener multiples!)
• el tema de base.
• el tema propio.
• Herencia funciona, siempre y cuando los archivos no tengan el *mismo* nombre.
![Page 21: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/21.jpg)
mytheme.info
![Page 22: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/22.jpg)
Aggregation
![Page 23: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/23.jpg)
template.php
![Page 24: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/24.jpg)
Override
En vez de editar system.theme.css: cópielo a tu tema, agrégalo al *.info
y editar.
:)
![Page 25: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/25.jpg)
Override
Para editar un template que proviene del core o un módulo de contrib, cópielo a tu tema y editar.
![Page 26: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/26.jpg)
Preprocess
![Page 27: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/27.jpg)
Buscar un tema base• Popularidad ¿Cuántas instalaciones hay?
• Estructura de los archivos ¿es ordenado?
• ¿Grid system / regions / layouts?
• ¿Fijo / fluido / responsive / adaptive?
• ¿SASS o solo CSS?
• Calidad de CSS (SMACSS, BEM, CSS3)
• Minimalistic o relleno con estilos vacíos.
• La parte visual: ¿fácil de manipular?
• Estructura DOM.
![Page 28: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/28.jpg)
Buscar un tema base• http://drupal.org/project/themes
• Twitter Bootstrap - Responsive
• Omega 3 - Adaptive (960gs)
• Omega 4 - Responsive (SASS)
• Zen 5 - Responsive (SASS)
![Page 29: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/29.jpg)
Herramientas
![Page 30: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/30.jpg)
EditorSublime Text :) o VIM
![Page 31: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/31.jpg)
Control de versiones / diffgit & GitHub, FileMerge, SourceTree
![Page 33: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/33.jpg)
![Page 34: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/34.jpg)
![Page 35: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/35.jpg)
![Page 36: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/36.jpg)
Preguntas
![Page 37: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/37.jpg)
http://chapterthree.com/blog/design-drupal-template-approach
![Page 38: Introducción comprensivo al theming para Drupal 7 Front-end](https://reader033.vdocuments.us/reader033/viewer/2022052907/558fbef21a28ab63488b45ac/html5/thumbnails/38.jpg)
Gracias!@jwilson3