Wizzlern blog http://wizzlern.nl/drupal/kenniscentrum Wizzlern Drupal-kenniscentrum nl Drupal-jQuery Cheat Sheet http://wizzlern.nl/drupal/drupal-jquery-cheat-sheet <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>A cheat sheet for jQuery integration in Drupal 7 for frontend and backend Drupal developers. Loaded with frequently used commands, methods, libraries, Ajax and States.</p> </div> Sat, 20 Aug 2011 20:00:07 +0000 Erik 136 at http://wizzlern.nl http://wizzlern.nl/drupal/drupal-jquery-cheat-sheet#comments Drupal deployment workflow http://wizzlern.nl/drupal/drupal-deployment-workflow-0 <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>Het landschap van Drupal deployment verandert snel. Met modules zoals Features, Drush en de migratie van Drupal naar Git, hebben Drupal ontwikkelaars en website bouwers nieuwe gereedschappen voor staging en deployment. In dit artikel beschrijven we een gebruikelijke workflow voor een ZZP Drupal shop.<br />  </p> </div> Fri, 01 Jul 2011 11:16:04 +0000 Erik 130 at http://wizzlern.nl http://wizzlern.nl/drupal/drupal-deployment-workflow-0#comments Presentatie: Render Array http://wizzlern.nl/drupal/presentatie-render-array <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>Met Drupal 7 is het mogelijk geworden om vrijwel alles dat er door modules aan inhoud is gegenereerd, binnen je thema te overschrijven. Deze flexibiliteit hebben we te danken aan het Render Array. Deze presentatie is gegeven op DrupalJam 2011.</p> </div> Thu, 23 Jun 2011 15:12:39 +0000 Erik 128 at http://wizzlern.nl http://wizzlern.nl/drupal/presentatie-render-array#comments Drush 4 Cheat Sheet http://wizzlern.nl/drupal/drush-4-cheat-sheet <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>Een cheat-sheet voor veel gebruikte Drush commando's. Een naslagwerk voor alle Drupal gebruikers, want wie kan er nog zonder Drush ;). Bekijk het online of download een exemplaar.</p> </div> Thu, 16 Jun 2011 10:14:50 +0000 Erik 124 at http://wizzlern.nl http://wizzlern.nl/drupal/drush-4-cheat-sheet#comments Drupal 6 Theming Cheat-sheet http://wizzlern.nl/drupal/drupal-6-theming-cheat-sheet <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>Een cheat-sheet voor de Drupal 6 theming met alle theming tools, data flow en veiligheidsfuncties. Een naslagwerk voor Drupal themers. Bekijk het online of download een exemplaar.</p> </div> Sun, 29 May 2011 17:35:28 +0000 Erik 122 at http://wizzlern.nl http://wizzlern.nl/drupal/drupal-6-theming-cheat-sheet#comments Upgrade naar Drupal 7 http://wizzlern.nl/drupal/upgrade-naar-drupal-7 <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p> </p><p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; ">Onlangs hebben we de Wizzlern website geüpgrade naar Drupal 7. Op punten was het heel makkelijk maar ook waren er onverwachte tegenvallers. Een groot compliment aan de ontwikkelaars van Drush is ook op z'n plaats; met Drush gaat een belangrijk deel van het upgrade-proces geheel automatisch.</p><h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-weight: bold; font-size: 1.385em; ">Voorbereiding</h2><ul style="margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 1.5em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; list-style-type: disc; list-style-position: initial; list-style-image: none; "><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; ">Controleer van welke module een Drupal 7 module beschikbaar is. Gebruik hiervoor de <a href="http://drupal.org/project/upgrade_status" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; color: rgb(0, 116, 189); text-decoration: none; ">Upgrade Status-module</a>.</li><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; ">Voer een upgrade van de site uit naar de laatste stabiele versie van alle modules. Met Drush: <i style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; ">drush up</i></li></ul><p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; ">Voor de Wizzlern-site was van de 29 modules alleen van de Node Words-module en de Gmap Blocks-module geen Drupal 7 versie. Van de andere modules was of een (vroege) release of een dev-versie beschikbaar. Hoewel niet optimaal, geen dwingende redenen om van de upgrade af te zien.</p><h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-weight: bold; font-size: 1.385em; ">De upgrade</h2><p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; ">Het upgrade-proces staat beschreven in het bestand UPGRADE.txt dat je in iedere Drupal-installatie vindt en op <a href="http://drupal.org/documentation/upgrade/6/7" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; color: rgb(0, 116, 189); text-decoration: none; ">http://drupal.org/documentation/upgrade/6/7</a>. Houdt er rekening mee dat een upgrade een of meerdere dagen werk kan kosten. Bereid een upgrade daarom voor op een ontwikkelomgeving. Gaat het om een site met dynamische content (bijv. reacties) en/of een site die maar kort off-line kan zijn, dan zijn is automatisering van de upgrade een vereiste. Denk daarbij aan bash-scripts, features, upgrade scripts in PHP, etc. De upgrade van wizzlern.nl kostte 2 dagen. ca. 50% van de tijd voor het Thema en 50% voor content-conversie, Views-conversie en aanpassing van diverse configuraties. De Wizzlern-site heeft geen custom-modules.</p><h3 style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; ">Het proces</h3> </div> Mon, 02 May 2011 14:55:34 +0000 Erik 115 at http://wizzlern.nl http://wizzlern.nl/drupal/upgrade-naar-drupal-7#comments Drupal 7 database Cheat Sheet http://wizzlern.nl/drupal/drupal-7-database-cheat-sheet <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>Een cheat-sheet voor de Drupal 7 database-API (DBTNG) met de belangrijkste en meest gebruikte functies en <em>methods</em>. Bekijk dit naslagwerk voor Drupal module-ontwikkelaars on-line of <a href="http://www.wizzlern.nl/sites/wizzlern.nl/files/11/apr/drupal7db.pdf">download een exemplaar</a>.</p> </div> Mon, 04 Apr 2011 21:06:25 +0000 Erik 107 at http://wizzlern.nl http://wizzlern.nl/drupal/drupal-7-database-cheat-sheet#comments Drupal 7 UX: help-, permission- en configuration-links http://wizzlern.nl/drupal/drupal-7-ux-help-permission-en-configuration-links <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>De Drupal 7 modulepagina (pad: admin/modules) heeft aan de rechterzijde een Operations-kolom met links: Help, Permission en Configuration. De Help-link en de Permission-link verschijnen bijna automatisch, maar hoe komt die Configuration link daar?</p> <p>Configuration-link<br /> Met één regel in het infobestand 'example.info':<br /><code><br /> configure = path/to/example/configuration/page<br /></code></p> <p>De Operations-links bieden de gebruiker een startpunt voor het verkennen van een module. Een punt waar de belangrijkste configuratie handelingen (terug)gevonden kunnen worden. Opmerkelijk is dat de Drupal-API bied géén hook biedt voor <strong>extra Operations-links</strong>. Natuurlijk is er de theme-override mogelijkheid, maar de code is er duidelijk in: het is niet de bedoeling dat modules hier eigen Operations-links toegevoegen.</p> <p>Dat was het moeilijke gedeelte ;) Nu voor de volledigheid nog even wat er nodig is voor de andere links.</p> </div> Mon, 28 Mar 2011 07:54:25 +0000 Erik 102 at http://wizzlern.nl http://wizzlern.nl/drupal/drupal-7-ux-help-permission-en-configuration-links#comments Populaire Drupal-modules http://wizzlern.nl/drupal/populaire-drupal-modules <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>Drupal-gebruikers ervaren het grote aantal Drupal modules als een pluspunt, maar beginners hebben moeite om door de bomen het bos te vinden. Welke module gebruik ik nu voor ..., welke modules raad je me aan? </p> <p>Wij adviseren je de meest gebruikte Drupal-modules te bestuderen, maar delen ook onze lijst met favoriete modules.</p> </div> Wed, 23 Mar 2011 16:29:20 +0000 Erik 86 at http://wizzlern.nl http://wizzlern.nl/drupal/populaire-drupal-modules#comments Drupal 7 UX: Pagina in admin-theme http://wizzlern.nl/drupal/drupal-7-ux-pagina-admin-theme <div class="field field-name-field-ankeiler field-type-text-long field-label-hidden clearfix"> <p>Het beheerthema of admin-theme kan in de Drupal code op twee manieren worden ingesteld:</p> <ul><li>Met hook_menu() + 'theme callback' + 'theme arguments' voor pagina's waarvan de functie nauw verbonden is met het gekozen thema. Bijvoorbeeld om beheerpagina's in het beheerthema te tonen. </li> <li>Met hook_custom_theme() voor algemene thema-wijzigingen. Bijvoorbeeld om alle pagina's per gebruiker in een ander thema te tonen.</li> </ul><p>hook_menu()<br /> De theme-instelling met behulp van hook_menu() gaat met behulp van een callback en arguments. De callback is een functienaam die wordt aangeroepen met arguments als parameter. Een mechanisme dat in hook_menu() vaker wordt gebruitk. Een voorbeeld uit system_menu():</p> <p>system_menu() {<br /> ...<br /> $items['admin'] = array(<br /> 'title' =&gt; 'Administer',<br /> 'access arguments' =&gt; array('access administration pages'),<br /> 'page callback' =&gt; 'system_main_admin_page',<br /> 'weight' =&gt; 9,<br /> 'menu_name' =&gt; 'management',<br /> 'theme callback' =&gt; 'variable_get',<br /> 'theme arguments' =&gt; array('admin_theme'),<br /> 'file' =&gt; 'system.admin.inc',<br /> );<br /> ...<br /> return $items;<br /> }</p> <ul><li>Instelling van het admin-theme is de typische toepassing van 'theme callback'.</li> <li>'theme callback' wordt georven door onderliggende paden. De bovenstaande definitie voor het drupal-pad 'admin', wordt ook gebruikt voor bijv. admin/configure en admin/configure/people/accounts. Als er voor een pad geen 'theme callback' gedefinieerd is, wordt de definitie van een bovenliggend pad gebruikt.</li> <li>De 'theme callback' retourneert de systeemnaam van een actief thema. Een niet actief thema wordt genegeerd.</li> <li>Als er geen theme gedefinieerd is wordt het default-theme gebruikt.</li> <li>Met hook_menu_alter() kan een ander thema ingesteld worden. Maar hiervoor moet men exact weten voor paden 'theme callback' gedefineerd is. Gebruik anders hook_custom_theme() voor een custom theme.</li> </ul><p>De onderstaande hulpfunctie wordt door Drupal gebruikt om het thema van het node-edit-form te bepalen.</p> </div> Tue, 22 Mar 2011 08:06:08 +0000 Erik 101 at http://wizzlern.nl http://wizzlern.nl/drupal/drupal-7-ux-pagina-admin-theme#comments