<?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 Serhii Klietsov on Medium]]></title>
        <description><![CDATA[Stories by Serhii Klietsov on Medium]]></description>
        <link>https://medium.com/@cooldrupal_5054?source=rss-dc7ccadbb35e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1Fzrh7695kJtzKzUqjWAsA.jpeg</url>
            <title>Stories by Serhii Klietsov on Medium</title>
            <link>https://medium.com/@cooldrupal_5054?source=rss-dc7ccadbb35e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:34:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cooldrupal_5054/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[Next.js code generator for Drupal]]></title>
            <link>https://medium.com/@cooldrupal_5054/next-js-code-generator-for-drupal-43e9f02b1772?source=rss-dc7ccadbb35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/43e9f02b1772</guid>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[drush]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[decoupling]]></category>
            <category><![CDATA[generator]]></category>
            <dc:creator><![CDATA[Serhii Klietsov]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 09:59:10 GMT</pubDate>
            <atom:updated>2025-10-21T09:59:10.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJYBuX4FYf_lhkGZHVQ7dw.png" /></figure><p>We know how to <a href="https://medium.com/@cooldrupal_5054/drupal-cms-using-next-js-8315a43b378d">create a Next.js version of the Drupal CMS blog</a>.<br>This site consists of a main page, entity collection pages, entity pages, and special pages.</p><p>A site freshly generated using <a href="https://github.com/cooldrupal/drext">Drext</a> or <a href="https://github.com/cooldrupal/next-drupal-decoupled-kit-blog">https://github.com/cooldrupal/next-drupal-decoupled-kit-blog</a> has a main page and a universal entity page.</p><p>How to make building a Next.js site for Drupal easier?</p><h3>Generating a View Page</h3><p>One of the important and difficult tasks in the Drupal CMS block was creating a View for the blog list page /blog. Generally, when using Views in Drupal, we often don’t realize how complex and powerful a mechanism it is. To recreate it on the frontend side, we need to “break it down to its bones.” What does an individual Views display consist of?</p><ol><li>Path (/blog)</li><li>Title (Blog)</li><li>Pager (15 items, Mini)</li><li>Exposed filters:</li></ol><ul><li>Filter identifier (field_categories_target_id )</li><li>Label (Categories)</li><li>Vocabulary (category)</li></ul><p>Since Next.js uses the <a href="https://nextjs.org/docs/app">App router</a> , we need to create a folder in the app directory of the Next.js application according to the path (blog), and inside it, create a page.tsx file where you write the page code. It is necessary to handle the Pager according to its type (Mini/Full) and the number of items.</p><p>The most difficult part is the exposed filters (if they exist). For now, we are considering the most common case with filters related to taxonomy.<br>As we can see, three parameters need to be implemented. Moreover, just knowing the Vocabulary ID is not enough; we also need to get the taxonomy term values to form the list. Finally, we need to create a form for the filters and support URL parameters for interacting with the form select (to set the current value).</p><p>Uh-huh, so that’s where the catch was hiding. This promised to be an easy walk but turned into jungles and mountain passes. Coming to the rescue, like Superman, is the Drupal module <a href="https://www.drupal.org/project/nextgen">Next.js generator</a> .</p><p>This is a Drush generator that generates a Next.js page based on a selected View Page. In our example, the View ID is log and the Display is page_1.<br>Based on this, the export function for the Next.js page will be generated as BlogPage1. The Drush command collects data about the View Page, which we wrote about above, and generates a fully functional page.tsx page and the necessary directories. Of course, you need to specify the Next.js directory within the Drupal site structure (by default, it&#39;s next).</p><p>Install and enable the module:<br>composer require drupal/nextgen<br>drush en nextgen</p><p>To generate, run the command: ddev drush gen next:view-page</p><p>Then, select the View and Display.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*KL3zdu3ZKnTFrqXgp04mLA.png" /></figure><p>You also need to confirm the received values and the generated class for the Next.js page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*t7U-uSrhHoj61FMTPGSKYw.png" /></figure><p>After that, the page.tsx code will be generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*CDDjh3SGUu5ATsyU9DjpYA.png" /></figure><p>Of course, the region names in the active site might not match in a line like:<br>const blocks = await getBlocks(slug, [&#39;header&#39;, &#39;footer_top&#39;])</p><p>Well, in this case, just a few more edits and the page will work in all its glory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NHujqyMXDj7pNjwgY6_QNw.png" /></figure><h3>Generating a Custom Page</h3><p>Besides View pages, there can be custom pages that return JSON.</p><p>To generate, run the command: drush gen next-jsonapi-page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*G6vSTC6w0kJkpKB442dmJw.png" /></figure><p>Here we set the page path and title, and this will be transferred to Next.js.</p><h3>Generating Entity Page Components</h3><p>An entity in Drupal can have its own view mode, for example, Teaser. Each view mode has its own set of fields.The generator creates a component, for example, node/NodeArticleTeaser, which outputs fields formatted according to their field type.</p><p>The following field types are currently supported:<br>string (for example, for title)<br>basic_string (for example, for the description field)<br>text_default (for example, for the body field)<br>image (for example, for the picture field)</p><p>These components will most likely be extended and supplemented, but it’s important that the file is created in the correct directory.<br>Also, these components need to be manually registered in components/drupal/Entity, where you specify the include parameter for JSON requests.</p><p>To generate, run the command: drush gen next-entity-component</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*9ojb0ILG6UnhesseJp5DHw.png" /></figure><h3>Conclusion</h3><p>The <a href="https://www.drupal.org/project/nextgen">Next.js Generator</a> is most convenient to use for sites built on <a href="https://github.com/cooldrupal/drext">Drext</a> (<a href="https://github.com/cooldrupal/drext">https://github.com/cooldrupal/drext</a>) or <a href="https://github.com/cooldrupal/next-drupal-decoupled-kit-blog">https://github.com/cooldrupal/next-drupal-decoupled-kit-blog</a>, but it can be applied to any Next.js site.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43e9f02b1772" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drupal CMS using Next.js]]></title>
            <link>https://medium.com/@cooldrupal_5054/drupal-cms-using-next-js-8315a43b378d?source=rss-dc7ccadbb35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8315a43b378d</guid>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[drupal-cms]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[decoupling]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Serhii Klietsov]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 16:25:33 GMT</pubDate>
            <atom:updated>2025-08-05T16:25:33.148Z</atom:updated>
            <content:encoded><![CDATA[<p>So, we have an ambitious task ahead of us: to build a blog on Next.js and Drupal CMS. We will do this locally using <a href="https://ddev.com/">DDEV</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*1-KZdcp_iNmr-TzFmWe01Q.png" /><figcaption>Drupal CMS using Next.js</figcaption></figure><ol><li><strong>Install Drupal CMS</strong></li></ol><p>Full official instructions:<br> <a href="https://new.drupal.org/docs/drupal-cms/get-started/install-drupal-cms/install-drupal-cms-locally-with-ddev">https://new.drupal.org/docs/drupal-cms/get-started/install-drupal-cms/install-drupal-cms-locally-with-ddev</a></p><p>Go to the projects (applications) directory. For example: <em>cd ~/projects</em><br>Next, think about what to name your project. This is an important step, as the local site will automatically have this name. I suggest naming it “my_blog,” but of course, I can’t stop you from changing this name.<br> <br>This code will prepare the local environment for installing Drupal projects and will install Drupal CMS.</p><pre>mkdir my_blog &amp;&amp; cd my_blog<br>ddev config --project-type=drupal11 --docroot=web<br>ddev start<br>ddev composer create-project drupal/cms<br>ddev launch</pre><p>The code will run on the screen and at the end (I really hope so) the default browser will miraculously open and the actual installation of Drupal CMS will begin. You can see how everything will happen step by step at <a href="https://new.drupal.org/docs/drupal-cms/get-started/install-drupal-cms/run-the-drupal-cms-installer">https://new.drupal.org/docs/drupal-cms/get-started/install-drupal-cms/run-the-drupal-cms-installer</a>.</p><p>We need to select the type of site. Here, I insist on choosing “Blog.”<br>Next, enter the site name, email, and password.</p><p>The site <a href="https://my-blog.ddev.site/">https://my-blog.ddev.site</a> has been created.</p><p><strong>2. Creating a blog in Drupal CMS</strong></p><p>The Drupal CMS blog is great, but let’s make some small changes:</p><ul><li>Create a taxonomy dictionary called Categories (<a href="https://my-blog.ddev.site/admin/structure/taxonomy/add">https://my-blog.ddev.site/admin/structure/taxonomy/add</a>) and add several categories</li><li>Create a single field field_categories in the “Blog post” content type (<a href="https://my-blog.ddev.site/admin/structure/types/manage/blog/fields">https://my-blog.ddev.site/admin/structure/types/manage/blog/fields</a>).</li><li>Let’s disable the use of Layout Builder for the “Blog post” content type <a href="https://my-blog.ddev.site/admin/structure/types/manage/blog/display/default">https://my-blog.ddev.site/admin/structure/types/manage/blog/display/default</a> and display the Category there.</li><li>Delete the page <a href="https://my-blog.ddev.site/blog">https://my-blog.ddev.site/blog</a> (make sure that the mention of /blog is also missing in Aliases <a href="https://my-blog.ddev.site/admin/config/search/path">https://my-blog.ddev.site/admin/config/search/path</a>). Instead of this page, create a View page at <a href="https://my-blog.ddev.site/admin/structure/views/view/blog">https://my-blog.ddev.site/admin/structure/views/view/blog</a>. Clone the “All blog posts” block using the “Duplicate as Page” link, specify the path “/blog” and place it in the main menu.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*g3mf1iLMhwxnGjBDH24imw.png" /></figure><ul><li>Our blog may have many tags (several tags for each page) and a few categories (one category per page). Therefore, I suggest creating an Exposed Filter for categories, not tags, for the /blog page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*omqO9oubOkCD43n5XWk7mw.png" /></figure><ul><li>For the Related blog posts block <a href="https://my-blog.ddev.site/admin/structure/views/view/blog/edit/related">https://my-blog.ddev.site/admin/structure/views/view/blog/edit/related</a>, you will need to change the Contextual filter from Tags to Categories. Do the same as you did for tags, but change the filter field and taxonomy in the filter settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*2I6KlnBOH8-JisNL4QU_jw.png" /></figure><ul><li>For the main page, I suggest removing the Layout Builder settings on the page <a href="https://my-blog.ddev.site/node/2/layout">https://my-blog.ddev.site/node/2/layout</a> — “Revert to defaults”</li><li>Now you need to change the blocks on the page <a href="https://my-blog.ddev.site/admin/structure/block">https://my-blog.ddev.site/admin/structure/block</a></li><li>Add the “Blog: Latest blog posts” block to the Content Below region and add the “&lt;front&gt;” filter</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3d50bDNm_v3rIda630mrTQ.png" /></figure><ul><li>Add the “Blog: Related blog posts” block to the Sidebar region and add the Content type = “Blog post” filter</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0bpzzPeBAeBFBhSTTRkG5g.png" /></figure><ul><li>Publish <a href="https://my-blog.ddev.site/privacy-policy">https://my-blog.ddev.site/privacy-policy</a> node if we need to see the Footer</li><li>In the Next module settings <a href="https://my-blog.ddev.site/admin/config/services/next/entity-types">https://my-blog.ddev.site/admin/config/services/next/entity-types</a>, I suggest adding the Blog post type, selecting the Page plugin type for caching and specifying revalidation for the blog list /blog</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9SrDSzaRgKxw3O8mU6Nag.png" /></figure><p>The blocks were created so that the Next.js project would receive a list of blocks for the current page using the block visibility settings. For example, for blog pages, blocks from the “sidebar” region will be requested. Data from Views, breadcrumbs, etc. will also be received. This way, Drupal takes on part of the work of outputting data.<br> <br>We have a ready-made blog on Drupal with the structure we need. Now the task is to configure Next.js.</p><p><strong>3. Creating a Next.js blog</strong><br> <br>Install and connect additional modules:</p><pre>ddev composer require drupal/next drupal/decoupled_kit drupal/jsonapi_menu_items drupal/jsonapi_views<br>ddev drush en next next_jsonapi decoupled_kit_block jsonapi_menu_items jsonapi_views metatag -y</pre><p>Install the Next.js project and specify “next” as the project name.</p><pre>npx create-next-app -e https://github.com/cooldrupal/next-drupal-decoupled-kit-blog</pre><p>Configure the Next.js project</p><pre>cd next<br>cp .env.example .env.local</pre><p>Edit the .env.local file:</p><pre>NEXT_PUBLIC_DRUPAL_BASE_URL=https://my-blog.ddev.site<br>NEXT_IMAGE_DOMAIN=my-blog.ddev.site</pre><p>Finally, launch our blog (we are in the next directory, right?)</p><pre>ddev npm run dev</pre><p>Since we launched using DDEV, we need to follow the Network link:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*cNvomlQ-QSdc30I8SCfpxw.png" /></figure><p>Congratulations, we now have a blog that is very similar to a Drupal CMS blog, but with a frontend written in Next.js.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8315a43b378d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy Drupal decoupling using Next.js]]></title>
            <link>https://medium.com/@cooldrupal_5054/easy-drupal-decoupling-using-next-js-80ea603547d6?source=rss-dc7ccadbb35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/80ea603547d6</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[decoupling]]></category>
            <category><![CDATA[decoupled]]></category>
            <dc:creator><![CDATA[Serhii Klietsov]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 10:52:07 GMT</pubDate>
            <atom:updated>2025-07-23T10:52:07.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Easy Drupal decoupling and Next.js" src="https://cdn-images-1.medium.com/max/1024/1*Q4zR2oTJaXMCstiTKitwPQ.png" /></figure><p>Why is it considered that Decoupled Drupal divided into 2 parts is as many times harder to implement. Instead of one site we make two. Yes, we’re making both server and client and we need two hosting to run. We need also two repositories, we need two teams in general. But there is a plus here, backender and frontender teams can work asynchronously and independently and not interfere with each other. Either way, we need to do site theming. And here it is just so remote.</p><p>If doing a migration of a complex theme from Drupal 7 or other platforms, there is no certainty that making the same theme on modern Drupal is easier than developing a solution in JS, such as Next.Js . If we combine the power of modern JS frameworks and the power of Drupal, the solution may not be as terribly hard as it may seem at first glance. Let’s try it and see.</p><p>When developing a decoupled solution on Drupal, it’s important to define how tightly the frontend will be coupled with the backend. Will the backend serve only a specific frontend, rather than being a flexible, universal repository for clients? I advocate for a backend-heavy approach — the backend should be “smart” and the frontend “dumb.” The backend should control, and the frontend should consume. The backend should be tailored to the frontend, much like some movie scripts are written specifically for certain actors.</p><p>If we decouple Drupal, what are we left with:</p><ul><li>Entities and their relationships (usually nodes and taxonomy)</li><li>Blocks</li><li>Menus</li><li>Views</li><li>Breadcrumb</li><li>Metatags</li><li>…anything else?</li></ul><p>Everything that can be configured should be done on the backend. The weight of menu items or blocks, sorting of views, breadcrumb generation — the frontend doesn’t need to know about all this. Its job is rendering — transforming a given array or tree of elements into output for the user.</p><p>I’ve enhanced the <a href="https://github.com/chapter-three/next-drupal-basic-starter">Drupal Next.js Starter</a> using the <a href="https://medium.com/@cooldrupal_5054/drupal-decoupled-kit-efdf68d35487">Decoupled Kit</a> module.<br>Added:</p><ul><li>Blocks (Fetching the list of blocks for the current page and a given region)</li><li>Breadcrumb (Fetching breadcrumb by selecting the special system block “Breadcrumb”)</li><li>Views (Support for pagers (Full/Mini and Load More))</li><li>Redirects (Support <a href="https://www.drupal.org/project/redirect">Redirect</a> module)</li></ul><p>Also, metatags can be fetched from the JSON of the entity once we enable the <a href="https://www.drupal.org/project/metatag">Metatag</a> module.</p><p>Additionally, I’ve developed the <a href="https://www.drupal.org/project/nextgen">Next Generator</a> module , which allows we to create a page in Next.js based on a View Page (App routing for Next.js).</p><p>This includes importing the display data from the View:</p><ul><li>Title</li><li>Path</li><li>Pager settings</li></ul><p>So, to add a new section to the site (for example, “Articles”), we just need to create a View, configure the path, filtering, sorting, pager — and a folder (or folders) and a page.tsx file will be generated, and the router will start working in Next.js.</p><p>Development is ongoing, but already it’s possible to quickly build a simple site using Drupal + Next.js. Or to migrate a Drupal 7 site without needing to migrate the theme, keeping the existing Views and blocks. Or, for educational purposes, parse an existing site into JSON, use the Migrate API to migrate, and get a site running on Next.js — without writing a single line of CSS by using Tailwind.</p><p>I created a demo site <a href="https://drupaltop100.vercel.app/">https://drupaltop100.vercel.app</a> and the source code is available at <a href="https://github.com/cooldrupal/drupal-top100-next">https://github.com/cooldrupal/drupal-top100-next</a>. Without overthinking, I took organization data from drupal.org — I hope they forgive me for that.</p><p>Steps I took:</p><ul><li>Parsed the data into JSON using a Python script</li><li>Created a Drupal site and added taxonomies and content types</li><li>Migrated the JSON using the Migrate API and the modules migrate_tools, migrate_plus</li><li>Created the Next.js site skeleton with:<br><em>npx create-next-app -e </em><a href="https://github.com/cooldrupal/next-drupal-decoupled-kit-blog"><em>https://github.com/cooldrupal/next-drupal-decoupled-kit-blog</em></a></li><li>Created the /organizations, /career pages using the <a href="https://www.drupal.org/project/nextgen">Next Generator</a> module</li><li>Retrieved blocks and breadcrumbs based on the Drupal site’s theme</li><li>Configured node page rendering</li></ul><p>I’ve listed quite a few points, but in reality, I spent the most time creating the site’s logo. The site is simple, but I think it shows the potential of this system. The goal is to minimize and simplify the Node.js script pages in the /app directory by building a powerful library in /lib and managing settings in /params. The /components directory should be made portable and reusable. Overall, it’s fast and easy to build Next.js apps powered by Drupal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80ea603547d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drupal Decoupled Kit]]></title>
            <link>https://medium.com/@cooldrupal_5054/drupal-decoupled-kit-efdf68d35487?source=rss-dc7ccadbb35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/efdf68d35487</guid>
            <category><![CDATA[decoupled]]></category>
            <category><![CDATA[drupal]]></category>
            <dc:creator><![CDATA[Serhii Klietsov]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 11:03:29 GMT</pubDate>
            <atom:updated>2025-07-08T11:03:29.776Z</atom:updated>
            <content:encoded><![CDATA[<p>Back in 2019, we built an organizational website using Drupal 8. We were only familiar with the classic version of Drupal sites, where rendering is handled by the Drupal Render API and Theme API (the so-called “monolith”). But we decided to go fully headless, choosing Vue.js for the frontend. To connect the backend and frontend, we used JSON:API and custom endpoints.</p><p>I was developing the backend, and at some point, I felt like I was in a desert. We tend to take the power of Drupal’s rendering for granted — its layered configuration system and output overrides. There’s a theme that uses Drupal variables, a templating system, the ability to attach JS scripts, and so on. But this was our own decision to decapitate the project.</p><p>After a brief period of mourning, we moved on to backend development. We had a block system on the live site and decided to use it. For each page, using visibility settings, we got a certain set of blocks. For example, on a blog page, we might see a “Latest blog posts” block or an “Other articles with the current tag” block. We decided to use only content blocks and blocks created with Views. This approach allowed us to offload the task of determining which blocks to show and querying the database from the frontend developer.</p><p>So, we had article output in the main column of the page and blocks in the sidebar. But now we also needed menus in the header and footer — we could get those from the backend. We needed to shield the frontend dev from generating breadcrumbs; better to get ready-made ones from Drupal. Let’s not forget about meta tags, which can be quite complex. The frontend should not be handling them — it should just retrieve them for the current page. A sitemap is also nice to have. And of course, a crucial part is the router, which allows fetching Drupal entities based on the current page and delivering them as JSON using the capabilities of Drupal JSON:API.</p><p>This way, we developed a set of utilities, each depending on specific modules (for example, the metatag module needs to be installed). So we split each aspect into a submodule, and the main module was called <a href="https://www.drupal.org/project/decoupled_kit">Decoupled Kit</a>.</p><p>To demonstrate the included utilities and assist with their use, we created a Dashboard. Some modules also have their own specific settings, all accessible from a single page.</p><figure><img alt="Decoupled Kit Dashboard" src="https://cdn-images-1.medium.com/max/972/1*Z2eXUfqRQ5ryqBZeMAfOxw.png" /><figcaption>Decoupled Kit Dashboard</figcaption></figure><p>Thus, we planted delicate saplings in our desert that helped us overcome the difficulties and build the project. The site was simple, but the client was thrilled, because it stood out from typical Drupal sites at the time — it loaded quickly and updated pages without reloads. The headless site looked modern and elegant. And yes, we eventually gave it a beautiful “head” (if you can call it that).</p><p>Over time, some fantastic modules appeared: <a href="https://www.drupal.org/project/jsonapi_views">JSON:API Views</a>, <a href="https://www.drupal.org/project/jsonapi_menu_items">JSON:API Menu Items</a>. A special mention goes to the backend-focused module <a href="https://www.drupal.org/project/jsonapi_resources">JSON:API Resources</a>, which significantly expanded the possibilities of headless site development. And of course, we can’t forget the essential routing module: <a href="https://www.drupal.org/project/decoupled_router">Decoupled Router</a>.</p><p>I hope the Decoupled Kit module helped popularize headless Drupal development. It can still be used today. Here’s an example of using it with Next.js (based on the <a href="https://github.com/chapter-three/next-drupal-basic-starter">Next.js Drupal Starter kit</a>): <a href="https://github.com/cooldrupal/next-drupal-decoupled-kit-blog">https://github.com/cooldrupal/next-drupal-decoupled-kit-blog</a>. This setup uses Block layout requests for specific regions, for example to build the homepage or the sidebar of an article page. Each block is associated with its own component. This is declarative development — we define a block-component mapping and a list of regions. Blocks and regions are configured on the backend (blocks are sorted).</p><p>From the system Breadcrumb block, you can get breadcrumbs calculated by Drupal for the current page. Drupal also sends us menus to be used in the Header/Footer.</p><p>What more do you need to quickly build a simple headless site?</p><h4><a href="https://www.linkedin.com/in/serhii-klietsov-a125909a/">Feel free to contact me for creating Drupal Decoupled site</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efdf68d35487" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>