diff --git a/content/_index.md b/content/_index.md index c7e012a..bc2a475 100644 --- a/content/_index.md +++ b/content/_index.md @@ -239,7 +239,7 @@ With our dirty secrets acknowledged, on with the show. - Act Two: **How Not To Have to Make a Whole Module** - Act Three: **How To Make a Module** - Act Four: **How To Figure Out How To Make a Module** - +- Encore {{% note %}} With our dirty secrets acknowledged, on with the show. @@ -248,6 +248,7 @@ With our dirty secrets acknowledged, on with the show. --- +How to make a module ## We'll cover @@ -275,6 +276,7 @@ Doing something with a form? You want hook_form_alter() or one of its variants. --- +How to figure out how to make a module ## Learning to learn @@ -304,7 +306,6 @@ You can do anything with a module! Why wouldn't you make one every day? {{% /note %}} - --- @@ -315,13 +316,30 @@ You can do anything with a module! Why wouldn't you make one every day? {{% note %}} find a contrib module that does it -Should it be in a template +Should it be in a template? If it's very specific to the display on your site, you should probably do it in the theme layer. But if it's at all data and you might ever want to switch themes, or want to allow site builders or site managers to disable or change settings, get that in a module. {{% /note %}} - --- -##### Thre's a module that *almost* does exactly what you want +![Modules link](images/download-extend-modules-menu.png) + +{{% note %}} +{{% /note %}} + +--- + +![Modules search](images/drupal-download-extend-modules-search.png) + +{{% note %}} +I definitely recommend changing core compatibility to something reasonable, 8.x +And Status to "All projects", not just Full, non-sandbox projects, if you're ready to write a module. A sandbox may be a great start. +Then put in your key words and search. +{{% /note %}} + +--- + + +##### There's a module that *almost* does exactly what you want * Contribute a patch! @@ -330,9 +348,23 @@ Should it be in a template Even if your patch is not accepted nor is there any way given to build on the module, you can fork the module— maintain your own copy. {{% /note %}} + --- +[![David fixing a reported comment notify issue all himself.](images/david-fixing-comment-notify-issue-alone.png)](https://www.drupal.org/project/comment_notify/issues/2976478) + +{{% note %}} +This strategy is not without risks. + +David was made a maintainer of Comment Notify, and now routinely fixes issues there all himself. + +Still, that's generally better for *everyone* than to make your own module with duplicate functionality. +{{% /note %}} + + +--- + ### When to make a module