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.

If you’re upgrading from 3.x be sure to look at the 3.x vs. 4.x chart to see how your process will change (and even improve!). Next you’ll also find recommendations for Drupal modules and external programs that will make your life much easier.

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

    Quick install with FTP

    The following is a simplified guide to create a Drupal site in a few easy steps. You can read a more detailed version of these instructions, or check out the installation troubleshooting guide if you need some additional tips.

    To follow these steps, you will need an SFTP client such as, WinSCP or FileZilla, and a web server that meets some basic requirements (e.g. a web server such as Apache, a database such as MySQL, and PHP). We'll begin with the steps for a Drupal 7 install, followed by Drupal 6 (they are very similar).

    Drupal 7

    Step 1: Download, Extract, and Upload

    • Download the latest version of Drupal 7.
    • You will get a file called drupal-7.x.tar.gz. Extract the compressed files.
    • Log into your server using your SFTP client and navigate to the web root directory. Upload all of the files inside your Drupal folder into the web root folder on your server.

    Step 2: Create a database

      Pages

      Subscribe with RSS Subscribe to RSS - how-to