You may be familiar with the theme information link in views. The theme information link in view tells us which files are to be modified, to theme the view. You could get more information regarding the view from, http://viewshelp.doc.logrus.com/help/views/analyze-theme. This is the case where we have a theme with us. But what if you don't have a theme and you still want to theme the view's result? Well, read on if you want to find out how to theme a view by adding a template file inside your custom module.
Drupal 7
One of our client's site, which runs on Drupal 7 allows users to create envelopes based on the custom values like name, address etc submitted by the user through that Drupal website. The requirement was to load this envelope in ckeditor so that end user can edit the default values given as per their wish. So we had to load the form field with the default values given in template. We used jQuery to do this. If you are looking to know how to load a drupal 7 form field with default values from CKEDITOR body content, then read on.
Most of us know how to send an e-mail with attachment. But do you know how you can do this using drupal 7? Not sure, then read on.
In this article, I am going to address 2 isssues.
Sending an e-mail with an attachment.
Sending an e-mail with multiple attachments.
Sending an e-mail in Drupal 7 with an attachment
The steps to be followed are:
Step 1: Install and enable the modules MIME mail and Mail system.
Step 2: Define hook_mail() in your custom module.
The synatx is as follows:
When we were working on a Drupal website using Ubercart, we wanted to override the text content of the default email sent out by Ubercart. Drupal does not give us a configurational method to implement this. If you do not know how to override the default email sent out by Ubercart during checkout, continue reading.
Ubercart stores the default content for email in template files. These templates can be found inside the ubercart/uc_orders/templates folder. Ubercart uses three template files.
In this article we will be explaining a small feature we implemented in our Drupal themes, its called Slideshow. Will be explaining how to create and implement Slideshow feature for your theme. Before we start, hope you all know about PHP templates and Java Script, because these two play a major role in implementing the slide show.
In this article we will be explaining how to use hook_views_query_alter() for Drupal views. While working on Views, I came across a problem. In my search option there is a drop-down menu listing taxonomy terms, what I have to do is instead of taxonomy terms I need to give two options and taxonomy terms comes as a subset of these two terms.
In this article we will be explaining a small feature we implemented in our drupal themes, its called Style Switcher. Will be explaining how to create and implement Style Switcher feature for your theme. Before we start, in my previous article How to create default Slideshow for Drupal 7 themes? I have explained how we can use form alter for theme settings page, kindly refer this too.
In this article we will be explaining how an anonymous user can switch the theme of a Drupal site. This is the continuation of my previous article How to create Theme Switcher module for Drupal 7 Part 1? If you want to know how to create a theme switcher module for Drupal 7 then read on to know more.
Drupal core itself has language support handling in at multiple levels. But If you need multilingual support on your site, locale module provides a user interface on top of basic language configuration.In this article I am going to explain how to add language support in a drupal 7 site.
The steps to be followed are:
'Feeds' helps us to keep track of contents in another websites. In Dupal, we have 'feeds' module for this purpose.Through this article, we will be helping you to find out how you could create a custom feed using views in a drupal 7 site.
Follow the below steps . Please note, you will have to enable the 'Views' module before padding up.
Step1: Create a New View
Goto Administer > Site building > Views > Add. Create a view name called "custom_feed" with description and the View type as "Node" and press Next button.
When we install a fresh copy of drupal, we can see that on the top bar icon, there is an image of drupal. This image is known as 'favorite icon' of a site. This is a default image which is provided by drupal. You may replace this with your custom image. If you want to know how you could change the favorite icon, please read on.
To upload our custom favicon, follow the below steps.
Step 1: Log into your Drupal 7 Admin panel. Using the top menu area, click on the Appearance option. This will show up the themes page where it lists all themes installed within Drupal 7.
Drupal 7's version of Organic group is totally rewritten by taking the advantage of many new Drupal 7 features, especially entity and field APIs. One of the major difference between drupal OG-6 and OG-7 is the expansion of the concept of what a 'group' is. In Drupal 7, any type of entity can be a group and any type of entity can belong to a group. The organic groups module allows us to create a working group where a number of people can create content which is non-public and it is visible to group members only.
Hierarchical select module helps us to display taxonomies, menu etc in a hierarchical form. It is easy to create a hierarchical form field as a content type's field. But have you tried implementing this in a custom drupal form?. Read on to know how to achieve the same.
It is very easy to create a content type through admin section of Drupal. But have you tried doing it programmatically? This article will explain to you how to do this in a very simple way. Even though fields can also be added to the content type programmatically, this section only covers the creation of content type.
Let us pretend we have the following lists with us:
Drupal modules can be defined as a collective set of functions that can be used to create certain features. There are two sets of Drupal modules - 'Contributed modules' and 'custom modules'. Contributed modules are modules that are contributed by Drupal users for general use whereas modules which we create to achieve certain functions are called 'custom' modules. If you want to know how to create a module on your own in Drupal 7, you may read on.
How to programitcally call a view using exposed filter was discussed earlier. But if you want to pass a date field to the view's exposed filter form, you have to change your code a little bit. If you want to know how, you may read on.
We were requested by a client to post the published content automatically on Facebook wall. For publishing a content from our Drupal site to Facebook wall, need to create a Facebook app .If you want to know how to post a published content to Facebook wall in Drupal 7 then continue reading.
Social media sites like twitter and facebook are key tools in reaching out to large audiences almost real time. The key part about using these systems is their ability to broadcast real time news and updates. Tweeting content from a Drupal site as soon as a node / content is posted on the site is a good way to use Twitter. If you want to know how to post a published content on twitter in Drupal 7 then continue reading
Upgrading Drupal 6 to Drupal 7 is supposed to be a straightforward process but there are certain things you have to be careful about when you upgrade Drupal. The following list outlines the different steps you will have to follow to upgrade your non-mission-critical small Drupal site.
With Drupal 8 in the works a lot of Drupal 6 sites are currently upgrading to Drupal 7. We get quite a few queries on Drupal upgrades and almost everybody asks for a fixed price estimate for the process. In theory Drupal 6 to Drupal 7 upgrade process is an automated process (except for the upgrade of theme and custom modules) and all you have to do is to take the site through a set of standard steps for the upgrade. However upgrades don't always work like that.