It is impressive how much time is saved and how flexible and easy to maintain SASS files are, compared to traditional CSS management. With SASS, the maintainability and reusability of CSS styles go to an entirely new level. Remember that while overriding template files of a base theme, we are risking smooth support for future updates of it, making our update process harder when newer versions of the base theme come out. Template files should only be considered when: twig on D8) should always be the last option of your theming strategy. Template files are the last optionīased on the list above, editing the template files (. I would love to hear about your experience on comments below. Just feel free to evaluate it against solutions you have built before. In most cases, this has worked for me over the years. The lower you go down the list, the less reusable and flexible your solution will be. When creating a new page, I suggest preferring the following methods, in order: if you can't build your page with one method, only then fall back to the item below. Any Drupal site should be, at least, 90% Views on the Front-end side. You feel it is reusable, portable and very flexible. When you use Views, you feel you are doing it right. But there is that feeling you get when you make it work using a View: There are many ways to build pages in Drupal, either using Views, Panels, Blocks, "Full HTML" on the node body and so on. Views should always be your first approach Be sure to read the Creating a Drupal sub-theme docs in to properly use these on your projects. If you edit theme files directly, the changes may be lost when you run updates in the future. Check for the well-maintained ones, and make sure their stable releases are covered by the Security Advisory Policy - the green shield close to the download.Īs I said before, feel free to explore all the available options at and ask yourself each one of those questions before making a final decision.and never modify the base themeīase themes are meant to be used as base themes, not as starter themes. How safe is it? Themes and modules are as safe as any Open Source software.The issue queue is also a nice source for docs which help one learn how to work with the relevant theme. How do I start? What if I have questions? Most themes include their own detailed docs.Is there someone regularly behind it? Just feel free to check the issue queue for the latest issues and commits.The "Installation ratio" indicates that it is growing up and gaining popularity across the community. Is its use increasing? A theme that more and more people use all the time is a good indicator of the project health.This means more people testing it, more live sites and more interest in pushing it forward. How many people use it? Some themes like Bootstrap have more than 130,000 Drupal 7 & 8 reported installs.Try to see what other people use, how they do it and what experiences they had with it.Īpart from the quality and popularity of a theme, the following questions will always help you make your choice: My first and most important tip: choose a base theme wisely. Choose a good base themeĪs I mentioned in my previous post, Planning Your Drupal 8 Theme: Choosing a Base Theme, there are lots of factors that will influence your final decision, but you'll eventually start feeling more comfortable with one, and that will be the one you'll be using for most projects. In my particular case, after nine years of building Drupal themes, reading how other themers do it, and learning from my mistakes, I came up with a few tips I would like to share with everyone. There are many ways of building sites and themes - be it Drupal, Wordpress, Magento or any Content Management System.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |