I'm very new to drupal, so I apologize if this is a dumb question.
I'm trying to set up a drupal theme to use for my webcomic, however I'm struggling with the logic for the page navigation. How do I point to the next/previous and first/last items? I found some resources using php, but I don't know where it would go in the code and I'm not sure if I should be setting up the page navigation as part of the custom theme.
The goal is for each page to have buttons at the bottom that point to the next comic page, previous comic page, first page, and latest page (which is also the home page). I saw a post from 6 years ago with a similar question, but the top comment only said to 'theme it in HTML/CSS/JS' first, but I'm stuck on how to set up the page logic, which would be interacting with the cms? I set up my project with composer and am currently using ddev if that is relevant.
We at Rest of World love a good chart. So much so that this year we launched Charts, a page dedicated to preserving all the original charts we put into...
I'm new to Drupal development and recently migrated a Drupal 7 theme to Drupal 10. In Drupal 7, the file fields displays file-type icons (e.g., icons/application-pdf.png) next to file links, but after migrating to Drupal 10, those icons are no longer displayed, and I’m unsure how file-type icons are handled in the newer versions of Drupal. While searching the codebase, I found the following icon files:
$ find . -type f -iname "application-pdf.png" ./core/themes/claro/images/classy/icons/application-pdf.png ./core/themes/starterkit_theme/images/icons/application-pdf.png ./core/profiles/demo_umami/themes/umami/images/classy/icons/application-pdf.png
I can confirm that file metadata (such as file size) is still available and rendered correctly via my custom Twig template my_custom_theme/templates/field/file-link.html.twig (this file is a copy of core/modules/file/templates/file-link.html.twig without any change. I can remove it when suggested) as shown below:
<!-- BEGIN OUTPUT from 'core/modules/system/templates/field.html.twig' --> <div> <div>Paper</div> <div> <!-- THEME DEBUG --> <!-- THEME HOOK: 'file_link' --> <!-- 💡 BEGIN CUSTOM TEMPLATE OUTPUT from 'themes/custom/my_custom_theme/templates/field/file-link.html.twig' --> <span class="file file--mime-application-pdf file--application-pdf"><a href="/sites/default/files/manual/computer.pdf" type="application/pdf">computer.pdf</a></span> <span>(2.26 MB)</span> <!-- END CUSTOM TEMPLATE OUTPUT from 'themes/custom/my_custom_theme/templates/field/file-link.html.twig' --> </div> </div> <!-- END OUTPUT from 'core/modules/system/templates/field.html.twig' -->
However, there is no CSS style named file in Chrome developer tools. See the screenshot below:
What I’d like to achieve is to display a file-type icon (say icons/application-pdf.png or svg whatever Drupal 10 default is) before the file link, similar to Drupal 7.
A workaround would be to copy the icons from core/themes/claro/images/classy/ into my custom theme and adjust the CSS in my_custom_theme accordingly, but this doesn’t feel like a clean or recommended solution.
What is the proper way to display standard file-type icons next to file links in Drupal 10?
I have gutenberg-based websites running with domain module to host multiple URLs. I had a bit of performance issues, and it was difficult to control 10+ domains with current setting, so I have waited for months to update the entire system.
Now that Drupal Canvas is rolled out its official version, I wonder if it is worth the try, or should I wait more.
Together with 11.3 upgrade (currently rolling 11.2.3), I want to put all these website issues behind, and move on. I am not sure how the Drupal Canvas's sub-module ecosystem is forming and how much dependency it still has to legacy ones like paragraph.
2025 was yet another transformative year in the artificial intelligence boom. ChatGPT was the fifth most-visited website in the world, tech companies poured hundreds of millions into refining their models,...
Hi folks, I've contributed a Drupal 11 distribution (install profile with distribution key in *.info.yml). Everything works as expected with that.
Nevertheless, now to install a new Drupal instance with my install profile, I need to create a Composer Drupal project, pull my installation profile and then proceed with the installation, which succeeds my needs.
Instead, I'd like to go for "composer create-project drupal/vikttorius-distribution" which does all the above in one step.
What I'm missing is the procedure for Drupal.org to publish Composer projects under drupal namespace. Something is slipping through my slipping my mind.
IA is telling me to open a support ticket in Infrastructure issue queue, which doesnt sound right to me.
Also I read, but unsure about that, the Drupal Recipe Initiative is related to me topic.
If a big story of the past few years has been the electric vehicle revolution, 2025 was something of a bifurcation. In China, EVs are now fully entrenched in power:...
LinkedIn job scams have become a borderless epidemic, preying on the hopes of desperate job seekers and costing victims across the globe anywhere from a few hundred dollars to $25,000....