Drupal

How To Upgrade Drupal 6 to Drupal 7: Step by Step

| 3 views

Before proceeding with the upgrade, it's important to make a backup of your Drupal 6 site. This includes both the database and the files. This will ensure that you have a restore point in case anything goes wrong during the upgrade process. Once you have made a backup, it's time to put your Drupal 6 site into maintenance mode. This will ensure that no users can access the site while you are upgrading. To do this, go to the site maintenance page (admin/settings/site-maintenance), select "Off-…


Display node count per taxonomy

| 1 views

<p>Working on project, I needed to display how many nodes are in particular taxonomy.</p><p><img src="http://reinisfischer.com/sites/default/files/taxonomy-count.png&quot; alt="" width="727" height="212"></p><p>&nbsp;</p><p>To achieve such behavior - I created a term based view, turned on aggregation, under Relationships added Taxonomy term Content using, added taxonomy term name, nid and image fields,…


Building a Drupal site from scratch - part 13 - working with node display

| 1 views

<p>By default, when adding new fields to content type, and then entering values in them, Drupal will display all of them on node:</p><p><img src="http://reinisfischer.com/sites/default/files/allfieldsdisplayed.png&quot; alt="" width="880" height="309"></p><p>But what if we don't want some or all of these fields to be displayed on our node?</p><p>Simple, we can change order, or hide them by using Manage…


Building a Drupal site from scratch - part 12 - Working with image styles

| 0 views

By default Drupal offers 3 image styles enabled: thumbnail, medium, large: Image styles can be applied to images we are using in views, and not always 3 default options are enough.   In the image above, you can see, we have passed some default image styles in our Featured tours view. What are the options to make the images fit the box? Well, we could use Some CSS techniques, but we can use image styles options from Drupal, right? So I'm gonna create a new image style, called grid2: Go…


Drupal 7 override page.tpl.php for specific content type

| 4 views

<p>Working on project I needed a function to override default page.tpl.php for specific content type. I did use theme_hook function some 2 years ago, and I knew it's achievable in Drupal.</p><p>Doing quick Google search found a Drupal tutorial <a href="https://drupal.org/node/249726">https://drupal.org/node/249726</a>&nbsp;- &nbsp;don't know is it problem with my project, but that didn't work as expected, and after brief…


Building a Drupal site from scratch - part 10 - Views exposed filters

| 0 views

<p>Remember at start of this tutorial <a href="http://reinisfischer.com/building-drupal-site-scratch-part-1-planing">we created a tour types taxonomy</a>, by allowing asign a category for each node from content type tour? Today we gonna add these values to our tours page, by allowing for users to filer tours by their type:</p><p>&nbsp;</p><p>Open your view tour, and under filter settings add filter Tour type:</p><p><img src…


Building a Drupal site from scratch - part 9 - adding menu

| 0 views

<p>To add a menu to your Drupal site, you should enable menu module from your modules page:</p><p><img src="http://reinisfischer.com/sites/default/files/enablemenu.JPG&quot; alt="" width="1162" height="169"></p><p>&nbsp;</p><p>When enabled, head to&nbsp;admin/structure/menu/manage/main-menu and a few menu links:</p><p><img src="http://reinisfischer.com/sites/default/files/listmenu.…


Building a Drupal site from scratch - part 8 - Theming subtheme CSS

| 0 views

<p>In part 2 of series how to build a Drupal site from scratch, I'm talking about how to create a subtheme from Bootstrap theme.</p><p>Today I would like to speak how to actually theme it, because just enabled it comes empty,with all files served from Bootstrap mater theme.</p><p>By default Bootstrap theme is set to be 1200px and wider, this is first thing I would like to change for our customers tourism website we are using in thee Drupal series. I don't…


Drupal views archive page

| 2 views

<p>Today I decided to give some face-lift to my blog page. I wanted to add an archive function to filter blog posts by month. If you have views enabled, you can use default view archive, which comes with views.</p><p>Since I already had created a page blog, I didn't see any use to use 2 identical views - archive and blog. So I didn't enabled archive view, instead I fine tuned my existing blog page view:</p><p>Add Contextual filter:&nbsp;<strong>…


Building a Drupal site from scratch - part 7 - Theming views

| 0 views

<p>In <a href="http://reinisfischer.com/building-drupal-site-scratch-part-5-custom-fro… 4</a> in tutorial series how to build a Drupal site from scratch, I am showing how to build views. Now let's upgrade them, by adding additional fields and even CSS style.</p><p>Yes, we will add CSS style directly into our views.</p><p>Lets go back to our view tours (if you are new to this series, please read <a href="http://reinisfischer.com/building-…