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?


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?

40% (2 votes)
60% (3 votes)
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?


  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.


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
GloolsGuan's picture

Drupal 7, Entity 研究与点评

Entity 是drupal7 的一个特点,统一了drupal6关于内容类型的操作,确实是一个不小的改进,可这个世界就是很奇怪,事情没有完美,改善也问题百出。


  1. 所有的数据类型都是主数据表和附加字段(attachedFields)的结合形式。这其中包括node, user, comment等。所以在DrupalDefaultEntityController中,默认有“attachLoad”方法。再深入分析,在drupal系统中,任何的(这个说法未必准确,但是包含node,user,comment这三种数据类型)数据类型,都会有附加字段处理操作,包含读取、缓存、写入和修改。其次”attchLoad”方法并不做具体的load工作,只是按照一定的规则执行hook函数。 ...


Read more
Subscribe with RSS Syndicate content