Are you trying to create a scrolling marquee content programatically in Drupal. Then read on!
Technical Blog
Commerce Discount module provides a user-friendly UI for managing discounts. The Discount UI (available under Admin → Commerce → Store → Discounts) allows creating and editing discounts. Each discount consists of two related entities: Commerce Discount and Commerce Discount Offer.
Views bulk operations module is used for performing multiple operations for multiple rows on a view. Here we can have default action on the view configurations and can also add our custom actions as per the requirements. Views bulk operation module reuses and extends Drupal core Action system. Also most of the Drupal core actions are VBO-compatible actions.
What is Twig? How will it change Drupal themes? Drupal 8 is coming with lot of improvement in theme layer. Twig is a template engine and easy to learn. Twig is help to create template without knowledge of PHP. Twig is part of the symfony2. It created by SensioLabs. The changes in classes and arrays combined to attribute object. In Drupal 8 .tpl.php file is replaced by *.html.twig template files.
Google calendars are used to track events, a way for organizing your scheduled works/tasks with easy accesses. In one of my Drupal site, I need to embed a Google calendar to create nodes on Drupal based on events from a Google calendar.
Creating an order invoice detail as pdf can be a most frequent requirement when dealing with web applications. In this article I like to explain how to create a more advanced pdf document in Drupal. We will be creating a order detail report using tcpdf. TCPDF in based on FPDF which contains more advanced features compared to FPDF.
Drupal 8 is new version of Drupal. It is very different from All old Drupal versions. There are lots of new feature in Drupal 8. As you know Drupal8 is based on symphony framework. Are you excited to know what's new in Drupal 8? I have listed out some features below:
The createItem() method lets you add data to the queue and the numberOfItems() method lets you see how many items are present in the queue. We use the claimItem() method of the queue object to get an item from the queue. claimItem() returns the data property, which contains whatever we put into the queue. If there is no item in the queue then claimItem() will return FALSE.
Steps for creating queue.
The Queue API in Drupal is designed to manage tasks.The queue system allows placing items in a queue and processing them later.The Queue API is a simple,reliable way to keep track huge lists of tasks without requiring you to know anything about the whole group.Prepare your data, put it in one item at a time, and take back one item at a time to process. When you are done with a single item, just report back that you have finished and the item is removed from the queue.
Context is one of the most useful architectural modules for Drupal. Contexts allows a site administrator to manage contextual conditions and reactions. Context feature works by setting conditions such as a path or a node type. If that condition is present then the corresponding reactions, such as adding blocks to regions or setting an active menu, will work as configured.
Google Analytics for Drupal: Unlocking Powerful Insights for Website Optimization
Many a times while developing sites we would need to post data to an external server, for example if you have an ecommerce site and wants to manage CRM in a different server at such time you would need to pass the order details to different server. We can POST the data using CURL or drupal_http_request().
In Drupal 8, .info file is converted to .info.yml file. It is a symphony component. The .info.yml file contains the metadata about your theme, such as theme name, description, version of the Drupal it supports, and type. Type is new metadata type indicate type of the extension such as module, theme etc.
This tutorial shows you how to insert a form into a modal so it pops up on your site after a user clicks a link, without having to write any JavaScript at all. The functionality that supplies this is the CTools module and core ajax functionality in Drupal 7.
If you have a multi-site installation that has multiple settings.php files, say '/sitename1.com/settings.php' and '/sitename2.com/settings.php' and so on. Trying to run Drush commands to clear cache from different directories and changing directories all the time is going to be a mess.
The feedAPI module is a famous one for processing custom feeds in different formats like rss/Atom, csv, iCal etc. Now the feedAPI has been upgraded to the "feeds",which have more features and easy to use and customize. However still a lot of Drupal 6 sites uses the feedAPI module for handling external feeds. Let us see how a new parser can be created in feed API module.
I had a requirement to use my current view repeatedly on other pages with minute configuration changes. The current view configuration should be available on the other views and no changes should affect the view page which is active. The best way to get through the scenario is by the cloning the copy of the existing view and configure the clone as per the requirement.
Drupal gives ability to access callback. The access callback is executed before the call 'page callback'. Here create custom permission using access callback. The access callback helpfull for specific permissions to users or roles.
For a Drupal site I had a requirement to create a Rule using the rules modules. It seemed to be working fine. Then I needed to convert the rule to a programmatic rule that I can include inside my custom module.
In order to communicate and interact with other web applications we need to use standard communication protocol called web services. The web applications such as Facebook, flip kart, twitter etc can communicate to and fro with Drupal sites.Web services will also allow our Drupal site to pass along content and data to external web applications existing on remote servers.