Promotion ended
Sorry! This promotion has now ended. But please subscribe to our newsletter, and we'll notify you of future promotions.
One of the biggest downsides of the core block system are its permissions. To allow different roles to do different things with blocks is basically an all or none permission. The Bean module provides more granularity for block permissions. We can now add the ability to have site content creators create blocks but not give them permissions to all the other block admin pages.
Much like using Context to enhance the core block system, the Bean module takes blocks to a whole new level. The Bean module makes blocks act more like content types. It allows for different block types and for adding fields to blocks. We are also able to manage the display of a block, which comes in handy with Context. We can have a block look different based on the Context of the block.
When Drupal 8 ships, site administrators and site builders will notice lots of new, shiny features. Most of these we've already covered in this series of blog posts—Learning from Trial and Error. But one thing that may take a bit to notice are those things that have been pruned. Unless you have a need for these features, you won’t really notice they've been pulled from Core and no longer in existence or now exist as contributed modules. Let’s take a look at what's been removed: (source):
Half of the Drupalize.Me team is on the road right now, having attended DrupalCon Amsterdam. For Episode 49, Addi and Amber found a quiet corner to record a brief recap of the week.
In this lesson we'll get started with Context by installing the module on our site, and then walking through the user interface we have to work with. We'll discuss things like conditions and reactions, and see how things are set up.
In this lesson we will discuss different use cases for when one would use Context module. We will demo a site that has a home page and a user dashboard that acts as an authenticated users home page. We will demonstrate one of the advantages of Context by placing blocks in different locations depending on which page we're looking at.
One of the key problems with the block system in core is it's very limiting. You are limited to a small set of tools for when and how to show a block. Once you lay out your blocks you are basically done—blocks can't be placed in multiple regions. Most importantly, block configurations are not exportable. With the Context module, you lay things out based on the context of your site. A block can exist in one region for one context and a different region for another. Essentially Context is a more advanced block placement form.
In this lesson we will go over one of the main reason for using Context over core blocks; exportability. Using the Features module we are able to take all of the work we do in the Context UI and export it as standalone or with other features. The advantage of this is now all of our settings are stored in code and are deployable.
In this lesson we will perform a simple operation that site builders do when using the Context module. This is not necessary, but a good idea if there are multiple people managing your site. We will disable all blocks in the block UI since we will be using the Context module to manage this part of our website. The core block UI will then only be used to manage block titles as Context does not allow for this (a disadvantage we learned about previously).
As Drupal site-builders and developers we are all very aware that Drupal 7 is not the most useful product out of the box. We constantly add modules and custom code to make Drupal do what we need. There is nothing wrong with this, in fact it is what attracts people to using Drupal in the first place. The block system that comes with core is what we get after installation as our real only means to laying "stuff" out for our website. People have done things like turning nodes into blocks, or making every block on our a site a view. These concepts work, but have a lot of draw backs for usability and performance. There are lots of layout tools to use, but this series is going to take a look at the Context and Bean modules. These two modules are really two completely different modules but when used together give us some pretty powerful options in place of Drupal's core block system.
Ready to get up to speed on current PHP tools and techniques? This week we're excited to provide to our wonderful members more new PHP videos from our partners over at KnpUniversity, a leading provider of PHP and Symfony video tutorials. All of this week's tutorials are also completely FREE!
It is claimed that "every HTML table in Drupal 8 is responsive." What this actually means is that tables in the Drupal 8 admin UI are responsive and also that in Views, if you select a Table format, you have the opportunity to prioritize columns that will hide upon reaching narrower breakpoints. The strategy that is employed is that of adding "priority" classes to table cells and a "responsive-enabled" class to the table tag. At a tablet breakpoint, the "priority-low" table columns will hide and at the mobile breakpoint, the "priority-medium" columns will also not display.
You want to learn HTML and CSS, or maybe you just need a refresher on the current state of web technology—where should you start? This is a question we get asked a lot at Drupalize.Me. Our theming and module development videos often assume that you're familiar with basic HTML and CSS, so here is a list of our favorite resources.
In this week's podcast, Episode 48: Demystifying the Sprint, Kyle Hofmeyer talks with Cathy Theys (yesct), Michael Schmid (schnitzel), and Emma Karayiannis (emma.maria).
Drupalize.Me is looking for a Drupal trainer and developer to join our team.
Sorry! This promotion has now ended. But please subscribe to our newsletter, and we'll notify you of future promotions.
We're delighted to release another installment of PHP for Beginners videos from our amazing partners over at KnpUniversity. In these video tutorials, you'll learn all about HTTP responses and requests and step-by-step, how to process a form using php and JSON. Leanna takes you under the hood of a web page, showing you what information is being passed along and how you can make use of it in your PHP script.