<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Drupal &amp;mdash; Journal from Kotnik</title>
    <link>https://nikola.kotur.org/tag:Drupal</link>
    <description>Nikola&#39;s thoughts and discoveries</description>
    <pubDate>Fri, 01 May 2026 17:25:00 +0000</pubDate>
    <item>
      <title>Quotes collection using Drupal</title>
      <link>https://nikola.kotur.org/quotes-collection-using-drupal</link>
      <description>&lt;![CDATA[I&#39;ve been copying and collecting interesting pieces of text here and there for a really long while. From the articles on the Internet, while reading a book, pretty much from everywhere. Sometimes not even noting a source, but marking the text because it left an impression on me.&#xA;&#xA;Never thinking about quotes management I kept it in single page of my personal wiki. No categorization of any sort, just a pile of text separated by delimiter lines.&#xA;&#xA;Of course, as the pile grew I started to think about organizing it. First I tried to find already existing solution I could run myself, but there&#39;s really nothing out there. Then I tried to build it myself! Why not? I already know how to program, and I know what I need, so let&#39;s do it. But, after spending some time building the portal using the Flask Python framework I gave up. It was just taking too much time, and I didn&#39;t find a lot of motivation to finish it.&#xA;&#xA;Finally, I thought of Drupal CMS. I know #Drupal, I was Drupal module developer for a really long while. I know it can do it, and it can do it easily. So I tried, and I had a solution in about 2 hours.&#xA;&#xA;So, here I will describe exactly what I did, in case someone wants to try as well.&#xA;&#xA;After installing Drupal with standard installation profile, I renamed its Article content type into Quote and used it as it is afterwards. I added additional taxonomy vocabulary named Author with the same settings as Tags. I want to be able to see all the quotes from a specific author.&#xA;&#xA;As for the theme, I installed a simple theme named Writer. It is intended to be used with blogs, but its simplicity is really useful for my quotes project. After all, I want clean design that focuses on the text. I tweaked it a bit to remove page titles, and to have buttons as links in blocks, but that&#39;s it and the rest is provided by the theme.&#xA;&#xA;As for community modules, I only use Autotitle. Quotes don&#39;t have titles, as I mentioned above, and I didn&#39;t want to create custom module to tweak new quote creation form to remove the title. So, Autotitle just names each and everyone simply as Quote. That&#39;s enough for me.&#xA;&#xA;Content is rendered via Views module, of course. I only added 2 custom views. The first one renders a list of tags with the number of quotes associated with it. And the second one is showing a random quote (it only works when authenticated to Drupal system, I didn&#39;t bother to make it work for anonymous visitors).&#xA;&#xA;And that&#39;s it. An hour or so of fun work with Drupal and my system is done. I can focus on categorizing the quotes now.&#xA;&#xA;Finally, this is how it looks like:&#xA;&#xA;page screenshot&#xA;&#xA;P.S I am not providing the link to my quotes Drupal since it&#39;s mine and I have no plan to make it usable for anyone else. Content is not behind login, but I don&#39;t want to advertise it either.&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>I&#39;ve been copying and collecting interesting pieces of text here and there for a really long while. From the articles on the Internet, while reading a book, pretty much from everywhere. Sometimes not even noting a source, but marking the text because it left an impression on me.</p>

<p>Never thinking about quotes management I kept it in single page of my personal wiki. No categorization of any sort, just a pile of text separated by delimiter lines.</p>

<p>Of course, as the pile grew I started to think about organizing it. First I tried to find already existing solution I could run myself, but there&#39;s really nothing out there. Then I tried to build it myself! Why not? I already know how to program, and I know what I need, so let&#39;s do it. But, after spending some time building the portal using the <a href="https://palletsprojects.com/p/flask/">Flask Python framework</a> I gave up. It was just taking too much time, and I didn&#39;t find a lot of motivation to finish it.</p>

<p>Finally, I thought of <a href="https://www.drupal.org">Drupal CMS</a>. I know <a href="https://nikola.kotur.org/tag:Drupal" class="hashtag"><span>#</span><span class="p-category">Drupal</span></a>, I was Drupal module developer for a really long while. I know it can do it, and it can do it easily. So I tried, and I had a solution in about 2 hours.</p>

<p>So, here I will describe exactly what I did, in case someone wants to try as well.</p>

<p>After installing Drupal with standard installation profile, I renamed its <code>Article</code> content type into <code>Quote</code> and used it as it is afterwards. I added additional taxonomy vocabulary named <code>Author</code> with the same settings as <code>Tags</code>. I want to be able to see all the quotes from a specific author.</p>

<p>As for the theme, I installed a simple theme named <a href="https://www.drupal.org/project/writer">Writer</a>. It is intended to be used with blogs, but its simplicity is really useful for my quotes project. After all, I want clean design that focuses on the text. I tweaked it a bit to remove page titles, and to have buttons as links in blocks, but that&#39;s it and the rest is provided by the theme.</p>

<p>As for community modules, I only use <a href="https://www.drupal.org/project/autotitle">Autotitle</a>. Quotes don&#39;t have titles, as I mentioned above, and I didn&#39;t want to create custom module to tweak new quote creation form to remove the title. So, Autotitle just names each and everyone simply as <em>Quote</em>. That&#39;s enough for me.</p>

<p>Content is rendered via Views module, of course. I only added 2 custom views. The first one renders a list of tags with the number of quotes associated with it. And the second one is showing a random quote (it only works when authenticated to Drupal system, I didn&#39;t bother to make it work for anonymous visitors).</p>

<p>And that&#39;s it. An hour or so of fun work with Drupal and my system is done. I can focus on categorizing the quotes now.</p>

<p>Finally, this is how it looks like:</p>

<p><img src="https://bin.kotur.org/RPUo4C9KmXERwK.png" alt="page screenshot"></p>

<p>P.S I am not providing the link to my quotes Drupal since it&#39;s mine and I have no plan to make it usable for anyone else. Content is not behind login, but I don&#39;t want to advertise it either.</p>
]]></content:encoded>
      <guid>https://nikola.kotur.org/quotes-collection-using-drupal</guid>
      <pubDate>Sat, 17 Sep 2022 15:20:42 +0000</pubDate>
    </item>
  </channel>
</rss>