By editor, 18 September, 2017 Use IMCE on custom page Tags Drupal 8 Code Drupal 7 Module Example 1 (for drupal 7) Step 1. Add file brows Create a simple js file in your module directory (called yourModuleName.js) and enter the following Javascript.
By editor, 17 September, 2017 Disable cache for a specific page Tags Drupal 8 Code Cache Module Disable cache for a custom page from route declaration. If you want to disable cache for a custom controller (Custom module), You have no_cache option (YOUR_MODULE.routing.yml). Example : File : mymodule.routing.yml
By editor, 13 September, 2017 Render a Node or an Entity Tags Drupal 8 Code Views Node Field Drupal 9 On drupal 8 every elements (almost) are an entity, as any entity you can render a node.
By editor, 12 September, 2017 Autocomplete function for textfield of Form API Tags Drupal 8 Code Form First, Create autocomplete controller and the route Example of the controller : DefaultController.php <?php namespace Drupal\mymodule\Controller;
By editor, 5 September, 2017 Merge two git commits into one Tags Shell Git This is an example to merge 2 last commits. 1. git rebase -i HEAD~2 2. Change pick to squash the commit you want to merge 3. Save and Exit 4. git push -f origin master