Blogz

Recent Blogz

Drupal 8: Accessing Node values and properties by loading

The node object is loaded by the function load() of Node class of core Drupal system. The object of the node will hold the pieces of information like Content type, created timestamp, author and revision values. Similarly we able to access node field values. The below is the example accessing the Node properties field values of the node.

Drupal 8: Adding custom CSS to form or page

The Drupal we can able to add custom CSS files to our forms. In Drupal 8 adding custom, CSS files will be achieved by using the library to system. The library files are needed before adding to form. These libraries descriptions are added in MODULE_NAME.libraries.yml files. Once libraries added we can able to define in our forms.

Drupal 7: Adding Captcha field in Node creation Form

The captcha will help to control bot and anonymous users content creation in websites. The captcha system makes will make a challenge for every user to confirm whether the user is human or not. These challenges are mainly used for avoiding spam content creations. In Drupal, there some contribute module will help to achieve captcha for Drupal sites.

PHP: TCPDF Font style Change(Adding external fonts)

TCPDF is a PDF library for generating PDF for given content. The Library is open source available on https://tcpdf.org/. We can download that library to create PDF for our need. This article will demonstrate how to change default font style of TCPDF library with our custom TTF font file.

Drupal 8 formatPlural(): Formatting count sentances with Singulars and Plural

In English grammar, there is importance to display words with proper nouns. The Singular and Plural will help to display sentences with numeric count components. Singular means only one. Plural means more than one. In Drupal 8 we can format both singular and plural values by formatPlural() function of Transulation Modules.

Drupal 8: Creating Hook Alters programatically with Example

The Hook system will provide alter any content from one function from another in Drupal. The Drupal 8 Hook implementation are invoked with help of Core Drupal class function of moduleHandler(). This function will provide the object to execute all hook functions to alter the content.

Learning Swift Programming: Is it Ready for Prime Time?

Apple’s launch this past June of Swift, a new programming language for writing iOS apps, created a great deal of buzz and excitement throughout the iOS developer community. Since its launch, many iOS developers have been struggling with the question of if, how, and when to transition from Objective-C to Swift. The answer to that question will of course be different for every team and every project.