Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
849 views

I have several views that I need rendered within pages. I have a field to pull in these views as blocks within the content editor, but I am running into an issue where the only display options for ...
Michele Smolensky's user avatar
1 vote
1 answer
275 views

How to allow access to a Drupal file/page only from a specific domain? I have tried php filter module but enabling this module can cause security and performance issues as it allows users to execute ...
pri2712's user avatar
  • 11
0 votes
0 answers
188 views

I'm trying to make a form with some fields and save the values in Drupal 7 where every user can enter their data. I tried creating a custom entity with an existing database table like so: ...
max's user avatar
  • 10.6k
1 vote
1 answer
874 views

Goal: Programmatically change value of string field from "1" to "01" using entity ->set() and ->save() When attempting to update a field on a node programmatically (via a custom module's cron hook), ...
user1620263's user avatar
0 votes
1 answer
136 views

I have an Ember application on the frontend consuming Drupal's JSONAPI. Drupal has the commerce module installed. The ember application is requesting all product_types, and needs to display ...
joshua.thomas.bird's user avatar
2 votes
1 answer
4k views

I am trying to Query all paragraphs of a certain type but I am not getting any output. Is my query right? Currently being returned an empty array. $query = $this->node->getQuery() -&...
J. E's user avatar
  • 443
0 votes
1 answer
441 views

I'm building a custom content entity in Drupal 8 and so far done ok. I've used Drupal Console to generate a module and a bundle-less entity for me and added custom fields to this entity using the GUI. ...
AlbionBrown's user avatar
8 votes
3 answers
17k views

Below is my solution with an example, that may help you. Update existing field $target_id = 62; $paragraph = Paragraph::load($target_id); $typeform_field = $paragraph->field_archtics_field->...
Debraj nayak's user avatar
0 votes
1 answer
2k views

In my Drupal project I have this error: Recoverable fatal error: Argument 1 passed to Drupal\Core\Entity\EntityViewBuilder::view() must implement interface Drupal\Core\Entity\EntityInterface, ...
Javier's user avatar
  • 393
0 votes
1 answer
659 views

Here is my situation: I am using the ECK module with Drupal 8 to create entities and bundles, and the new REST core module to create API features. I have installed the REST_UI module, and I enabled ...
schankam's user avatar
  • 11.9k
0 votes
0 answers
52 views

Where is the "Enable/Disable translation" value stored in the database? I haven't been able to find this info anywhere.
Keith Frey's user avatar
1 vote
1 answer
4k views

I'm trying to figure out how to get the path to an image from an entity in Drupal 8. I had thought get()->value would do it, but that just returns a blank string. I have a test function: function ...
PhotoKevin's user avatar
0 votes
1 answer
57 views

I am trying to hide a field based on what user is selecting from a entity referenced checkbox list but no matter what I do I cannot hide the field. I think some issue with the selector. $form['...
Neela's user avatar
  • 341
1 vote
4 answers
2k views

Creating a sub-theme in Drupal 7's page.tpl.php and needing to pull the value (plain text) from field_EXAMPLE from a custom content type outside of where the rest of the content would normal be. <!...
BVSK's user avatar
  • 143
0 votes
1 answer
182 views

I have an entity that has around 40 fields. When I try to save new fields/update exiting fields in the manage fields window, the save/post operation takes too much time (around 6 to 8 minutes). ...
perpetual_dream's user avatar
0 votes
1 answer
63 views

Question is quite simple: How to preserve file on server and in file tables, so its fid is still valid after unsetting/changing value with entity wrapper? $ewrapper = entity_metadata_wrapper('node', $...
Dainius Vaičiulis's user avatar
0 votes
2 answers
162 views

I have a content type that contains a field that is a reference to another node. I'm trying to include a field from the referenced node within the page for the main node, but I can't figure out how ...
Erich's user avatar
  • 553
1 vote
1 answer
308 views

I was under the impression that by removing fields from public static function baseFieldDefinitions that they would not be required anymore during trying to save the entity. My function now only ...
Mokugo's user avatar
  • 41
2 votes
0 answers
572 views

I'm new to drupal and I need some help. I created a new module with name user_extra. Which create necessery table when Installing the module. But I also need to insert some database field in '...
user3378018's user avatar
0 votes
1 answer
564 views

I'm new to drupal. I need to write a module that need to handle user related details. I'm able to create the module and add the necessery database changes in 'users_field_data' table. by using ...
user3378018's user avatar
0 votes
1 answer
2k views

I'm starting out with Drupal 8 and until now I have been quite impressed with all the new functionality. However, I have been trying to write my own entity and I'm running into trouble: This is the ...
DragonEye's user avatar
0 votes
0 answers
33 views

Need a drupal help. I have two content types, works and clients. When I'm adding a new work I'd like to include the client which the work was for, so I can display the client´s logo on the work ...
MasterD's user avatar
  • 75
2 votes
1 answer
2k views

How do I get a reference to the node/entity used to instantiate entity_metadata_wrapper / EntityDrupalWrapper. I could not find a getNode/getEntity or similar method in the EntityDrupalWrapper API ...
John Himmelman's user avatar
2 votes
0 answers
640 views

I created new entity, some sample entities and views using VBO table. "Delete" VBO action works well, but "Modify entity values" provides an empty form with "Next" button and "Cancel" link only. If I ...
Dmytro Sukhovoy's user avatar
0 votes
1 answer
2k views

I have Table A who has a foreign key referring to Table B. I want my form associated with Table A to have a select field whose values will come from Table B. I want the select field to have options ...
Randell's user avatar
  • 6,171
0 votes
2 answers
2k views

I'm a total Drupal Newbie, trying to understand the basic concepts of building hierarchical content. Let's say I'm building a website for a Music Label and want to represent this structure, should I ...
Yuval Goldstein's user avatar
0 votes
1 answer
971 views

Is it possible to hook on changes of entity references? Let's say I have a <- b and b <- x -> a. when a <- b changes to d <- b I want also b <- x -> a to change to b <- x -> ...
machete's user avatar
  • 1,157
0 votes
1 answer
1k views

perhaps you have an idea how I can solve the following problem. I rewrite a field-collection-field in my template.php to change the output. Therefore I just added a new var ($my_classes) which ...
jci's user avatar
  • 3
0 votes
1 answer
1k views

I use drupal 7, and Entity API to develope a module. I have an entity to record client information. I wish to use image_field to let client upload their logo. So I have this function: function ...
Helen Sang's user avatar
1 vote
1 answer
231 views

Please see the attached image below. I need to get the highlighted value via PHP and put it into one of my templates. I'm not exactly sure how this works, but this text is created as part of an ...
Dustin's user avatar
  • 4,479
2 votes
2 answers
4k views

I am using the entityform module to capture some user submitted data http://drupal.org/project/entityform I need to pull in some of the entity field values into one of my templates. I was trying to ...
Dustin's user avatar
  • 4,479
0 votes
1 answer
973 views

I am trying to use entity_extract_ids($entity_type, $entity) where: $entity_type = The entity type; e.g. 'node' or 'user'. $entity = The entity from which to extract values. I have never used this ...
caliHI's user avatar
  • 37
1 vote
2 answers
11k views

I'm using Drupal7. When i'm adding a new term in a taxonomy vocabulary getting the following error. "Entity Malformed excetion : Missing bundle property on entity of type node.in entity_extract_ids()...
Ranjani's user avatar
  • 153
1 vote
1 answer
175 views

I have read the tutorial, and the API, looked through the code examples. But when it came down to implementation, it didn't work as i thought it would. I am trying to avoid using the Views module for ...
user608672's user avatar
2 votes
1 answer
3k views

Lately I've been building a Drupal 7 module with the Entity API but I've run in to a problem. When debugging an edit form I've noticed that the load method is called twice which is causing an error. ...
Bart's user avatar
  • 433