...

Drupal

Drupal 8: check user is logged in or not in *.html.twig

In the new era the drupal8 twig is introduce, so old basic php drupal hook is not useful in theme templates. Now twig is power under the template and…

...

Drupal

How to render i18n translated block in drupal 7 Templates

Hey guys,  Sometimes we created the themes template in drupal 7 and we need to render custom blocks and views block to display proper diversion, but…

...

Drupal

How to render block in Drupal 8 theme template

Similar to Drupal 7, Drupal 8 also gives the customization using theme template, If you want to place a block using programmatically you have…

...

HTML

Facebook post customisation posted using web app using Facebook Open Graph

Facebook is Providing autoposting functionality using website application and provides to display you website content on your facebook page. But the…

...

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…

...

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…

...

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…

...

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…

...

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…