Blog Archive: November 2013

Drupal & Servers

Drupal: Sending Confirmation Emails from Your Webform

Today, I encountered a problem that at first seemed like a pain, but in the end, turned out to be simpler than I thought. I needed to send a confirmation email to the submitter of a webform, letting them know that their email had been received, along with some plain text instructions.

A while back, I wrote about how to add a contact form to Drupal, and today I want to share with you how to send a confirmation email to the submitter.



This is…

Drupal & Servers

Simplifying Drupal View Editing with Contextual Links

I have been working with Drupal since its 6th release, and one of the reasons I love it is due to Views. In all the websites I've built using Drupal, Views make up 80% of the site structure. I am familiar with what each View does and where to find it.

However, I have always been puzzled by the presence of direct edit links for both Views and blocks in the theme region. At first, I thought it was related to the version of Views, but later on, I…

Drupal & Servers

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

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…

Drupal & Servers

Nginx URL Redirection: From Non-WWW to WWW

Nginx is a popular web server used to host websites and applications. One of the common tasks in Nginx configuration is redirecting non-www URLs to their www counterparts. This is known as a "www redirect". The purpose of this redirect is to standardize the URL format, improve search engine optimization, and provide a consistent user experience. In this article, we will go over how to set up an Nginx redirect to www using Nginx configuration.…

Drupal & Servers

Configuring Nginx to Display 404 Page for Unconfigured Domains and Server IP Address

In today's digital age, it is crucial for website owners to have a properly configured web server.

This not only ensures a smooth and seamless user experience but also protects the website from potential security threats.

One common issue that website owners face is incorrectly indexed links in search engines like Google. In this article, we will provide a simple guide on how to configure Nginx to display a 404 page for unconfigured domains…

Drupal & Servers

The Power of Nginx: A Comprehensive Guide to Nginx Web Server

Nginx (pronounced "engine x") is a high-performance web server and reverse proxy server. It is a free and open-source software that was first released in 2004. Since then, it has gained a lot of popularity and has become one of the most widely used web servers in the world, powering many of the largest websites and web applications.

In this article, we'll take a closer look at what Nginx is, how it works, and why it's so popular.

What is Nginx…

Drupal & Servers

Improve User Experience with Image Hover Effects for Drupal Thumbnail Images

Drupal is a powerful and flexible content management system that enables you to create visually appealing and engaging websites. One way to enhance the visual impact of your Drupal site is to add image hover effects to your thumbnails.

In this article, we'll explore how to use Drupal to create image hover effects for thumbnails.



Step 1: Install and Configure the Image Hover Effects Module

To create image hover effects for your Drupal…

Drupal & Servers

Display node count per taxonomy

<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,…

Drupal & Servers

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

<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,…

Drupal & Servers

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

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…

Drupal & Servers

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

<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…

Drupal & Servers

Customizing Subpage page.tpl.php Design in Drupal: Tips and Tricks

Theming subpages in Drupal is an important aspect of website design that can help you create a professional-looking website that engages your visitors. One way to achieve this is by theming subpages like page.tpl.php in Drupal. 

In this article, we'll take a closer look at what page.tpl.php is, and how you can use it to create custom subpage themes in Drupal. 

Page.tpl.php is a template file in Drupal that controls the overall layout…

Drupal & Servers

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

<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…

Drupal & Servers

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

<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…

Drupal & Servers

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

<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…

Drupal & Servers

Drupal views archive page

<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…

Drupal & Servers

Building a Drupal site from scratch - part 7 - Theming 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…

Drupal & Servers

Building a Drupal site from scratch - part 6 - Working with blocks

<p>In <a href="http://reinisfischer.com/building-drupal-site-scratch-part-4-creating-v… 4</a> of this Drupal tutorial series we created a view with block - Features tours. Now is the right time, to do something with this block. And we gonna put this block on our <a href="http://reinisfischer.com/building-drupal-site-scratch-part-5-custom-fro… access blocks section in your Drupal site, head to structure/block:</p…

Drupal & Servers

Building a Drupal site from scratch - part 5 - Custom fronpage

<p>By default Drupal comes with frontpage set to display latest 10 nodes from your site:</p><p><img src="http://reinisfischer.com/sites/default/files/frontpagedrupal.png&quot; alt="" width="632" height="573"></p><p>Which might be ok, if you are runing some blog, but if you are looking the ways how to change default frontpage, you must take a look under system/site-…

Drupal & Servers

Building a Drupal site from scratch - part 4 - Creating views

<p>Let's move on with our tourism companies website tutorial.</p><p>In part 1 we created a custom content type - Tours, now it's time to make a few views which will contain data from node related to content type - tours.</p><p>Before creating views - we must download a few modules, to get them work:</p><ul><li><a href="https://drupal.org/project/views">Download Views</a…

Subscription

For $10/month, receive weekly trade ideas and portfolio adjustments directly to your inbox.

I share ongoing portfolio progress with a focus on generating income through covered calls on quality stocks. Each update includes positioning changes, trade rationale, and forward-looking adjustments based on current market conditions.