entity

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
vickey's picture

When is Custom entity needed in Drupal 8?

Drupal 8 core has entities like node, user, taxonomy..etc., which helps to process different types of data based on their usage.

Likewise, we can create custom entity to maintain structured data like customer data, inventory data, products data..etc.,

When is Custom entity needed in Drupal 8?

1) When there are requirements for huge number of fields.
2) When exposing data to different applications. The "UUID" generated will be used as reference for each entry to other applications.

Read more
grone2013's picture

Detectar entidad por url

Saludos compañeros y de antemano gracias por la ayuda.

Con la función arg() puedo hacer ciertas consideraciones sobre las rutas en drupal y hasta determinar el tipo de entidad.

¿Drupal tiene alguna función que al ingresar la url detecte de forma directa el tipo de entidad?

Gracias

Read more
mrded's picture

Module to track the logged in users who viewed the entity

Hi there,

I'm going to make module that will track the logged in users who viewed the entity.
With this module you will be able to make "People viewed your profile" block like Linkedin does.

What I need:

  • Relation user to entity
  • Store last viewing date
  • Integration with views

Does anyone want to stop me? :) Are there any modules that makes same thing?

Update: Too late, module is ready: Entity Visits

Read more
Strae's picture

How to implements View's relationships on a custom field?

Hi guys, I've created a simple custom field (via field api) that should "emulate" references, but allow to define the "reference" type (using a Taxonomy Term).

Basically, I have an entity_type (Company, created with eck module) that use my field to store employees, and the taxonomy term give me the employee type (commercial, owner, secretary, etc...)

I cant put taxonomy term directly in the user, becose a user can be an employee of two different companies.

Read more
iribarne's picture

Broward Drupal Meeting Minutes - November 13, 2013

We held our Broward Drupal monthly meetup on Wednesday, November 13th from 7:00pm to 9:00pm.

Remote participant(via Skype and Join.me):
Orlando - Debra Wilson, Patricia Mathews

In Person (Greater Fort Lauderdale, Broward County Florida):
Jay Epstein @jeppy64, Ricardo Reyes, Carlos Kosloff and me @hectoriribarne

This month Jay Epstein (@jeppy64) continued to share the entity-based approach he uses to build Drupal sites. He started off by showing how to theme a view using a global field to use html without having to edit any tpl.php files.

Read more
chris_hall_hu_cheng's picture

Do use your own custom entities when developing for Drupal 7?

Never
40% (2 votes)
Occaisionally
60% (3 votes)
Often
0% (0 votes)
What exactly is a custom entity?
0% (0 votes)
Total votes: 5
D34dMan's picture

Naming conventions for Entities and how to take take decisions while reviewing Project Applications?

This http://drupal.org/node/1603204 document on drupal.org sounds more like a guideline while developing custom modules for personal use or using the UI to create entities.

When i asked about entity naming convention in #drupal-contribute, xano told me that everything ( entity machine name ) should be prefixed with module name.

While checking a project application, it was found that it used "watchdog" as an entity name. Should it be allowed?

Should

  1. Is it a must that "Machine name of every entity declared by a module should be prefixed with the module name." ? Or,
Read more
D34dMan's picture

Naming conventions for Entities and how to take take decisions while reviewing Project Applications?

Sorry post got created twice. If somebody could delete thise. Please do.

Link to the other post is below.

http://groups.drupal.org/node/293813

Read more
TipiT's picture

Should I still use entitycache in Drupal 7 projects?

I have been using entitycache [1] without problems in D7. However I have not really measured lately does it really improve the performance and is there some issues? And what is the state at the moment about entitycache going to core [2] in D7 or D8?

What I am asking is:

  1. Should I use entitycache in projects of any kind? (Like using APC cache ALWAYS because it does not matter is there logged in users or not.)

  2. Has anyone measured the impact lately? (If it is in core it does not really make sense using it, right?)

Read more
Anonymous's picture

Entity forms

Hey guys i'm being bold here. But i couldn't figure out where to add D8 feature request so i thought i gave it a shot here.

I was wondering if what the pro's and con's are of making forms more entity'ish..

Why not make "all" the forms based on this form.entity type. Adding field (and thus widgets) would be a breeze (from a UI perspective). In core there are a few "fixed" forms like:
- the login form
- the contact form
- the password forget form
- the comments form
- the modules forms (like rating of add to cart)
- e.t.c.

Read more
Subscribe with RSS Syndicate content