Composer https://michalak.world/ en Drupal 9 Patch htaccess with Composer https://michalak.world/article/drupal-9-patch-htaccess-composer <span>Drupal 9 Patch htaccess with Composer</span> <span><span>useradmin</span></span> <span>Thu, 09/21/2023 - 12:28</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>In composer.json add to the scripts section. See below:</p> <pre> "scripts": { "pre-install-cmd": [],   ... "post-drupal-scaffold-cmd": [ "patch -p1 &lt; patches/my-htaccess.patch" ] }, </pre> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=91&amp;2=comment&amp;3=comment" token="YwgHS-LCDb_Q9b7iBwPzs1DFMKlXOZP2gM97Z2nh3X8"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/composer"> <div class="field field--name-name field--type-string field--label-hidden field__item">Composer</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/configuration"> <div class="field field--name-name field--type-string field--label-hidden field__item">Configuration</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-9"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 9</div> </a></h2> </div> </li> </ul> </div> Thu, 21 Sep 2023 17:28:07 +0000 useradmin 91 at https://michalak.world Drupal 8 Configuration Synchronization https://michalak.world/article/drupal-8-configuration-synchronization <span>Drupal 8 Configuration Synchronization </span> <span><span>useradmin</span></span> <span>Mon, 04/29/2019 - 07:20</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><h2>Configuration Synchronization</h2> <p>Drupal 8 has a really great configuration synchronization system, and is great for syncing up different environments.  When creating new modules and adding new fuctionality I really enjoy working with Drupal 8's configuration synchronization tool.  Not only does this tool take the guesswork out of updates that need to be made on other environments.  The configuration synchronization also allows for all changes to be documented.  </p> <h2>New Modules and New Functionality</h2> <p>The Drupal 8 content synchronization tool paired with Drupal 8's update hooks are great ways to make all of the new changes portable and documented.  I have adopted this methodology when moving out changes from environment to environment.  Pairing this methodology with a deployment guide and taking out all of the guesswork of what needs to be updated.</p> <h2>Uses for Configuration Synchronization </h2> <p>Types of changes that Drupal 8's configuration synchronization tool are good for: </p> <ul><li>Block Configuration</li> <li>New Content Types</li> <li>Updating Content Types</li> <li>Adding New Fields to Entities</li> <li>Adding or Updating Views</li> <li>Etc.</li> </ul><h2>Conclusion</h2> <p>But I also have a love-hate relationship.  When an installation of a modules gets conflicted with the synchronization then there are headaches, but overall the configuration synchronization is really great.  Once they are worked through then all the headaches are eliminated, usually, just need to rework the install() and uninstall() hooks for the module.</p></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=69&amp;2=comment&amp;3=comment" token="IQxni0p78o9ZSEWkihFEC7fFRbIcXcDos4BQLuUqJuM"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/api"> <div class="field field--name-name field--type-string field--label-hidden field__item">API</div> </a></h2> <div class="text-content clearfix field field--name-description field--type-text-long field--label-hidden field__item"><p>API</p></div> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/composer"> <div class="field field--name-name field--type-string field--label-hidden field__item">Composer</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-commerce"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Commerce</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/update"> <div class="field field--name-name field--type-string field--label-hidden field__item">Update</div> </a></h2> </div> </li> </ul> </div> Mon, 29 Apr 2019 12:20:19 +0000 useradmin 69 at https://michalak.world Drupal Development https://michalak.world/video/drupal-development <span>Drupal Development</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:49</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>I am a Drupal developer specializing in Backend Drupal Development and Drupal Commerce Development.</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/tEojZwF0LBo?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-development" hreflang="en"><img src="/sites/default/files/video_thumbnails/tEojZwF0LBo.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/commerce-shipping" hreflang="en">Commerce Shipping</a></li> <li class="field--tags__item"><a href="/tag/composer" hreflang="en">Composer</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/drupal-performance" hreflang="en">Drupal Performance</a></li> <li class="field--tags__item"><a href="/tag/form-api" hreflang="en">Form API</a></li> <li class="field--tags__item"><a href="/tag/integration" hreflang="en">Integration</a></li> <li class="field--tags__item"><a href="/tag/payment-gateway" hreflang="en">Payment Gateway</a></li> <li class="field--tags__item"><a href="/tag/purchase-orders" hreflang="en">Purchase Orders</a></li> <li class="field--tags__item"><a href="/tag/rest-api" hreflang="en">REST API</a></li> <li class="field--tags__item"><a href="/tag/security" hreflang="en">Security</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> <li class="field--tags__item"><a href="/tag/warehouse-mangement" hreflang="en">Warehouse Mangement</a></li> </ul> </div> Sun, 21 Apr 2019 20:49:23 +0000 useradmin 67 at https://michalak.world Drupal 8: Applying Patches with Composer https://michalak.world/article/drupal-8-applying-patches-composer <span>Drupal 8: Applying Patches with Composer</span> <span><span>useradmin</span></span> <span>Thu, 03/14/2019 - 00:12</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>How to apply and manage patches with composer. </p> <p>First add the library 'cweagans/composer-patches' to your composer.json</p> <p>Then under installer-paths in your composer.json add "patches".  "Patches" is then organized by modules.  Here is an example: </p> <pre> "installer-paths": { }, "patches": { "drupal/commerce_shipping": { "Commerce Shipping - Deleted Profile Error": "https://www.drupal.org/files/issues/2018-06-15/commerce_shipping-deleted-profile-error-2969540-6.patch", "Patch Label": "https://path-to-patch' } }</pre> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=46&amp;2=comment&amp;3=comment" token="1CsLY6EmpnPq8TKI-MhZ_pU-u8ONRR3gPPUD5HDstV4"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/composer"> <div class="field field--name-name field--type-string field--label-hidden field__item">Composer</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> </ul> </div> Thu, 14 Mar 2019 05:12:58 +0000 useradmin 46 at https://michalak.world https://michalak.world/article/drupal-8-applying-patches-composer#comments