"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 (2)

0
votes
0answers
9 views

How to create a Webform using Rules?

I have been experimenting with the Webform Rules module however I cannot find a way to create a Webform using only Rules. In Rules there is an action for "create entity", however Webform is not one of ...
1
vote
1answer
18 views

required modules by translation management tool (tmgmt)

I read the description for the translation management tool (tmgmt module) and I found that it needs more modules to be pre-installed to make it work. I'm wondering what are those modules do ...
0
votes
0answers
18 views

Fatal error: Class name must be a valid object or a string in …/common.inc on line 7924 on drupla site migration

I am migrating a site hosted on on Drupal 7.22, apache 2.2.22aa and php 5.6.9 from one linux server to another lunx server. I did a back up of mysql and apache htdocs folder and extract it on the ...
0
votes
1answer
19 views

How to enable tokens for custom entity?

I had the impression that in Drupal 8 all entity tokens are provided automatically since it uses the new field structure but I don't see anything available for my entity. Do I need to enable ...
0
votes
0answers
9 views

Pick up field collection within another field collection

I'm trying to pick up a field collection value within another field collection. The parent field collection, I can pick up the values just fine, but it's the collection within the collection I'm ...
0
votes
0answers
12 views

Using entity_metadata_wrapper() and dpm() in node template causes subsequent nodes to return empty values

I've create a view which displays all nodes with content type location. This view renders the node using it's teaser display, which I've created a custom node--location--teaser.tpl.php for. In this ...
0
votes
0answers
5 views

What is the correct way to create a new profile2 entity and provide fields for that entity programmatically?

Using my module, I want to create a new profile2 profile. The hook obviously is hook_default_profile2_type. I created that profile in my custom module's .module file and it works as expected: ...
3
votes
1answer
82 views

How to get the nid for a newly created node?

If I've created a node in an install hook, how can I immediately get a reference to the nid property? It doesn't appear to be set on the entity during save. use Drupal\node\Entity\Node; function ...
1
vote
1answer
23 views

How do you go about using contexts and a menu page callback?

Currently we have a page that is generated by a hook menu page callback. The path is structured like menu/%location_name/menu/%parent_category/%child_category. The function requires at least one of ...
0
votes
1answer
16 views

Drilling down into an Entity Reference Field in Rules Actions

I have the following setup where I have 2 content types called BRIEFS and IDEAS. On BRIEFS, I have a list of users selected in a field called brief_recipients which is a user reference field. IDEAS ...
0
votes
0answers
10 views

Problem setting custom theme on Drupal Commerce checkout pages

I implement hook_custom_theme() to use a couple different themes on my site, for example: A store theme for commerce-related nodes, product displays, cart, and checkout. A blog theme for blog posts. ...
1
vote
1answer
34 views

How to make vertical tabs display on a custom entity?

I have a custom entity in Drupal7 created using the Entity API. I am attempting to make it work with the meta tag module. I have added 'metatags' => TRUE to hook_entity_info, and metatags ...
0
votes
1answer
15 views

Entity operations and redirect destination (using EntityListBuilder)

I have an entity collection page that's built with my own subclass of EntityListBuilder. My problem is that the operations links do not set a redirect destination, so after clicking e.g. on an edit ...
0
votes
0answers
11 views

Token: How to get a field value of a book root's node (for auto entitylabel)?

I want to set a node title automatically. Part of that node title should be a fields value of the top level book node (book root). I tried [node:book:root:field-synonyms:0] to get the first value of ...
0
votes
1answer
12 views

entity_load failure: Adding revision capability to entity with existing data and unticking “create new revision” still creates a revision

I am having trouble with entity_load returning an empty array on an entity api custom entity which previously was fine. The only change I've made is to add revision support which apart from creating ...
0
votes
1answer
27 views

How to set Link field value via entity metada wrapper?

I'm using Link field. I need to populate link field programmatically. Currently I'm using EMW a lot, so I'm wonder if it possible to set Link field value via EMW.
2
votes
1answer
19 views

Entity Translation and Field Collection

Entity Translation exposes a checkbox on fields, entitled: Users may translate all occurrences of this field When dealing with a Field Collection field, which of the following should I check the ...
2
votes
1answer
26 views

How to code custom entity to access more than one database table?

I have an entity that uses two tables, when I describe it in hook_entity_info() as far as I know I can only tell it about the base table. The base table is subscriber, I also have a table ...
1
vote
2answers
40 views

Show Entity Reference items as table

I have two Content Types (Country, City). I want to display full contents of City in Country, so I did like this: - create a field in World Content type - set this field as entity reference (City). ...
0
votes
0answers
16 views

Entity Translation problem

I got problem with entity translation. I have three content types, all of them have the same settings,I can translate two content types, but when I translate third one, it changes content on the ...
1
vote
4answers
92 views

Change Entityqueue autocomplete to an entity widget

I have an Entityqueue and whenever a user wants to add an item to queue, he/she should write part of title in Autocomplete to add it to queue. I want to change this autocomplete with a widget that ...
0
votes
1answer
34 views

Array Flip Error Message on All blocks [closed]

After quering node ids from database, I am using node_load_multiple to load all nodes. print_r(node_load_multiple($node_id)) gives me Array ( [6] => stdClass Object ( ...
1
vote
0answers
11 views

How to preserve formatter settings if the field gets hidden

I have a field formatter that has a setting. This setting is not available via the UI(\Drupal\Core\Field\FormatterInterface::settingsForm()) and is configured programmatically(in the display or when ...
1
vote
1answer
13 views

schema_fields_sql empty on entity_get_info

I'm trying to debug why Drupal Commerce License Billing isn't working on existing install but works fine on fresh install. The difference I can see between the two when adding a new billing type is ...
3
votes
1answer
24 views

Disable caching for custom entity

I have set up access to some custom data by creating ContentEntity classes in my module, so I can query and display that data through Drupal entities. However, that data is also updated by a ...
0
votes
1answer
47 views

How to create openInvite for event in drupal Commons

I am working in Drupal Commons and my idea is invite friends list for event just like FB, Twitter and etc.How to achieve it..I installed invite module for event section.but i couldnot achieve it.Here ...
0
votes
2answers
24 views

Entity view displays are throwing dependency errors during installation

I have a custom entity in my module. During installation I am creating a bundle for this entity. Then in the config I have two entity view displays for this bundle. One of those displays is for the ...
0
votes
1answer
26 views

Custom Entity API does not give individual fields in Views, only (sometimes information-less) rendered entities

note: I'm currently exploring hook_entity_property_info_alter and clearing the cache forcibly by truncating the cache table as I've had many iterations of work on this over the years. (Though I ...
0
votes
1answer
55 views

How to add values to field collection fields within user profiles

I have a field collection that contains several other fields (text and taxonomy reference) for collecting and unlimited number of addresses. I have added this field collection to user profiles. This ...
0
votes
0answers
32 views

Creating an entity programatically with an image field

I know that with the entity module I can create entities simply with entity_create() and I can access simple scalar fields with just the ->value(''); method. However, how would I go about ...
0
votes
0answers
6 views

Listing of entities linked to a node X in the edition form of that node X

I have 2 content types : Product Main Page and Product Sub-Pages. First, I create a node (Product Main Page). Then I create my sub-pages nodes (Product Sub-Pages) and I link them to the Product ...
0
votes
0answers
11 views

Translating Entity Types Values

I am using entity types for hierarchic relations like: EntityType City -> contains many ET Districts -> contains many ContentType Apartment.. City: Vienna District: xyz Apartment: abc I can ...
0
votes
0answers
19 views

Custom entity api development adding a revision to entity lead to broken views handlers

(note: see extra info at bottom) I have a chain of entities which were joining together in Views nicely by defining their relationships as joins in hook_views_data_alter (note - I had actually used ...
1
vote
0answers
63 views

Drupal8 views broken handler with custom entity type

I'm building a Bet website a long test of Drupal 8. Thanks to drupal console I managed to create a lot of custom entity types. Now I want to expose my entity to views but I get this message; One ...
0
votes
1answer
37 views

Unexpected Entity Reference Autocomplete behaviour

I'm using Entity API, Form API and Entity Reference Autocomplete in Drupal. I have a relationship between two types, clubs and courses, each club can have many courses so basically the table course ...
0
votes
2answers
20 views

Preview option for entity registration form

Is there a way to display preview before submission using Entity Registration? Similar functionality as there is with node submit option. So that user can make changes if anything is wrong.
0
votes
0answers
33 views

How to use fields in node's comment in a node's Computed field?

I'm new in php and I'm stuck with this. First problem, In a computed field of a node, I would like to use fields that are in the comments of this node. I don't know how to get access to comment's ...
0
votes
0answers
20 views

How do I display links based on user's role and reference?

I am building an evaluation platform in Drupal using either entity forms or webform. Attendees will evaluate the course, instructor, and location of the lab/site. "Entities" are: courses: which is ...
0
votes
1answer
45 views

Slow AjaxResponse for node content

I am using Drupal 8 so there is very little documentation or benchmarks, but I believe a route I have set up for ajax responses is not as performant as it could be. This is the route: next_node.ajax: ...
0
votes
1answer
23 views

How to make view mode available only to selected bundle?

I have three taxonomy vocabularies which means that I have three bundles of the vocabulary entity type. I have a few view modes for them and one of them has to be available only to one of those ...
0
votes
2answers
27 views

Drupal 8 Custom Entities from a UI?

Does anyone know away to create custom entities from Drupal 8 UI that is not ECK? I try it out using ECK and still a little bit buggy.
0
votes
0answers
9 views

multilingual language site (Drupal) entity reference

I am working on multilingual language site (Drupal) I would like to get data depends on language can I know how to write query using Entity Reference ?
0
votes
1answer
49 views

How to setup Advanced Content Filter to not remove drupal-entity tags?

I use CKEditor to create content. And Media Plugin to upload and manage images. Now I have a problem that as soon as I activate Advanced Content Filter in CKEditor settings, my images are removed. I ...
0
votes
0answers
19 views

How to get the list of fields for an Entity?

In my Drupal site I am using the Field and Entity modules to define fields like company, address and telephone number for the User entity and sync these with the LDAP data in the LDAP SSO/Auth module. ...
0
votes
0answers
14 views

How to fix this issue in drupal7 using windows [duplicate]

How to fix this issue ? Fatal error: require_once(): Failed opening required '/var/www/.../includes/sites/all/modules/entity/includes/entity.inc' (include_path='.:') in ...
0
votes
1answer
36 views

Create custom entity type programmatically

maybe my title is not correct but I have written a module that creates a new entity. Now I would like to create a few of these entities on hook_install. I can create a new entity, that's not the ...
0
votes
2answers
28 views

How to save a new term with multiple fields while adding content?

Not only do I want to add terms as I create content through the UI, but I want to add terms that have multiple fields (i.e. more fields on the taxonomy besides the 'Name' that populates the list). How ...
0
votes
1answer
35 views

How do I get Rules to see my custom entity?

From what I've read in the past few days, Rules will gather all information it needs from hook_entity_info. I still can't get my custom entity to appear in the data selector to make things work ...
0
votes
0answers
11 views

Entity reference : Populating comma automaticaly

I want to add comma after each value is get selected. Means, I don't want to do it by the user. The comma should be populated automatically after the value get selected. Can you please help me to what ...
0
votes
1answer
19 views

Theming custom entity created with Entity API: accessing entity's fields in template file

First of all let me say that this is my first project in Drupal and I am still confused, I apologize if my question is stupid. I created a custom entity in Drupal 7 using Entity API. The custom ...