Drupal 7.x https://www.keopx.net/categoria/drupal-7x es Drupal Template Helper para Drupal 8 https://www.keopx.net/blog/drupal-template-helper-para-drupal-8 <span class="field field--name-title field--type-string field--label-hidden">Drupal Template Helper para Drupal 8</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><strong>Drupal Template Helper</strong> sirve para destacar las plantillas twig sugeridas en cada caso y el preprocess a utilizar.</p> <p>Esta herramienta es muy cómoda y sencilla de utilizar, facilita muchísimo el poder encontrar las plantillas que son necesarias para cada caso y saber ademas que las esta utilizando.</p> <p>Recordad que es necesario limpiar la cache tras añadir una nueva plantilla para que Drupal sea capaz de reconocer dicho fichero.</p> <p>Este post es únicamente un traducción de la documentación oficial: <a href="https://github.com/arshad/drupal-template-helper">https://github.com/arshad/drupal-template-helper</a></p> <h2>Drupal Template Helper</h2> <p>Es una extensión de <em>Chrome DevTools</em> para las plantillas de Drupal 8, Drupal 7 y Backdrop CMS: <a href="https://chrome.google.com/webstore/detail/ppiceaegogijpjodfpiimifhbnaifbnn">https://chrome.google.com/webstore/detail/ppiceaegogijpjodfpiimifhbnaifbnn</a></p> <p><a href="https://cloud.githubusercontent.com/assets/124599/14293486/d561f37e-fb7d-11e5-8ed0-952d520678a4.png" target="_blank"><img alt="drupal-template-helper" src="https://cloud.githubusercontent.com/assets/124599/14293486/d561f37e-fb7d-11e5-8ed0-952d520678a4.png" /></a></p> <h3>Instalación</h3> <h5>PASO 1: InstalAR Y configurAR.</h5> <ol><li>Descargue e instale la extensión <em>Drupal Template Helper</em> para <em>Chrome</em>.</li> <li>Haga clic en el icono de la extensión.</li> <li>Haga clic en <em>Opciones</em> bajo <strong>Drupal Template Helper</strong>.</li> <li>Agregue las URL de los sitios para habilitar la extensión. Ejemplo: <a href="http://drupal.dev">http://drupal.dev</a>, <a href="http://www.drupal.dev">http://www.drupal.dev</a>.</li> <li>Guardar.</li> </ol><h5>PASO 2: HABILITAR LA API EXPERIMENTAL DEL CHROME.</h5> <ol><li>Ve a <em>chrome://flags/#enable-devtools-experiments</em>, busca <strong>Experimental Extension APIs</strong> y <strong>Developer Tools experiments</strong>, hacer click en "<em>Enable</em>" enlaces, y reinicia Chrome.</li> <li>Abrir <em>DevTools</em> y hacer click en <em>Settings</em>.</li> <li>Busca en la pestaña <strong>Experiments</strong> y activa <strong>Allow custom UI themes</strong>. Ver la siguiente captura. No olvides reiniciar nuevamente Chrome.</li> </ol><p><a href="https://cloud.githubusercontent.com/assets/124599/14293054/e6350e72-fb7b-11e5-973a-31794db51e4d.png" target="_blank"><img alt="drupal-template-devtools-theme-ui" src="https://cloud.githubusercontent.com/assets/124599/14293054/e6350e72-fb7b-11e5-973a-31794db51e4d.png" /></a></p> <p>Nota: Si desea ocultar los comentarios de Twig, desactive <strong>Show HTML comments</strong> en <strong>Preferences</strong>.</p> <p><a href="https://cloud.githubusercontent.com/assets/124599/21719927/b5c16cb2-d439-11e6-8cc7-a84192aa822a.png" target="_blank"><img alt="drupal-template-devtools-preferences" src="https://cloud.githubusercontent.com/assets/124599/21719927/b5c16cb2-d439-11e6-8cc7-a84192aa822a.png" /></a></p> <h5>PASO 3: HABILITAR EL TEMA DEBUG</h5> <ul><li>Para Drupal 8, ver el articulo de Phil's article: <a href="https://www.chapterthree.com/blog/drupal-8-theming-setting-theme-debugging">https://www.chapterthree.com/blog/drupal-8-theming-setting-theme-debugging</a></li> <li>Para Drupal 7, ver <a href="https://www.drupal.org/node/223440">https://www.drupal.org/node/223440</a>.</li> </ul><h3>Uso</h3> <p>Inspeccionar un elemento usando <em>DevTools</em> y haciendo click sobre <strong>Templates</strong> en la barra de <em>DevTools</em>.</p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Lun, 03/07/2017 - 15:02</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal-8x" hreflang="es">Drupal 8.x</a></div> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/categoria/drupal-planeta" hreflang="es">Drupal Planeta</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/drupal-8x" hreflang="es">Drupal 8.x</a></div> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/twig" hreflang="es">Twig</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title">Comentarios</h2> <article role="article" data-comment-user-id="0" id="comment-3089" about="/comment/3089" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1535297507"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Capy (no verificado)</span></span> </p> <p class="comment__time">Mié, 22/08/2018 - 16:55 <span property="schema:dateCreated" content="2018-08-22T14:55:53+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/3089#comment-3089" hreflang="es">Enlace permanente</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/3089#comment-3089" class="permalink" rel="bookmark" hreflang="es">Comentar ademas que si…</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Comentar ademas que si quieres algo mas agnóstico (para FF o Safari) puedes habilitar en tu drupal las sugerencias de templates directamente en el código fuente siguiendo estas instrucciones <a href="https://www.drupal.org/node/2598914">https://www.drupal.org/node/2598914</a></p> <p>Saludos!</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=3089&amp;1=default&amp;2=es&amp;3=" token="oVwLhIVv59xxWxTfA-7X4dAAyRXUKh2Eu7GrWEeJy2I"></drupal-render-placeholder> </div> </article> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=272&amp;2=field_comments&amp;3=comment" token="d96fs2f8NKd88q03-l2WzEa5JPGEsqEWuRLD9OvvCsM"></drupal-render-placeholder> </section> Mon, 03 Jul 2017 13:02:10 +0000 keopx 272 at https://www.keopx.net Coder Sniffer for Drupal Coding Standards https://www.keopx.net/blog/coder-sniffer-drupal-coding-standards <span class="field field--name-title field--type-string field--label-hidden">Coder Sniffer for Drupal Coding Standards</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Install Coder with composer:</p> <pre> <code class="language-bash">composer global require drupal/coder</code></pre><p><strong>Custom setup using for Drupal Coding Standards.</strong></p> <p>Add symbolic path to support <em>Drupal</em> and <em>DrupalPractice</em> Standard:</p> <pre> <code class="language-bash">$ ln -s ~/.composer/vendor/drupal/coder/coder_sniffer/Drupal ~/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Drupal $ ln -s ~/.composer/vendor/drupal/coder/coder_sniffer/DrupalPractice ~/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalPractice</code></pre><p>If you're using <em>bash</em>, edit <em>$HOME/.bashrc</em> (or <em>$HOME/.bash_profile</em>).</p> <pre> <code class="language-bash">alias drupalcs="~/.composer/vendor/bin/phpcs --colors --standard=~/.composer/vendor/drupal/coder/coder_sniffer/Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md"</code></pre><p>Or if you added symbolic links:</p> <pre> <code class="language-bash">alias drupalcs="~/.composer/vendor/bin/phpcs --colors --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md"</code></pre><pre> <code class="language-bash">source .bashrc</code></pre><p>Execution example:</p> <pre> <code class="language-bash">$ drupalcs modules/custom/custom_crm FILE: ...ww/docroot/modules/custom/custom_crm/src/CrmConfigUri.php ---------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 3 | ERROR | [x] There must be one blank line after the namespace | | declaration 6 | ERROR | [x] Missing class doc comment 28 | ERROR | [x] Expected 1 newline at end of file; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- Time: 157ms; Memory: 7.75Mb </code></pre><p>References:</p> <ul><li><a href="https://www.drupal.org/project/coder">Coder</a></li> <li><a href="https://www.drupal.org/node/1419988">Installing Coder Sniffer</a></li> <li><a href="https://www.drupal.org/node/1587138">Command Line Usage</a></li> </ul></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sáb, 16/07/2016 - 11:38</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drupal-8x" hreflang="es">Drupal 8.x</a></div> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/drupal-8x" hreflang="es">Drupal 8.x</a></div> <div class="field__item"><a href="/tag/quality" hreflang="es">Quality</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=266&amp;2=field_comments&amp;3=comment" token="gqLjaRVS46gQeekKVb4H5xj9BaiDawhrBhoEKGIhT7s"></drupal-render-placeholder> </section> Sat, 16 Jul 2016 09:38:42 +0000 keopx 266 at https://www.keopx.net DrupalDay Bilbao 2014: Publica tu proyecto en drupal.org https://www.keopx.net/talk/drupalday-bilbao-2014-publica-tu-proyecto-en-drupalorg <span class="field field--name-title field--type-string field--label-hidden">DrupalDay Bilbao 2014: Publica tu proyecto en drupal.org</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sáb, 08/11/2014 - 19:46</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Sesión de contribución a <a href="https://www.drupal.org">drupal.org</a> con nuevos módulos en el <a href="https://2014.drupalday.es/">DrupalDay Bilbao 2014</a>.</p> <p>Esta sesión la realice junto a <a href="https://www.drupal.org/u/alvar0hurtad0">Alvaro Hurtado</a> en la que compartimos la experiencia que tuve cuando le <em>mentorice</em> para la publicación de su primer modulo.</p> <ul><li>Esto tiene que existir ! Módulos relacionados! Issues abandonadas! Un módulo para drupal5 que se parece pero no es! …</li> <li>¿Alguien sabe cómo…? no me suenaNOOOOOO! !!!!!!!</li> <li>Debería existir y estar contribuido BUSCA A ALGUIEN QUE TE LO PUBLIQUE PASA EL PROCESO DE REVISIÓN.</li> </ul><p> </p> <p class="text-align-center"> <iframe allowfullscreen="" frameborder="0" height="485" marginheight="0" marginwidth="0" scrolling="no" src="//www.slideshare.net/slideshow/embed_code/key/BWVDuqAkJjdGsO" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" width="595"></iframe></p> <div class="text-align-center" style="margin-bottom:5px"><strong><a href="//www.slideshare.net/keopx/drupalday-bilbao-2014-publica-tu-proyecto-en-drupalorg" target="_blank" title="DrupalDay Bilbao 2014: Publica tu proyecto en drupal.org">DrupalDay Bilbao 2014: Publica tu proyecto en drupal.org</a> </strong> de <strong><a href="https://www.slideshare.net/keopx" target="_blank">Keopx </a></strong></div> <div> </div> <div>Sesión: <a href="https://2014.drupalday.es/sesion/publica-tu-proyecto-en-drupalorg.html">https://2014.drupalday.es/sesion/publica-tu-proyecto-en-drupalorg.html</a></div> </div> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/categoria/drupal-8x" hreflang="es">Drupal 8.x</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/drupal-8x" hreflang="es">Drupal 8.x</a></div> <div class="field__item"><a href="/tag/drupaday" hreflang="es">DrupaDay</a></div> </div> </div> Sat, 08 Nov 2014 18:46:12 +0000 keopx 290 at https://www.keopx.net e-Ghost: Introducción al desarrollo de módulos en Drupal 7 https://www.keopx.net/talk/e-ghost-introduccion-al-desarrollo-de-modulos-en-drupal-7 <span class="field field--name-title field--type-string field--label-hidden">e-Ghost: Introducción al desarrollo de módulos en Drupal 7</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Lun, 07/07/2014 - 18:47</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Presentación del taller para la introducción al desarrollo de módulos en <a href="https://www.drupal.org">Drupal </a>7. </p> <p>Taller realizado en los <a href="https://sites.google.com/a/deusto.es/e-ghost-2014/">cursillos de verano de e-Ghost 2014</a>.</p> <p>Material para poder realizar las practicas: <a href="http://eghost2014.keopx.net/">http://eghost2014.keopx.net/</a></p> <p>Hablaremos de:</p> <ul><li>Estándares.</li> <li>Herramientas.</li> <li>Organización de módulos.</li> <li>Organización de código.</li> <li>Código.</li> </ul><p class="text-align-center"> <iframe allowfullscreen="" frameborder="0" height="485" marginheight="0" marginwidth="0" scrolling="no" src="//www.slideshare.net/slideshow/embed_code/key/knQa0DaU2nWk0P" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" width="595"></iframe></p> <div class="text-align-center" style="margin-bottom:5px"><strong><a href="//www.slideshare.net/keopx/eghost-2014-introduccin-al-desarrollo-de-mdulos-en-drupal-7" target="_blank" title="e-Ghost 2014: introducción al desarrollo de módulos en drupal 7">e-Ghost 2014: introducción al desarrollo de módulos en drupal 7</a> </strong> de <strong><a href="https://www.slideshare.net/keopx" target="_blank">Keopx </a></strong></div> </div> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/curso" hreflang="es">Curso</a></div> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> </div> </div> Mon, 07 Jul 2014 16:47:03 +0000 keopx 286 at https://www.keopx.net Taller en Bilbao: Introducción al desarrollo de módulos en Drupal 7 https://www.keopx.net/blog/taller-en-bilbao-introduccion-al-desarrollo-de-modulos-en-drupal-7 <span class="field field--name-title field--type-string field--label-hidden">Taller en Bilbao: Introducción al desarrollo de módulos en Drupal 7</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Poco más que contar, repetimos la formación de la DrupalCamp 2014, pero esta vez en Bilbao y 4 horas de taller donde tendremos algo más de tiempo para profundizar en los temas. No me voy a extender mucho, pues la información podéis encontrarla en: <a href="https://sites.google.com/a/deusto.es/e-ghost-2014/cursos/introduccion-al-desarrollo-de-modulos-en-drupal-7">https://sites.google.com/a/deusto.es/e-ghost-2014/cursos/introduccion-al-desarrollo-de-modulos-en-drupal-7</a></p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Lun, 23/06/2014 - 19:54</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/formacion" hreflang="es">Formación</a></div> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/modules" hreflang="es">Modules</a></div> <div class="field__item"><a href="/tag/desarrollo" hreflang="es">Desarrollo</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=254&amp;2=field_comments&amp;3=comment" token="wWfJ9TtiuIyHrYg0tejTztMXpPqemkq10hwX4y6Baos"></drupal-render-placeholder> </section> Mon, 23 Jun 2014 17:54:32 +0000 keopx 254 at https://www.keopx.net DrupalCamp Spain 2014: Introducción al desarrollo de módulos en Drupal 7 https://www.keopx.net/talk/drupalcamp-spain-2014-introduccion-al-desarrollo-de-modulos-en-drupal-7 <span class="field field--name-title field--type-string field--label-hidden">DrupalCamp Spain 2014: Introducción al desarrollo de módulos en Drupal 7</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sáb, 17/05/2014 - 18:52</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Taller realizado en la <a href="https://2014.drupalcamp.es/node/210.html">DrupalCamp Spain de 2014</a> centrado en el desarrollo para <a href="https://www.drupal.org">Drupal</a> 7. En el taller se mostrara la creación de un modulo básico, veremos ejemplos existentes y como poder aprovecharlos para hacer nuestros desarrollos a medida.</p> <p>Se explicara por encima algunos conceptos.</p> <p>Puedes facilitar lo que deseas encontrarte en el taller, de esta manera intentare <strong>ajustarme a lo que los asistentes</strong> desearían conocer :)</p> <ul><li><strong>Formulario</strong>:<a href="https://docs.google.com/forms/d/1CRHEpx18oDz5Hs6CQdTXJjgWuAD-suQWDWGX19O54FY/viewform"> https://docs.google.com/forms/d/1CRHEpx18oDz5Hs6CQdTXJjgWuAD-suQWDWGX19O54FY/viewform</a></li> </ul><p>Sera necesario tener instalado el entorno de desarrollo, un entorno con Drupal en LAMP, MAMP, WAMP o similar para poder trabajar.</p> <p><strong>Recomendación</strong>:</p> <ul><li>Drupal 7</li> <li>IDE de desarrollo.</li> </ul><p>Algunos módulos que veremos, por ello es aconsejable instalarlos.</p> <ul><li>Modulo Devel</li> <li>Modulo Coder</li> </ul><p>Están disponibles maquinas virtuales o instaladores para facilitar:</p> <p>Maquina Virtual</p> <ul><li><a href="http://drupalcamp2014.keopx.net/">http://drupalcamp2014.keopx.net/</a> (recomendado)</li> <li><a href="https://bitnami.com/stack/drupal/installer">https://bitnami.com/stack/drupal/installer</a></li> <li><a href="https://bitnami.com/stack/drupal/virtual-machine">https://bitnami.com/stack/drupal/virtual-machine</a></li> </ul><p>Presentación</p> <ul><li><a href="http://drupalcamp2014.keopx.net/">http://drupalcamp2014.keopx.net/</a></li> </ul><p class="text-align-center"> <iframe allowfullscreen="" frameborder="0" height="485" marginheight="0" marginwidth="0" scrolling="no" src="//www.slideshare.net/slideshow/embed_code/key/KOdLfu4RHnznGu" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" width="595"></iframe></p> <div class="text-align-center" style="margin-bottom:5px"><strong><a href="//www.slideshare.net/keopx/drupal-campspain-2014-introduccin-al-desarrollo-de-mdulos-en-drupal-7" target="_blank" title="DrupalCamp Spain 2014: Introducción al desarrollo de módulos en Drupal 7">DrupalCamp Spain 2014: Introducción al desarrollo de módulos en Drupal 7</a> </strong> de <strong><a href="https://www.slideshare.net/keopx" target="_blank">Keopx </a></strong></div> <div class="text-align-center" style="margin-bottom:5px"> </div> <p>PD: Hablaremos de manera superficial de D6, pues es muy similar a D7.</p> </div> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/contribuir" hreflang="es">Contribuir</a></div> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/desarrollo" hreflang="es">Desarrollo</a></div> <div class="field__item"><a href="/tag/modules" hreflang="es">Modules</a></div> </div> </div> Sat, 17 May 2014 16:52:34 +0000 keopx 287 at https://www.keopx.net Drush: listar modulos activados https://www.keopx.net/blog/drush-listar-modulos-activados <span class="field field--name-title field--type-string field--label-hidden">Drush: listar modulos activados</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Mediante drush podemos ver la lista de módulos activados. Esto nos viene bien para poder listar los módulos de forma rápida, puesto que normalmente solemos tener múltiples módulos que cuesta visualizarlos. <code>drush pm-list --type=Module --status=enabled</code></p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Mié, 12/02/2014 - 19:40</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drush" hreflang="es">Drush</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/drush" hreflang="es">Drush</a></div> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=251&amp;2=field_comments&amp;3=comment" token="f9gfzalt5nvW-Xs8iN__pEQKIcKsf4WFm8LXOt5ZcZI"></drupal-render-placeholder> </section> Wed, 12 Feb 2014 18:40:46 +0000 keopx 251 at https://www.keopx.net Drupal 7: Reiniciar contraseña con drush https://www.keopx.net/blog/drupal-7-reiniciar-contrasena-con-drush <span class="field field--name-title field--type-string field--label-hidden">Drupal 7: Reiniciar contraseña con drush</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Cuando no recordamos una contraseña de un sitio de Drupal podemos resetearla de forma muy rapida y sencilla usando Drush:</p> <pre class="brush: bash"> $ drush upwd admin --password="nuevapassword"</pre><p>También existe otra forma de hacerlo un poco más "artesana":</p> <pre class="brush: sql"> $ mysql -u&lt;user&gt; -p&lt;pass&gt; &lt;db&gt;</pre><p>Y lanzamos la consulta a la base de datos:</p> <pre class="brush: sql; auto-links: false; collapse: false; first-line: 1; html-script: false; smart-tabs: false; tab-size: 2; toolbar: false; codetag"> UPDATE users SET name='admin', pass=md5('nuevapassword') WHERE uid=1;</pre><p> </p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Vie, 31/01/2014 - 10:35</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drush" hreflang="es">Drush</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/drush" hreflang="es">Drush</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=248&amp;2=field_comments&amp;3=comment" token="gWa1Hy-m5gHhAh7FBQTaDxZUev09ut2r3GtiLglR2vY"></drupal-render-placeholder> </section> Fri, 31 Jan 2014 09:35:01 +0000 keopx 248 at https://www.keopx.net Drupal 7 activar admin menu y eliminar toolbar https://www.keopx.net/blog/drupal-7-activar-admin-menu-y-eliminar-toolbar <span class="field field--name-title field--type-string field--label-hidden">Drupal 7 activar admin menu y eliminar toolbar</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Para usar el menú con funciones extendidas, que a mi personalmente me encanta, usaremos admin_menu. Instalar admin_menu:</p> <pre class="brush: bash"> $ drush en admin_menu admin_menu_toolbar -y</pre><p>Eliminar toolbar:</p> <pre class="brush: bash"> $ drush dis toolbar -y &amp;&amp; drush pmu toolbar -y</pre><p>Recordar limpiar la cache</p> <pre class="brush: bash"> $ drush cc all</pre></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Mar, 28/01/2014 - 09:54</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drush" hreflang="es">Drush</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/modules" hreflang="es">Modules</a></div> <div class="field__item"><a href="/tag/drush" hreflang="es">Drush</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=246&amp;2=field_comments&amp;3=comment" token="7C0nkeNYBjxgcPAfz5ZBEoWEu74_awyFjy3i1mnyHT0"></drupal-render-placeholder> </section> Tue, 28 Jan 2014 08:54:42 +0000 keopx 246 at https://www.keopx.net Drupal 7 eliminar overlay https://www.keopx.net/blog/drupal-7-eliminar-overlay <span class="field field--name-title field--type-string field--label-hidden">Drupal 7 eliminar overlay</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Como es sabido en Drupal 8.x han eliminado overlay. Personalmente nunca me gusto, aunque haya gente a la que le guste ese efecto. Por ello vamos a eliminar el overlay:</p> <pre class="brush: bash"> $ drush dis overlay -y &amp;&amp; drush pmu overlay -y</pre><p>Ahora limpiamos la cache y listo:</p> <pre class="brush: bash"> $ drush cc all</pre></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Lun, 27/01/2014 - 09:50</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/categoria/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/categoria/drush" hreflang="es">Drush</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/drupal-7x" hreflang="es">Drupal 7.x</a></div> <div class="field__item"><a href="/tag/drupal" hreflang="es">Drupal</a></div> <div class="field__item"><a href="/tag/drush" hreflang="es">Drush</a></div> <div class="field__item"><a href="/tag/modules" hreflang="es">Modules</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=245&amp;2=field_comments&amp;3=comment" token="OJ9q06l630cLhjdjMHcfGau119H2brmyMl-dDfb0PVA"></drupal-render-placeholder> </section> Mon, 27 Jan 2014 08:50:03 +0000 keopx 245 at https://www.keopx.net