<p>In <a href="http://reinisfischer.com/building-drupal-site-scratch-part-4-creating-v… 4</a> of this Drupal tutorial series we created a view with block - Features tours. Now is the right time, to do something with this block. And we gonna put this block on our <a href="http://reinisfischer.com/building-drupal-site-scratch-part-5-custom-fro… access blocks section in your Drupal site, head to structure/block:</p><p><img src="http://reinisfischer.com/sites/default/files/featuredtourblock.JPG" alt="" width="1081" height="258"></p><p>Drag this block to Content block area:</p><p><img src="http://reinisfischer.com/sites/default/files/dragblocks.JPG" alt="" width="1052" height="260"></p><p>Be sure to click the save button.</p><p> </p><p>To make this block availiable only on frontpage, click configure and enter settings as bellow:</p><p><img src="http://reinisfischer.com/sites/default/files/jutfront.JPG" alt="" width="1037" height="455"></p><p>Now our block containing data from view, we created before, has been setup to be displayed only on front page.</p><p>Let's see:</p><p><img src="http://reinisfischer.com/sites/default/files/frontblock.JPG" alt="" width="828" height="168"></p><p>Remember we created a view with block Featured tours, to display nodes which are just sticky? The 2 from picture above I made sticky, to demontrate.</p><p>Next time, I'll provide information, how to add more fields to your view, and how to write and apply css styles for them.</p><p> </p>
Building a Drupal site from scratch - part 6 - Working with blocks
| Drupal Development | 0 seen
Disqus