It is important to keep our drupal site up-to-date. New releases of contributed modules and Drupal core come out periodically to address critical security fixes, and it's important to stay on top of updates as they are released. It is difficult to download the latest version of each module separately and then remove the old one from the sites/all/modules folder and put the the new one in that place and all. Drush comes to help us in updating the modules in an easy way. The following are the steps to update the non hacked modules using drush
Drupal Technical
Getting a block in front page or in all other pages is easy ie, we only need to print that variable in our template files namely page-front.tpl.php or in page.tpl.php.In certain cases we may need to print a block in certain nodes. This can be done by the following code :
Every one will be familiar with the template files.Now lets see the case to theme a block. Here we can use block.tpl.php for theming the block but what if we want to theme the block specifically by a region?In one of my recent projects I need to theme the block in a specific region, I cannot use block.tpl.php as this may cause all other blocks to change.While digging a bit deeper I found out that this can be done easily by using a template for that particular region.Let's see how it can be done so.
While accesing site from mobile it needs to be changed as per the mobile reqirement. So we need to check whether the site is accessing from mobile devices or from the desktop or laptop. There is an easy way to detect it witht help of Javascript.
In this article I will be explaining What is Affiliate Links and what all configurations should be done to generate affiliate links on page load. Also will explain how to generate titles of required patterns using preg_match(). In a related article we have explained how to use hook_form_alter() to make the Multiple select field a single select.
In a drupal site if you want to display the location of a particular place then there are many modules to help you out. In this article I am writing about such a module. The name of the module is 'Location Map module'. In this article you can read about the configuration that has to be done while using the module. The module uses google maps to locate the particular locations.
Recently, I got stuck with a strange issue while using CKEditor. The problem was, When code such as v-aligns for tables or inline styles are added in ckeditor and saved then everthing things works fine, but as soon as the page is edited inline css and classes gets stripped off the content.If you are also facing the same problem then read on to know how to solve this.
This is a documentation on how the items displayed in a View can be grouped by using fields in the view. This can be performed using the 'Grouping field' option inside the Format settings of Views. Our client had a requirement where the view items displayed in the page needs to be grouped according to the filtered taxonomy term field.
I had an issue with a Drupal site that files not getting loaded due which issue on website alignments. This files not getting loaded issues was noticed on reviewing the console log errors in browsers.
Webform has inbuilt functionality to provide reports for the data submitted. The datas submitted to the webform can be setted to a limit or can be unlimited with respect to the feedbacks needed to be collected.To implement custom reports page using webform views, we need to get the web-form submissions data value by installing the following modules
Every website has POST and GET feature involved for continuous client and server communication. We would have got many unauthorized requests from the site to and fro which are categorized as spams. Spambots usually create fake accounts and send spam using them, although in many cases it would be obvious that a spambot is sending it.
Drupal has a lot of contributed modules. Today, Facebook is one of the most popular social networking sites and almost all the websites are connected with it. So, how can you connect your Drupal site with Facebook?
In Drupal 7 there is a contributed module called Facebook Events. This Facebook_Events module allows to show RSVP of Facebook event in Drupal node. This is very useful module for Drupal sites Facebook connection and also FBConnect module which can also be preffered as a linkage to Facebook events.
Check out the steps to create a custom token in Drupal for setting the URL alias pattern.
Drupal Commerce is a software used for integrating commerce,
content and community to create engaging web experiences that bring
e-retailers more traffic for more results. With Drupal Commerce, online
retailers have a simple yet powerful platform and flexibility to
integrate a rich commerce experience anywhere within their environment.
Installing Drupal 7 on Ubuntu 14.04 machine is pretty simple. Here is a quick and easy way to setup a Drupal 7 fresh installation. All those new Drupal developers who would want to do a local Drupal setup, please read on.
If you are looking for a simple contact form for your Drupal 7 website, just follow the steps below else skip to the bottom of this article for a bit more complex solution.
Drupal, up until now a PAC (Presentation Abstraction Control) architecture, has taken a step closer to MVC (Model View Controller) architecture. Although nowhere have they mentioned about MVC, the new Drupal 8 is strictly object oriented. Another feature in Drupal 8, that is different from the existing versions of Drupal is that it is not entirely Drupal. Drupal 8 uses many components in symfony like it's ClassLoader, YAML file structure, twig and so on. For a detailed description please visit the Drupal 8 home page.
After the launch of Drupal 8, there is now an incessant need for converting existing Drupal 7 modules to Drupal 8 compatible versions. Due to the substantial changes in Drupal 8 from its previous versions, developers find it hard and time consuming to migrate from D7 to D8. This is mainly because Drupal 8 is object oriented and much closer to an MVC (Model View Controller) architecture, Drupal is no longer a PAC (Presentation Abstraction Control) architecture framework, Drupal follows the PSR-4 folder structure in compatible with symfony component which Drupal 8 uses.
The radical changes that Drupal 8 brought forward have been reflected in Drush 7 as well. Drush 7 now uses composer to download its dependencies. Before installing Drupal 8 you must make sure that Drush 7 has been installed. This is because Drupal 8 can be downloaded and installed using Drush like in the previous versions of Drush and also, Drupal 8 only supports Drush 7. Unlike earlier versions, Drush 7 cannot be installed using "sudo apt-get install drush" nor can it be updated by running "drush self-update" because that will result in updating to Drush 6 and no more. Hence the purpose of this article.
Drush is a powerful tool to manage routine tasks in a Drupal site. Downloading, installing or enabling modules, running cron and much more can be accomplished using Drush. This is why its important to have Drush 7 before a Drupal 8 installation. Drupal 8 requires minimum version of PHP 5.4. Apache requirements haven't been mentioned, but I recommend apache2.4. After this we can begin installing Drush 7.
Installing Composer
While am working with Drupal 7 to Drupal 8 module migration I have faced the following issue.
Fatal error: Call to undefined function check_plain().As Zyxware is a regular contributor to Drupal, its relevant that we need to upgrade our contibuted modules too.