send Variable to Js File From PHP in drupal

Drupal

send Variable to Js File From PHP in drupal Custom Module

If we need to use the php variable in our js file we can use Core Drupal.settings Functionality :  example: Let we assume we want to use at the…

Facebook, Twitter and LinkedIn post share

Other

Facebook, Twitter and LinkedIn post share checker

Social media apps like Facebook, twitter linked allow your website and apps to share on there pages to reach with more peoples. Question is how to…

Render a drupal node d7

Drupal

Render a drupal node d7

If you want to render a node in drupal 7 it is pretty easy, you just a node id or nid of node for doing this: simply <?php $nid = 13; //use…

Install java on Ubuntu

Java

Install java on Ubuntu

1)Install Oracle Java 8  sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer 2) set…

Slice array Elements using Keys PHP

PHP

Slice array Elements using Keys PHP

Array Many Helpful Function are available to exact the specific set of keys of an array $sliced-arr = array_slice($new_tags, 0, 6); The above…

Drupal 8 add custom menu classes to using

Drupal

Drupal 8 add custom menu classes to using menu.html.twig

In Drupal 8 Twig templates give extra power to drupal to add dynamic content in twig style, In this tutorial we can see how we can add the custom…

How to override different version of Jquery

Drupal

How to override different version of Jquery in Drupal 8 using theme

Drupal 8 use its own jquery version by default and if you want to use the other version of jQuery instead of default than this tutorials steps is for…

Import and Export Drupal 8 Views, Or Import

Drupal

Import and Export Drupal 8 Views, Or Import and Export any configuration Drupal 8

Drupal Views Import and Export configuration is the basic protocol to staging the website or production website deployment, In Drupal 7, we need the…

Wordpress Error with php 7.1 - PHP Fatal

Wordpress

Wordpress Error with php 7.1 - PHP Fatal error: Uncaught Error: [] operator not supported for strings

Hey, This is error caused by php7 and later,many application will face this error Reason behind is that the php 7 will not convert the blank…