<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shivani on Medium]]></title>
        <description><![CDATA[Stories by Shivani on Medium]]></description>
        <link>https://medium.com/@shivani30v?source=rss-713f8fdbc1ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*THTl5HxiBuojGBbf</url>
            <title>Stories by Shivani on Medium</title>
            <link>https://medium.com/@shivani30v?source=rss-713f8fdbc1ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:08:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivani30v/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Custom Community Notice Board Module with Drupal 10]]></title>
            <link>https://medium.com/@shivani30v/custom-community-notice-board-module-with-drupal-10-aab43dee77dc?source=rss-713f8fdbc1ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/aab43dee77dc</guid>
            <category><![CDATA[modules]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[boardify]]></category>
            <dc:creator><![CDATA[Shivani]]></dc:creator>
            <pubDate>Sat, 27 Jul 2024 11:58:02 GMT</pubDate>
            <atom:updated>2024-07-27T12:24:44.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating a custom module in Drupal can seem daunting, but with the right guidance, you can build powerful features that enhance your site. In this article, we’ll walk through setting up a Drupal 10 site and developing a custom “<strong>Boardify</strong>“ module to manage and display community notices.</p><h3>Setting Up Your Drupal 10 Environment</h3><p>First, let’s set up a new Drupal 10 environment using DDEV, a Docker-based local development environment.</p><h4>Step 1: Create a New Directory for Your Drupal Site</h4><pre>mkdir my-drupal-site &amp;&amp; cd my-drupal-site</pre><h4>Step 2: Configure DDEV</h4><pre>ddev config - project-type=drupal - php-version=8.3 - docroot=web</pre><h4>Step 3: Start DDEV</h4><pre>ddev start</pre><h4>Step 4: Create a Drupal 10 Project</h4><pre>ddev composer create drupal/recommended-project:¹⁰</pre><h4>Step 5: Update DDEV Configuration</h4><pre>ddev config - update</pre><h4>Step 6: Install Drush</h4><pre>ddev composer require drush/drush</pre><h4>Step 7: Install Drupal</h4><pre>ddev drush site:install - account-name=admin - account-pass=admin -y</pre><h4>Step 8: Access Your Drupal Site</h4><p>Use the one-time login link to access your admin account.</p><pre>ddev drush uli</pre><p>Open the link provided by the command in your browser:</p><pre>ddev launch</pre><h3>Building the Boardify Module</h3><p>Now that we have our Drupal site set up, let’s create the Boardify module to manage and display community notices.</p><p>The full code for the Boardify module is available on <a href="https://github.com/shivani30v/boardify">GitHub</a>. Follow these steps to add the module to your Drupal site:</p><h4>Step 1: Download the Module</h4><p>Clone or download the Boardify module and place it in the `modules/custom` directory of your Drupal installation.</p><pre>cd web/modules/custom<br>git clone https://github.com/shivani30v/boardify.git</pre><h4>Step 2: Enable the Module</h4><p>Via Drupal Admin Interface</p><p>1. Go to <strong>Extend</strong>.<br>2. Find “Boardify” in the list.<br>3. Check the box next to it.<br>4. Click <strong>Install</strong>.</p><p>Via Drush</p><pre>ddev drush en boardify -y</pre><h4>Step 3: Clear Caches</h4><p>Via Drupal Admin Interface</p><p>1. Go to <strong>Configuration</strong> &gt; <strong>Performance</strong>.<br>2. Click <strong>Clear all caches</strong>.</p><p>Via Drush</p><pre>ddev drush cr</pre><h4>Step 4: Create the Notice Content Type</h4><p>1. Go to <strong>Structure</strong> &gt; <strong>Content types </strong>&gt; <strong>Add content type</strong>.<br>2. Name it “<strong>Notice</strong>”.<br>3. Add fields such as Title, Body, and any other relevant fields.<br>4. Save the content type.</p><h4>Step 5: Create and View Notices</h4><p>Create a notice by going to <strong>Content</strong> &gt; <strong>Add content</strong>&gt; <strong>Notice.</strong> Fill in the required fields and save the notice. To view the community notices, navigate to `/community-notices` on your site.</p><p>With these steps, you have successfully set up a Drupal 10 site and created a custom module named Boardify to manage and display community notices.</p><p>This module can be further customized and expanded based on your specific requirements. The full code is available on <a href="https://github.com/shivani30v/boardify">GitHub</a>. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aab43dee77dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>