Articles
Fields
Custom node routes
Sometimes it can be handy to have extra pages for a node (or any entity). For example:Read article →Entity Extra Field module: display blocks & views amongst fields
I'm a fan of configuring things for display through Drupal's admin UI. It gives site builders confidence and power. What if you want to place blocks or views listings in amongst fields on pages of content? For example, to display:Read article →A recipe for editing & translating over 100 fields
I recently released a new contributed module to aid translation on Drupal 7 sites: Entity Translation: Separated Shared Elements Form (ETSSEF). Yes, it has a convoluted name! It finally resolves a suggestion from years ago in an Entity Translation project issue, to allow…Read article →Language lessons: What are you translating?
It seems an obvious question to ask, but what are you translating?Read article →Drupal 8: Creating a custom field - Part 3: Field formatter
This is part 3 in my series of articles about creating a custom field. I recommend reading Part 1: Field type and Part 2: Field widget first, if you have not done so already.Read article →Drupal 8: Creating a custom field - Part 2: Field drupal widget
This is part 2 in my series of articles about Drupal widgets, and specifically creating a custom field. I recommend reading Part 1: Field type first, if you have not done so already.Read article →Drupal 8: Creating a custom field - Using a custom field
Having written articles on how to create a Drupal 8 field type, field widget and field formatter I thought that now is the time to explain why you might want to create a custom field type. More specifically, why I have created a custom field.Read article →Drupal 8: Creating a custom field - Part 1: Field type
I have been experimenting with the Alpha release of Drupal 8 and so I'm sharing some of my experiences so that you can avoid the pitfalls I have encountered.Read article →Place blocks inside your content with EBA
Previously on this website I have written about rendering blocks programmatically and adding things to content to be managed alongside fields. It's time to combine the two! On many projects, we find ourselves needing to render a block consistently across all content of a…Read article →Custom add another
Drupal 7 fields are great, but using multiple valued fields and field collection you can quickly reach the point of having a form that looks like this:Read article →Add stuff to a node and configure it like fields
UPDATE: The Extra Field and Extra Field Settings Provider modules facilitate doing this sort of thing in Drupal 8. Read on for older Drupal sites, and for the concepts behind this.Read article →Rendering Drupal 7 fields (the right way)
(We have a Drupal 8 version of this article now too!)Read article →Changing Display Suite fields in update hooks
We've been using Display Suite with Node displays on one of our latest sites. It was an experiment, and possibly not something we'll do again - DS offers some great functionality with build modes and ways to re-arrange fields and all sorts on nodes, but since we end up theming…Read article →Creating new field formatters in Drupal 7
Creating extra field formatters in Drupal 7 is fairly simple, but it can take some poking around in the new Fields code. So here is some sample code to make it easier for you! You can add formats to your own fields -- or existing fields that are defined by other Drupal modules.…Read article →Certified to Rock field
Certified to Rock is a site that allows you to look-up Drupal.org user names, and see their 'certified to rock' score.Read article →Ensuring a CCK field has unique values
Super quick one this: say you have a CCK field on a particular node whose values you want to ensure are unique across all nodes on your site, you could write yourself a nice little helper module, or some PHP directly into the CCK field validation section of the admin form, but,…Read article →Let's talk
Got a project in mind?
You'll talk to a developer, not a salesperson.