UC Berkeley Statistics

UC Berkeley Statistics homepage design

Black Antelope was chosen to redesign and migrate the Statistics website at UC Berkeley. The Department of Statistics at UC Berkeley was one of the first established centers in the US for statistical research, and has one of the top two statistics graduate programs nationally.

Sectors: 
Education

Understanding the Entity Reference Field and How to Customize it

Introduction

I'm trying to create a custom version of the entity reference field and have been working through the code of the base type to figure out how it is working. Originally this was going to be a question specific to how are the content type checkboxes populated in the settings form (edit tab) when adding/editing an entity reference field to an node. Though, in the processes of writing the post, I think I figured that part out.

Update hook howto

If errors appear I often read something like "simply add an update hook". Unfortunately it isn't clear to me how to do this exactly. So I would appreciate any tips.

Twig + testing a string field value

Hi All,

Been beating myself up with for a few hours, so decided the best thing to do might be to post something.

I have the following code:

Upgrading D7 to 8/9. The struggle is real.

Hello,

I have a large Drupal 7 system that I built and maintain as my primary job.  Dozens of content types, many custom modules and a couple hundred thousand nodes.  The system is used by a couple thousand staff members of a regional school district.  I'm now faced with the looming challenge of needing to upgrade to Drupal 9.  I have begun this endeavor several times before and have found it to be an Everest challenge and have put the task aside in hopes that maybe I'll die before I have to do it which would save me a lot of stress.....

Permission

I have a user authorized to enter and modify the nodes he owns.
In the view of this content type I show the links for insertion and modification. So far, so good.
Now I need to check, based on a logical field if it can modify the node.
Ex .:
The content type has a logical field. If this field is false it can modify. If true it should hide the link to the edit (in the views), or in the form check this and prevent it from editing.
In the various readings I have done I have found this code but it does not work for me

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x