"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
1answer
3 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
9 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
20 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
13 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
9 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
11 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
11 views

Mailchimp subscribtion form error [closed]

I need to use mailchimp subscription in my site. I added all the details in back-end and created a content type with mailchimp subscription field. While i am creating a content with these content ...
0
votes
0answers
10 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
12 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
42 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 ...
0
votes
1answer
8 views

(Rules) In Rules, is it possible to access the fields of a referenced entity of an entity?

I've got this scheme: entity person, bundle person, entity health, bundle health. Bundle health has field energy. Bundle person has an entity reference of type health. In Rules data selector, I want ...
1
vote
2answers
31 views

Memory Time-out

I am saving a lot of entities as part of a script - several thousand. This is frequently causing out of memory errors. I've been trying to do something like this: cache_clear_all(); ...
1
vote
1answer
17 views

Change values of nested fields with entity_metadata_wrapper

The background of this question is that I'm trying to migrate data from Drupal 6 Imagefield Extended to Drupal 7 File Entity (with File Entity Inline). See also https://www.drupal.org/node/974888 ...
1
vote
0answers
14 views

Any benefits for using fields as opposed to properties

I have a module that pulls data constantly from an external source, from up to thousands of different items with over 50 properties. The data is being collected every 15 minutes. The problem is that ...
0
votes
1answer
24 views

Views load the whole entity even though they only need 3 fields

I am using Views to fetch the 3 fields of a specific entity. However, this leads to the view to make a full load of the entity and all the images included in it, even though they are not displayed. ...
0
votes
0answers
6 views

entity view behaves differently

$entities = entity_load('node', array($nid)); if (!empty($entities)) { $render_array = entity_view('node', $entities, 'teaser', NULL, TRUE); print $content = ...
0
votes
0answers
9 views

Trouble adding pager to the nodeview page in Drupal 7

I wish to careatea pager for a mynode(custom content type) list theme page. The requirement looks similar to Sortable, paged table retrieved using EntityFieldQuery. But I doubt I am running out of the ...
0
votes
1answer
16 views

Get all fields connected to an entity

I am trying to figure out the structure of a fieldable entity. I can see the main table in to install file, however it has various fields attached to it. How can I get an grand overview of the ...
2
votes
2answers
58 views

How to display specific nodes in an EVA based on common taxonomy

I am trying to display nodes in an EVA, attached to a node type that shares taxonomy. The EVA passes the node ID to the EVA, so I have a contextual filter, but am having trouble figuring out how to ...
1
vote
1answer
32 views

Entity Reference - Auto complete field in content type

I had an issue before (please click here to see it) related to entity reference and I was able to solve it with no problem. Now I have another issue: I have 2 content types called projects and ...
0
votes
1answer
22 views

Get Views object from entity template

I have a Views, that renders nodes as "Rendered entity" with custom display mode - "cover". In template (or preprocess function) for this specific theming case, I need to get the Views object, that ...
0
votes
2answers
23 views

How to change the date format for date entity field

I created an entity with date field. Currently the date is being output in the format "mm/dd/yyyy": How can I use the format "dd.mm.yyyy"? I couldn't find any settings, related to it, in the field ...
0
votes
0answers
19 views

Updating a profile2 with 0 field collections using Entity metadata wrappers

I have a profile2, with a field_collection that can have unlimited multiple values. I programmatically update the profile2 from external data, and it could be the case that for the field collection ...
1
vote
1answer
100 views

Creating a page per bundle

I am trying to create multiple bundles for a given entity. However, when I'm doing this, all of my manage field and manage displays are on the same page, and it doesn't appear like any of the other ...
2
votes
1answer
29 views

Creating an entity with an unlimited number of bundles

So I want to create an entity that can have as many user-created fieldable bundles as possible. My first thought was to look at the Profile2 module, however I notice that there appear to be two ...
0
votes
0answers
31 views

Retrieving entity data in views with dynamic (per-row) relationship

I have custom entity 'entitystatus' that holds 'entity_id' reference and 'entity_type' field. Now I need to build a view that will display Entity statuses attached to different entity types (i.e. ...
1
vote
1answer
34 views

How i can use entity_metadata_wrapper for new database entry and update data in Drupal 7

How i can use entity_metadata_wrapper for database entry and update data in Drupal 7 I am using below code to save entry in database but not finding logic to update existing entry $node = new ...
0
votes
0answers
23 views

Making a list of content fields

I am making my first Drupal site and I have a problem. Little background: On the site users can register for events. These events are listed by different organisations. A user can choose which team ...
2
votes
2answers
31 views

Get tid as integer from tid array returned by EntityFieldQuery

I am using an EntityFieldQuery to return an array of taxonomy terms matching a provided custom field value. Using the example given in this question, I wrote a function that accepts the vocabulary, ...
-2
votes
1answer
29 views

How to display author name and post date in entity view page?

I am using Entity Construction Kit module. Thanks.
0
votes
0answers
15 views

Product thumbnail in custom block wont generate if on same product page

I have an issue with a custom module I have created to display contents of the cart in a popup. I appear to have it all working apart from the thumbnail image of a line item not generating if viewing ...
0
votes
2answers
24 views

Equivelant of node_type_load() for entity bundles

If I know the entity type and bundle, I want to load the bundle object with its settings. Drupal core has this for nodes, but is there any way to do it for entities? See node_type_load() in core: ...
-3
votes
1answer
32 views

“Entity Content” not available in views UI [closed]

I have installed Eva module (7.x-1.2). I can't see Entity Views attachemet section on my views screen. I want a replicate what is described in this video for creating galleries. Its 2:30 mins in ...
0
votes
0answers
35 views

How to show the parent node and their node children fields in one eva view @ parent node

I am trying to show some fields from parent and child nodes into an eva view that is attached to the parent view but I am confused and I am almost pulling my hairs out of my head because I guess it ...
0
votes
1answer
18 views

Creating muliple nodes from one page

I want to create multiple nodes from one page where I input one or two values into each entity, where each of the entities has a reference. Example: If I had three kids, I would measure their height ...
0
votes
0answers
11 views

ECK bundle paths

I would really like to integrate the bundles I have created with ECK with other modules which offer additional functionality for entities. The problem is that when defining menu items for entities ...
0
votes
1answer
17 views

how do I add check boxes in form created with the Registration module?

I am getting a radio button in my form as default, but I want a checkbox. I am using the Registration and the Entitiy Registration modules. How can I do that?
0
votes
0answers
29 views

Using a different local non-Drupal database to store entities?

So we have a simple mysql database that stores information about people, which is used by multiple sites on our environment. I'd like to use entities to interact with this database, but I can't figure ...
1
vote
1answer
22 views

What are valid entity_id and entity_type values for node content?

I'm trying to track down some performance issues on a Drupal 7 site where out of nowhere the site will stall rendering content or dealing with administrative duties like updating a piece of content. ...
0
votes
1answer
17 views

Flagging Referenced Entities

I have two node types (one is galleries, one is images). The node types are referenced to eachother via entity reference (which is providing a field on the image node which references a gallery). I ...
0
votes
0answers
29 views

Referencing ECK custom entity using entity reference from content

I am currenly working on quite a complicated project which I have decided to take a different approach to building. The site is complex in that there are 3 different themes. 2 seperate sections stand ...
1
vote
0answers
28 views

Save entity object only if modified

When calling the save() method on an entity, the timestamp value for last modified is always updated, regardless of whether the entity was actually modified. Is there a way to check if an entity ...
1
vote
1answer
43 views

Do I need a custom content type, entity, module or field?

I'm working on a product information manager, and I have a content type of product which needs to reference stock and price levels for each supplier from a different database - these are stored as ...
0
votes
0answers
33 views

Drupal architecture best practices

I have several custom entities, about 8. Each contains information about a given subset of data. Currently, this is being created by filling 8 different tables with data from an API and exposing it ...
0
votes
0answers
34 views

Boolean view filter based on custom property of entity

I've been trying to create a view filter for a custom entity (named: game). The entity is stored in the database and declared with hook_schema. I need to filter a view of the sum of game entities ...
0
votes
1answer
54 views

Basic “empty” entity type?

Is there a module that provides an empty entity, to which I can add my own fields. I guess it would include just an Entity-ID as a primary field, and work with other entity modules. For me, nodes ...
0
votes
2answers
54 views

D8: Best practice: Linking content types

I would appreciate suggestion for this common scenario in Drupal 8, which may be different to how I do it in Drupal 6. I don't want to do any programming. I have two content types: (1) Articles ...
1
vote
1answer
14 views

How to attach a database of data to a content / entity type

I have an sqlite database representing a collection of Foo which is immutable. I would like to be able to take this collection of Foo in the GUI of Drupal, and append a few fields onto each Foo ...
0
votes
0answers
17 views

How do enable panelizer support for a custom entity?

I've programmatically created an entity. I'd like to panelize it. What plugins do I need to write to accomplish this? Thanks!
2
votes
1answer
36 views

How to use CiviCRM Entity for searches with Facet API

I am trying to create a faceted search on CiviCRM contacts. I have created an index using the Search API module and the Facet API module, but currently the CiviCRM contacts can only be indexed on ...