Drupal Open Curriculum Initiative


The objective of this initiative is to create an Open Curriculum for new developers to come into Drupal and get trained in the various aspects of Drupal development. The curriculum is aimed at helping Drupal companies train new recruits in Drupal in a systematic and structured manner. The training is expected to happen through in-class sessions, self-learning, training exercises and finally on-the-job learning. The open curriculum is expected to be a framework that will allow the developers to build an understanding of the technology and then fill in details as they go through the process of training and working on projects. See more at https://groups.drupal.org/node/508323

Drupal8: HOWTO detect whether an entity reference field is a taxonomy term reference and flag it for targeting in field.html.twig and your CSS

Now that the Taxonomy term reference field has been removed in favor of Entity reference it begs the question how one is supposed to specifically target taxonomy term reference fields in Twig templates and in your CSS.

The following (which currently involves checking for the existence of a particular method) may not be very pretty, but it works.

In your THEME.theme:

How to hide group settings on node edit forms

If you want to control how group members create and interact with group content through other means than the group settings on the node edit form (or just allow admin users to change what group content is in), it can be useful to hide that setting. One way to do this is to create a custom module and use this code that hides the form for all users except those with role id 5 (replace HOOK with your module name):

How to hide Group tab on user profile pages

Group creates a Group tab on all profile pages, listing Groups the user is in. If you want to change how users access group pages (and membership information) you might want to remove this tab.

Module code from file group.router.inc:


Subscribe with RSS Subscribe to RSS - Designers/themers