"Entities" is the term that in Drupal 7 is used for nodes, comments, taxonomy terms, and users. Third-party modules can then define new entity types.

learn more… | top users | synonyms (1)

0
votes
0answers
14 views

Entities, Views and frontend creation/edit - a concept question

I'm a casual Drupal-Developer and stumbled upon this problem several times: You have any kind of entity, lets say a node, and want the user to fill in field values with a form in the frontend. I.e. ...
0
votes
0answers
9 views

How do I populate an email field from a single user “Name” reference?

I have a content type in which I use an entity reference to reference a Name field in a user account. I am trying to populate an email field in the content type with the email of the entity referenced ...
0
votes
2answers
17 views

Can I add to an existing Entity schema from my own custom module

I'm extending a the Quiz module; by having taking extra data regarding the test . For this I have a custom module that redirects using a custom form . It all works fine but as its only a single ...
0
votes
0answers
12 views

How to print the url of a referenced entity

I have an entity reference field. The view mode of this field I can set to 'Label', 'Entity ID' or 'rendered Entity'. But I need the url(alias) of the referenced entity. How can I get it?
0
votes
1answer
31 views

Entity metadata wrapper - how to get field value, NOT key

I hhave field_something which is a select field with multiple options: key1|Value 1 key2|Value 2 I'm trying to get the value of this field using the Entity metadata wrapper. ...
-1
votes
0answers
5 views

Entity form submissions results access

Anyone any idea how to give access to entity form submission results page to entity referenced user of that particular entity form? Thanks
0
votes
2answers
36 views

Create user in Drupal 8 but password not working [closed]

I tried to create user in Drupal8 using entity_create. The user is created just fine, but I can't login with the password unless I change it from the admin page. $authData['name'] = 'testuser'; ...
0
votes
0answers
10 views

Create user in Drupal 8 but password not working [duplicate]

I tried to create user in Drupal8 using entity_create. The user is created just fine, but I can't login with the password unless I change it from the admin page. $authData['name'] = 'testuser'; ...
2
votes
1answer
25 views

Getting the number of Flood events within threshold?

The FloodInterface has 4 methods: register - which adds an event clear - which clears an event isAllowed - which checks to see if the number of logged events is greater than the threshold ...
0
votes
1answer
24 views

How to set up registration for event with parallel sessions?

I would like to set up the registration for an event. During the event there are various parallel sessions. (I was thinking in using the entity registration module) Needs / problems encountered: The ...
0
votes
0answers
12 views

Redhen and Salesforce suite integration

Greeting!!, Recently I had a project to integrate RedhenCRM with Salesforce in Drupal 7. So I used Redhen module and the Salesforce Suite which worked like a magic. I was able to sync Salesforce ...
1
vote
1answer
29 views

Saving values of a multistep form into custom entity fields

I'm building a module that implement a multistep form based on a custom entity. The entity contains fields which are created by the install file. I was able to create the steps and if I print the ...
0
votes
1answer
24 views

Field Collection vs. Entity View Modes with Field Group

I have been using Entity View Modes to organize my fields, have different display types, and use Field Groups to add bootstrap-style wrappers around my content. As often as humanly possible, I have ...
0
votes
1answer
26 views

CKEditor not displaying in latest 8.0.x-dev version

After updating Drupal from version 8.0.0-beta7 to version 8.0.x-dev — to fix text_format fields not submitting their value due to a missing name attribute —, my field is now displaying as a basic ...
0
votes
0answers
6 views

List other entities along with node teasers in front page like view?

Seems like views can be either content or other entities but not both. I have the statuses module and statuses are entities how would I display them in a view like that of the front page along with ...
0
votes
0answers
9 views

How to add a table to a custom entity's build query

I created a new base entity type, with variations of entities that derive it. I want to override the build query in one of these variations so I may add some data from a supplemental table. My ...
0
votes
1answer
19 views

What can Menus do that Taxonomy cannot?

'Comments', 'Users', 'Taxonomy' are Entity Types because they each define their own sets of required fields. I am having a discussion with my boss where I am arguing that 'Menu' are really just a ...
0
votes
1answer
29 views

Storing data for every country for an interactive chart

I need to store one and possibly more values for each and every country so that I can populate an interactive SVG world map. This data will be updated often by hand by one of the content moderators. ...
0
votes
2answers
13 views

Possible to join different entity type on using EntityFieldQuery?

I am wondering whether I can use EntityFieldQuery to fetch all entities belonging to a specific content type. This entity type has a reference to another entity type. Is it possible to check against ...
0
votes
0answers
30 views

Adding a list of strings or entities to another entity

I need to be able to add a list of departments to an entity directly via the add form of that entity. Those departments don't necessarily exist in the application beforehand and could be strings or ...
0
votes
1answer
31 views

Entity form calculator in Drupal

I was wandering, is there anything like webform calculator for entity forms? Thanks
0
votes
2answers
24 views

output a referencing field in node tpl

In a node type hotel I have an entity reference field to a node type offer. For the offer node.tpl I need to output some fields of the referencing node type hotel. I have no idea how to get these ...
0
votes
0answers
31 views

Handle formatting of longtext value for entity wrapper

So I have a working setup where some code pulls in the latest Wikipedia extract of a page. I then use Entities to handle a node creation, adding the contents of the extract to the longtext value of ...
0
votes
1answer
15 views

How to render Entityform submission (entity) without DOCTYPE and HEAD tags?

I need to render entity as a part of page instead of individual page. By this I mean I want to able to render it without DOCTYPE declaration and HEAD tags. Typically this could be done within ...
0
votes
0answers
42 views

Saving form fields on custom entity

I'm having problems saving my custom entity to the db. I created a custom entity called 'review' using hook_entity_info() with a custom controller. I have specified some parameters in the controller ...
0
votes
2answers
36 views

How to calculate the sum of the values of a multi value field without page reload

For a content type with a decimal field with unlimited values (rows), how can I have another field in that same content type that shows the sum of all of the decimal values from the multi value field? ...
0
votes
1answer
32 views

Custom Entity Not Showing in View Creation UI

I started learning Drupal 8 this week. I followed this guide to create a new entity, which I then made available through REST using the following tutorial: ...
0
votes
0answers
24 views

CSRF Validation Failed On Creating Node

I am connecting Drupal Services to iPhone. On sucessful Login i am getting session id , session name,token . Then I want To create node . I am posting token value in X-CSRFToken and ...
0
votes
1answer
23 views

How do I programmatically add a field to an existing fieldset that's part of the user entity?

I'd like to know how to add a field to an existing fieldset in a user entity I've seen this example: Add Fields to Field Group programatically http://drupal.stackexchange.com/a/71902/1082 $groups = ...
0
votes
1answer
18 views

Get value of field attached to the file entity in a view

I extended the file entity of type video, which ships with the media/file_entity module, with an extra field "tags". How can i get the values of this attached field in views?
1
vote
1answer
26 views

Get all entities tagged with term

taxonomy_select_nodes returns all the nodes tagged with a given tid. This function checks the taxonomy_index table. That table stores the tid and the nids on which it is tagged. Let's say I have ...
0
votes
1answer
24 views

What does exacly mean by Entity CRUD API?

Here in the documentation comment for entity_export() says: Note: Currently, this only works for entity types provided with the entity CRUD API. So, what does it actually mean? Background info: ...
0
votes
0answers
23 views

entity_create always returns False

I'm stuck with trying to get my head around entities, and as I was following This tutorial, I ran into some troubles with this page callback method: $projects = entity_load('project', array(1, 2, ...
0
votes
1answer
33 views

add field in admin>content that show if entity is translated

I'm looking for a field that i can add in the admin>content view. I want to know if the entity (News items) is translated or not. (Dutch(default) and English) Now i always have to click edit article ...
0
votes
2answers
85 views

How to load a taxonomy term (or entity) by field value?

To load a taxonomy term programatically you can use EntityFieldQuery. <?php // Get taxonomy term by field value $section_vocab = taxonomy_vocabulary_machine_name_load('section'); ...
1
vote
1answer
48 views

How to render a contact form in a theme

I am looking for a way to display the side-wide contact form in a block (through my .theme file). Using this code won't work (as contact_form is not a content entity?): // get default form // get the ...
1
vote
1answer
38 views

Insert several lines in field collection programmatically

I have a problem with field collection and entity reference fields. I have a field collection called 'field_co_intervenant' and i want to add several entities in this field collection and after saved ...
0
votes
1answer
62 views

Send a form to twig template in Drupal 8

How I can pass a form to twig template in Drupal 8? For example, I get this: a form: mymodule/src/Form/MyForm.php Then on my Controller: public function myController() { ?????? return [ ...
0
votes
1answer
15 views

How to render protected element?

I want to print [entityInfo:protected] present in below image. I am able to print all element except [entityInfo:protected] and [entityType:protected]
0
votes
0answers
20 views

How do I properly define the widget for a file field attached to an entity type? [duplicate]

I'm creating a custom entity type and trying to add a file field to it. Amongst other field definitions I have the following in baseFieldDefinitions(): $fields['file'] = ...
0
votes
0answers
8 views

How to validate user inputs for an entity which uses fields created by the Field Manager UI

I have successfully defined a new entity and made it fieldable. I can the display the form using the field_attach_form() function. My issue now is that I would like to validate the user inputs. When I ...
0
votes
1answer
11 views

How to create a new entity that is fieldable

I am currently learning how to create entities in Drupal 7. I have successfully defined a new entity and made it fieldable. My question is how do a create a new instance of that entity? I understand ...
0
votes
0answers
18 views

Latitude/Longitude processing to avoid Null Island entries

I have to display some 8k points on a map rendered by a view on my site. Since those locations will be updated quite often i decided to use a custom entity (lets call them "Structures"), so i could ...
0
votes
1answer
35 views

How do I get a field translated in Drupal 8

I have a multilingual site in Drupal 8, and several node, some translated and others not. As I can programmatically get the translated field or by default they give it back from the original language. ...
0
votes
1answer
21 views

How to remove delete link from admin manage fields ui

I have created a new entity type and progamatically added the fields it requires. My issues is that on the Manage Fields UI (the same interfaced used for managing fields for basic pages/articles), in ...
0
votes
2answers
32 views

Computed field that displays the full username of the author

I am using a computed field and I want to display the field_first_name and field_last_name, which are properties of the user that created that node. I have been trying things, but it seems like ...
1
vote
1answer
22 views

Add fields to entity in module update

I'm using Drupal 7 and I have a module which has working implementation of the Entity API module. In my_module.install file there is a hook_schema() in which I defined table columns: ...
0
votes
0answers
24 views

Drupal 7 Create a new account for an anonymous order only for commerce license orders

With Drupal 7 using Rules 7.27, I've installed and set up Drupal Commerce with no real problems. The rule ‘Create a new account for an anonymous order’ works well but I need to add a condition that ...
0
votes
1answer
14 views

How to translate entity in the views footer

I am creating a multilingual site. I have views and when it was created, I added to the footer entity (node/22). Next, I created a translation of this content and now changed id (node/45). How to ...
0
votes
3answers
93 views

How to problematically display an image field in Drupal 7 + default value when needed

I've used field_view_field to display an image field for a specific entity in Drupal. The problem is when that entity doesn't have any value for field. I expect field_view_field to display the default ...