The Row layout will allow users to add any blocks into 1 to 4 columns using layout builder. This file is not required in Drupal 8 and above, but we’ll need it for later. Create a ww_bootstrap4_layouts.module file. Create a ww_bootstrap4_ file and add the following into it: name: WW Bootstrap4 layoutsģ. Create a folder in modules/custom/ww_bootstrap_layouts.Ģ. NOTE: The generate command only works in Drush 9 and up.ġ. If you use Drush, just run the following command and fill in the prompts. Go ahead and create a custom module called ww_bootstrap4_layouts. This layout would be called BS Row and it’ll be used as a section in layout builder. To fix a few bugs created in the previous video, I decided we needed to create a custom layout. Get a copy of the built site from GitHub. So we start off by creating a Row layout which fixes the bug from part 1 and we implement the Bootstrap Carousel component (clients love carousels) using block types. Part 2 (this video) is a little more advanced because we create a custom module, implement two layouts and implement a hook_preprocess_HOOK. For example, we couldn’t drag-and-drop any of the card components because I overrode the inline-block template. We start off by fixing a few bugs, which I introduced and didn’t notice until I started playing around with the site after the first video. In the show notes below, I outline what we implement in part 2 of the Drupal live site build.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |