Check out the steps to create a custom token in Drupal for setting the URL alias pattern.
Technical Blog
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.
YAML is a data serialization language which is easily readable to both humans and computers. It is for this very reason that YAML is being used in Drupal 8. YAML stands for YAML Ain't Markup Language.
As the drupal is getting ready to migrate to a higher version 8. The older version is overhauled by the newer in every sense. As Zyxware is a regular contributor to drupal, its relevant that we need to upgrade our contibuted modules too.
Here I am listing some of the major changes found out during migrating modules from Drupal 7 to Drupal 8
It will be nice to have an icon and a popup help text for items that you need to give give some explanations. We can use CiviCRM help system for that. See how it can be done.
Inspectlet is a Website session tracking technology helps in recording videos of users visiting pages in your Websites and allows you to watch what the users(visitors) do in your website. Inspectlet helps to identity why visitors come to your sites and see exactly what the users looking for and how they want to use your site. Using Inspectlet you can get every mouse movements, scrollings, clicks, and keypress on your website.
I stood to install a new Drupal-8 site on local environment.I faced a lot of errors related to php and couldn't open the site on browser. I searched about the error and I knew Drupal8 was work in PHP 5.4.5 or higher versions. So I started upgrading my current php version.
If you are a Nginx web server user and using Drupal as your CMS, it is quite different for redirects. Imagine that you have two websites, so if we change from an old site to a new site some of the URL will return 'Page not found'. So for that reason we can redirect them to the correct URL. If you are also looking for a 301 redirect for your Drupal site please read on.
Commerce Marketplace module can be used when you want to set up a multi-vendor store. This module introduces a new entity type called "store". If you don't have any idea about how to set up your store or add products to your store, then read on. This article is going to save your day.
Lets consider a situation in which you are using addthis widget for sharing a page in your site via email and you want to attach an image with the mails that is been send from your site. In the article you can find out how to add a common image to the all mails send from a site and also how to attach images depending on different users.
Suppose your Drupal project has the option to upload Youtube videos which will be displayed in the site. Adminstrator has the option to upload videos in two ways
Admin can add Youtube through direct url uploading.
Admin can add Youtube through adding a video embed code of youtube.
If Config server firewall(CSF) is installed on your server then, you can edit the firewall configurations from the command line using the following commands.
Here is a document which describes how the contents in a View can be displayed in a table format as well as it can be dragged and dropped from one row to an another row without using any additional jQuery functions. We have done this in Drupal 7 and this can be achieved using a module named 'DragabbleViews'. You can download it from this link: http://drupal.org/project/draggableviews. This module requires the 'Views' module to be installed already in your system.
By default in drupal if we click on any taxonomy term, it will execute the taxonomy/term/% menu. We can change this default taxonomy/term/% menu path to a custom menu path. In one of my project I had a requirement to execute a custom function for my vocabulary in stead of executing the taxonomy/term/% menu and I had found a solution for this. The following are the steps to be done.