How to start with Paragraphs for Drupal 8

How to start in Drupal 8

  1. Create Paragraph Types (bundles in D7) add admin/structure/paragraphs_type
  2. Create a Entity Reference Revisions field on the node/entity type, like admin/structure/types/manage/page/fields for the Basic Page type of node or admin/structure/block/block-content/manage/basic/fields for blocks.
  3. Select "Paragraphs" at the field "Type of item to reference" and select a nice "Allowed number of values", "unlimited" is the best option for Paragraphs
  4. Select "Paragraphs" in the field "Reference method"

Populate an entity reference field

This is for folks like me looking for a dead-simple explanation on how to set reference fields using the Rules module.

First: it is possible, it is simple to understand and you don't need to rely on different (say the “Relation”) module, as many comments imply.

Use Case: Curated Crumbs breadcrumb based on an Entity Reference parent and a custom breadcrumb title

In some cases, a content editor might want tight control over the breadcrumb that shows up on each page of the site while still maintaining consistency across the site. There are lots of different breadcrumb modules, but this how-to will go over creating a curated breadcrumb using Crumbs, Entity Reference, and a custom text field.

Modules

  1. Install Crumbs 7.x-2.0-dev (this branch has caching)
  2. Install Entity Reference

Content

  1. Add an Entity Reference field to all content types called Breadcrumb Parent (field_breadcrumb_parent)
    This field should be single-value, otherwise it won't work!
  2. Add a text field to all content types called Breadcrumb Title (field_breadcrumb_title)
  3. Add some content and set the Breadcrumb Parent and Breadcrumb Title so that some nodes are in a hierarchy

Configure Crumbs plugins

  1. Go to the main crumbs admin page: admin/structure/crumbs
  2. Drag two items from the Inherit / automatic section into the Enabled section:
    • text.field_breadcrumb_title.*
    • entityreference.field_breadcrumb_parent.*
  3. If you don't see your plugin, try clearing your cache
  4. Save the configuration

Before You Begin Theming

Omega is created to be a robust and extensive base theme. It can be as much or as little as you want it to be. In order to get the most out of it there are some basic setup steps we recommend you take. These are just recommendations however, Omega will work right out of the box without any modification to your system.

Common Questions

This page is a list of commonly asked questions and their corresponding answers.

How do I add a new zone or region to my subtheme?

  1. Locate an existing zone/region in your subtheme's .info file (e.g) regions[header_first] = 'Header First' or zones[header] = 'Header'
  2. Copy & Paste it anywhere in your subtheme's .info file
  3. Rename the new line as appropriate for your scenario (e.g) regions[header_second] = 'Header Second' or zones[headerXYZ] = 'Header XYZ'
  4. Save your changes
  5. Clear cache
  6. Navigate to your subtheme's Zone & Region Configuration settings
  7. Locate your new zone or region in the "unassigned zones/regions" area at the bottom of the page
  8. Assign as desired

What does Weight & Position do?
* Weight = the position of the region in the markup
* Position = the visual positioning of a region

My content region isn't expanding, please help!
TURN OFF DEBUGGING BLOCKS also see http://drupal.org/node/1298690

How to override default hover color style from tables?
Apply the below code to your global.css:
tr:hover td,  tr.even:hover td.active,  tr.odd:hover td.active {  background: #FFFEEE;  }

How do I add a custom .js file to my Omega subtheme?

    Built-in Installation Profiles (Drupal 7)

    Drupal includes installation profiles that control what's included as you get started. Select from either the Standard or the Minimal profile.

    • The Standard profile has several core modules enabled. It has more default configuration set up, including several default admin tools. This profile does more to show what core can do, and can save site building time by having defaults for common use cases.
    • The Minimal profile has only a few very basic modules installed. This profile is useful if you only want very specific features, or if it will take more work to undo the defaults provided with the Standard profile.

    Details

    The following table lists the modules enabled by the Standard profile, as compared to the Minimal profile:

    Modules enabled by profile
    Module Minimal Standard
    Block x x
    Color x
    Comment x
    Contextual Links x
    Dashboard x
    Database Logging x x
    Field x x
    Field SQL storage

    Pages

    Subscribe with RSS Subscribe to RSS - how-to