Now a days, we all are pretty much accustomed with using the CSS3 Transition effects. All of the modern browsers are having this feature support( Except some of the specific versions of IE ). Basically we use this to make our sites more beautifully functional. It makes our life easy. As we all know that it has reduced a bulk amount of effort which was being performed by jQuery or other libraries previously.
We know that in every Drupal version there are lots of core and third party modules to develop a website. But many time these core and third party modules are not enough for a requirement. At that moment we need to create our own custom module to complete the require task. In this post I will discuss about creating our own custom module in Drupal 8.
Now a days all we are totally crazy about watching videos on YouTube. Sometimes we want something to be unique. We place our videos into our website with embedded YouTube videos, which is pretty cool actually. We all handle manually that stuffs. But sometimes we feel like we need some more. If we could control the player with one of our customized Pause/Play option, it would be fun 🙂 If we can Pause/Stop the video while doing other event in the same page, it would be more dynamic too 🙂 But the fact is, these all are available. So now that’s a pretty cool stuff 🙂
So without wasting time, lets start.
Initial Solr Setup:
1. Install the latest Java JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html.(Make sure to select 64bit version if you need it.)
2. Download Solr 1.4.1 from one of the mirrors at http://archive.apache.org/dist/lucene/solr/1.4.1/(at the time of writing, not all mirrors seem to be hosting 1.4.1, but most seem to have at least 1.4.0)
Few years back we were facing too much trouble to use our favorite fonts for any text in our website. But now @font_face has made our life very easy. We are now able to use our favorite fonts in any text and for any browser.
So without wasting any time, lets get started.
First of all what is @font_face :
In real life what we understand about Routing – this is nothing but the perfect way to select the exact path to execute any process/function. If we want to relate the routing with Drupal then how it will look. Nothing to worry, its already in Drupal setup. In Drupal 7 the Routing is handled through hook_menu(), but in this article we will get to know how the Routing handle by routing.yml file in Drupal 8. If we want to work with hook_menu() in Drupal 8 then we have to create a “module_name.routing.yml” file in your Module directory. So lets check with an example:
Example to use hook_menu() in Drupal 7: