entities

Events happening in the community are now at Drupal community events on www.drupal.org.
Caseledde's picture

Display Cache

A way to skip the render process of all displayed entities.

For a project, we needed a caching solution which is not time-based and deals with logged in users. So we can't use Varnish and the caching methods of Views and Panels.
During the developement we built a module called Display Cache.

The idea

An entity, which does not change, does not need to render again and again.

So we provide a wrapper function, which calls entity_view() and drupal_render() and caches the result.

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

Drupal 8: Multilingual and revisionnable entities

Referring to my document that tries to cover the topic on how to build a perfect multilingual / revisionnable system that allows to finally make content translation unneeded without regressions for typical advanced usecases in Drupal 8.

http://techblog.md-systems.ch/blog/2012-06-drupal-8-multilingual-and-rev...
It finally went bigger than intended, but couldn't find too much to strip.

Feedback as comments appreciated.

Read more
philippze's picture

Tutorial and API documentation

To learn the ECK faster by myself, I'm now trying to write a programmer's tutorial and an API reference in the style of the django documentation
https://docs.djangoproject.com/en/1.4/intro/tutorial01/

Are there good examples of modules using the ECK?

You can also help me with a hint about how to add and modify bundles using code. I didn't see anything about that in the existing documentation (but with mouseclicks, it's very simple).

Philipp

Read more
tedbow's picture

Exporting Entities to CSV(or other files)

I have written a new module Entityforms that allows user to create front-end forms that are entities. The submissions are also fieldable entities. I was wondering if there is a module that can export any Entity type, not just nodes and users, into csv files. I would want the ability to bulk export the submission entities(or any entity) to csv files.

I know I can do this with Views Data Export but I would have to make the view for each entity type.

Read more
NealB-1's picture

Simple example entity project posted

I created a sandbox project for a simple entity example for developers. It demonstrates the creation of a simple entity using only the core API. It is not fieldable, but adding fields would be trivial.

You can get it from source code control here.

Read more
NealB-1's picture

A demonstration table-less entity

I created an entity that doesn't live in the database. The entity doesn't do anything useful. It lives in a serialized array in a variable called 'variable_entity'.

The module automatically creates 3 'variable_entity' entities. Each one contains the name of a different variable on the system and fetches the contents. The entity is fieldable.

I thought of some more interesting kinds of non-database entities, like entities that live in an XML file, but that would have been too time-consuming for this little demo.

Read more
NealB-1's picture

Slides from the Entities presentation

Here are my slides (as a PDF).

Another really useful thing that the EntityAPI does for your entity is add integration with Views, Features, and Rules. I haven't played with these capabilities yet, but I'm sure it's easier than learning how to code to each of those modules' individual APIs.

Entity types in core:

<

table>

Entity Fieldable? Bundles Can add more bundles? file N file (default, not used) No node Y article, page Yes. Add content types. Read more
Anonymous's picture

Taxonomy Use - examples please

We are trying to build an InfoBase using Drupal. I am trying to use Taxonomy. Currently I am simply defining a set of terms. I would love to know how any of you use it. What I really need is an ontology of businesses (not only terms, but also relationship between terms). Here are some questions:

  1. Can you construct relationship between terms
  2. Can you constrain these relationships based on some rules (RDF schema comes to mind)
  3. Is there any relationships between taxonomy module and the RDF in the core?
Read more
tamasd's picture

Remote entities

Remote entities

Overview:

The aim of the project is to create a system, based on services, which will enable to transparently use entities from a different site as local entities. I will base my system on Drupal 7, because the new APIs give me the required level of flexibility for the clean implementation. I will use the Entity API module to do easy CRUD on the entities.

Read more
Subscribe with RSS Syndicate content