Twig is a modern template engine for PHP. It is fast, flexible, and more secure. Twig is a template framework and is a direct replacement for PHP Template. There are lots of differences between PHP template and Twig.
Drupal 8 is developed with help of Symfony2 framework, and the template files in Drupal 8 are in twig format.Read on to find out more about twig and debugging of twig.
Articles
Have you ever seen your face? Not in a mirror, but with your own eyes? You may have seen other parts of your body, but never your face. When you think about it, there are so many things that are not humanly possible. That is why we need machines. Simply put, technology should aid in human development. But as any other thing, if technology is misused, it becomes a curse. The collective effort of mankind may never be able to find ideal solutions to technological challenges,
as done by a state of the art A.I Quantum computer. This sets the stage for Artificial intelligence.
As Zyxware Technologies forges ahead in its journey to achieve the target of Rs.100 crores and 1,000 people by 2018-19, we realize that building powerful leadership capabilities is going to be a major differentiator.Hence, each of us need to take stock of our present, reflect on our past, and prepare for the future as leaders. Our goals will demand the best out of us.
In order to identify what to write on in this edition of the newsletter, I interacted with some people in Zyxware. The suggestions, at first glance, appeared varied. But the more I think about it, the more I feel that there is a common thread running through them. The common thread is that of the future of Zyxware as an organisation, its vision and how it plans to get there. I am putting together a response here which are broad answers to the questions. More specificity would require me to take up more space which I am afraid will not be possible in the newsletter. But I would be happy to engage in the comments section.
Anoop John, CTO, Zyxware Technologies, is a man of many interests and an ardent proponent of the free software philosophy. This man is a polymath who loves to speak, and funnily enough has an opinion on everything under the sun! An avid blogger, he has documented a lot of data in his blog, www.thondomraughts.com, which covers his thoughts on topics varying from activism, to sociology, psychology, ethics, law and much more! All that being said, he is a simple man who just wants to make a difference, bring upon a positive change in the society and help his fellow people. This interview with him sheds light on his journey, his philosophies and the kind of man that he is personally.
Suppose you have a drupal website which uses drupal ubercart module for handling payments. Your drupal website has several online products which can be purchased using credit card. In Drupal projects, we have to enter credit card informations in the Checkout page.
The term 'RSS' refers to Really Simple Syndication(Rich Site Summary). RSS allows you to group the content in your website and provides an easy way to view and share the contents in the site. RSS files are automatically updated whenever new content is published in the site. A user can subscribe to the RSS feed of a website using feed readers, such as Google, My Yahoo, Bloglines, Live Bookmarks etc. This keeps the user updated when new content has been added to the site. RSS is written as an XML file.
Webform is a helpful module that enables you to submit information such as contact forms, surveys etc. It is easy to configure webform in a drupal site. Now, what about displaying a webform inside a colorbox? Although it is easy to install colorbox module and write custom code to display webform, we also have to effectively handle form submission and validation errors. However, there is an easy way in drupal7 to display a webform inside a colorbox.
CKEditor is a WYSIWYG editor plugin that can be integrated into any Drupal / Non-Drupal website. Integrated with complex and comprehensive features,this text editor simplifies website content creation and is very helpful for content editors. Following are a few of the key things that need to be considered, while testing CKEditor implementation on Drupal websites.
If you need to import users from the data given in a file in drupal 6, then user import module is helpful. Using this module, we can upload the file in csv format, which contains user details and select the details from the uploaded file using the user import module.
Drupal is a stable,reliable, and robust Content Management System. Views is a Drupal module, which provides a flexible method for site designers to control how lists and tables of content, or any other type of content has to be presented. The views module was a contributed one and was later adapted to the core from Drupal 8.
Drupal views are being used by almost 75% of the Drupal based sites to present the elements in a page. Most of the websites still use the Views module versions such as 6.x. Drupal Views versions, 6.x-2.9, 6.x-2.10 and 6.x-2.11, in Drupal 6 are vulnerable.
Cron is a job scheduler, which helps to set the list of tasks, supposed to be executed periodically. However, if you are a Drupal developer and wondering how to add the drupal cron to the cron tab, here is the way.
Universal Analytics is a set of technological innovations that is aimed at improving the way data is collected and processed in Google Analytics.The Universal Analytics Upgrade is a process which is used to upgrade all your classic Google Analytics properties into Universal Analytics properties without losing any data or changing your account settings.All Google Analytics properties will soon be required to use Universal Analytics. Any properties that don’t follow the upgrade process will be auto-transferred to Universal Analytics in the future.
Nodequeue module allows users to collect nodes in an arbitrarily ordered list. For example, if you want to display images of a slideshow in a particular order, then the images can be sorted based on the position of the images in nodequeue. Read on to know more.
A new requirement from one of our clients was to create a 'custom view' tab in Drupal my account page. The tab should lead to a page that lists the user’s content in descending order by date of placement. We were all set to create it through code, but interestingly we came up with a different solution. All that was required was just a few minor admin configurations, and the tab was ready in a few minutes. Here are the steps to create a custom view tab in Drupal 7 my account page.
As Drupal sites are becoming increasingly flexible, it is obvious to list the nodes related to logged in user. This can be done with the help of PHP and MYSQL codes. However, we need not waste time if have the views module - the perfect icing on the cake !!! So, let's narrow down here.
Iframe for youtube video ignores the z-index added to it. This happens because iframes are "heavyweight" objects as compared to div. So, the iframe overlays over other div and z-index gets ignored. Read on to know more about setting z-index for iframe .
My Live Chat plugin is fully customizable, easy to install, and requires just a free account at Mylivechat to complete the integration with Drupal websites. It allows you to live chat with website visitors, monitor site traffic, and analyze the web activities of visitors, including their search engine and keyword usage. First of all, what you need to do is to create an account in Live chat site and integrate My live chat in Drupal. Read on to know how to enable live chat in your site.
The client requirement was to add an option to enable the purchase of free products in an eCommerce site implemented using the Ubercart module of Drupal. This option can be implemented using the module named 'uc_free_order'(with Ubercart and other dependent modules installed). At the time of purchase, the 'uc_free_order' module checks the price of the product to verify if the amount is less than or equal to zero. In this scenario, the checkout page and the credit card options will not be displayed. Instead 'No payment required' message will be displayed inside the 'Payment method' box. Read on to know how to configure it in the site.
In Drupal, all content is stored and treated as "nodes" - an abstraction to process data. A node is any posting, such as a page, article, or blog entry. Comments are not stored as nodes but are always tied to one. Treating all content as nodes allows the flexibility of creating new types of content. It also allows you to effortlessly apply new features or changes to content.Read on to know how to save node programmatically