From c3b9ab2177c3fe0326a947c952818060be6964e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 18 Mar 2020 01:40:49 -0400 Subject: [PATCH] ... spend hours making the first slides more complicated? --- web/content/_index.md | 80 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/web/content/_index.md b/web/content/_index.md index 7ef97aa..8568790 100644 --- a/web/content/_index.md +++ b/web/content/_index.md @@ -7,6 +7,12 @@ outputs = ["Reveal"] ###### mid.camp/6337 +Agaric + +{{% note %}} +mid-air camp +{{% /note %}} + --- ###### Presented by @@ -15,7 +21,7 @@ outputs = ["Reveal"] ###### AKA -**mlncn** & **dinarcon** +**[mlncn](https://agaric.coop/mlncn)** & **[dinarcon](https://agaric.coop/dinarcon)** --- @@ -28,6 +34,16 @@ outputs = ["Reveal"] --- +Agaric + +{{% note %}} +mid-air camp +{{% /note %}} + + +--- + + > When building a Drupal site, “there’s a module for that” can be the sweetest words you can hear. @@ -101,5 +117,67 @@ function frankenstein_form_node_frankenstein_form_alter(&$form, \Drupal\Core\For ![Regular node add form with Save button as reanimate](images/create-frankenstein-reanimate.png) +--- + + +{{% note %}} +So you're all sitting* there thinking ... sure, that's easy if you know the exact words and symbols to *put* in that file. And you're absolutely right. + +And we're going to tell you how you can figure out all of that. + +The examples with the what will tell you a lot about the how. + +But first, two secrets. +{{% /note %}} --- + + +### Now you know where to paste + +(helping developers quit vim) + +{{% note %}} +Knowing where to put this code unleashes the power of Stack Overflow. + +You now know enough to be dangerous. +{{% /note %}} + + +--- + + +### That simple form alter has hidden gotchas + +* As written, it only applies to the create (node/add) form— not the edit form. +* There's a dozen variations + +{{% note %}} +{{% /note %}} + + +--- + + +{{% note %}} +Doing something with a form? You want hook_form_alter() or one of its +{{% /note %}} + + +--- + + +{{% note %}} +{{% /note %}} + + +--- + + +{{% note %}} +{{% /note %}} + + +--- + +