Recent Blogz

Drupal 7: Making Drupal block is no-cachable:

Drupal system makes blocks is cachable to speed render. The block cache is stored in Drupal core database block_cache table. By altering or change information of block as non-cachable. This is achieved by passing cache as "DRUPAL_NO_CACHE" in hook_block_info() for custom block and hook_block_info_alter() in existing block.

Drupal 7: Render/Display field value from entity object

In Drupal, each and every entity will different fields. These Fields are stored as the seprate table in Drupal system. Based on the field type(Text field, Body field, Integer, File upload field, entity reference field) the render display format can change. While rendering field value in our custom code need to concentrate on the field display format. The function drupal_render() with field_view_field() we can output formated values.

Drupal 7: Formating Date time (Changing Date based on timezone)

The Drupal will support different type timezone to process date related data. But actual data are stored in Unix time stamp format of UTC in the database. The Drupal default core system will process dates as configured in system configuration. While we accessing database date values we need to format to particular timezone date.

Drupal 7: Programatically adding new Commerce Product

In Drupal commerce, we can able to add new Commerce Products programmatically using the commerce_product_new() function. This will create an object of Commerce product, Using the object we can able to set their attributes for the product. The below is the example and syntax for creating the commerce product.

Top 10 Most Common Spring Framework Mistakes

Spring is arguably one of the most popular Java frameworks, and also a mighty beast to tame. While its basic concepts are fairly easy to grasp, becoming a strong Spring developer requires some time and effort. In this article we’ll cover some of the more common mistakes in Spring, specifically oriented towards web applications and Spring Boot. As Spring Boot’s website states, Spring Boot takes an opinionated view on how production-ready applications should be built, so this article will try to mimic that view and provide an overview of some tips which will incorporate well into standard Spring Boot web application development.

Theme Ionic 2 Application - Customize and modify default theme layer of ionic application

Ionic is built on top of Sass, which allows us to set some default styles. SASS is nothing but a "CSS preprocessor" which is a scripting language that extends CSS by allowing developers to write code in one language and then compile it into CSS. Some examples of CSS preprocessor include: Sass, LESS etc.