Submitted by jonhattan on Mar, 23/04/2013 - 19:07
So you want to build a module that provides some fields and instances for an entity type. Let's start with a quick summary to get in context.
As you should know, fields in drupal are thingies that exist on its own, though they're useless if not attached to entities. Fields are tied to entities through instances. So to attach a field to a node or any other type of entity, it's needed to create instances. In this way, an instance is identified by the field name it instantiates and the entity type
- bundle
tuple it is tied to.
In Drupal's admin UI, creating fields and instances is overlapped: when you create a field, you're also creating an instance. On the other hand, when you're reusing an existing field, you're just creating a new instance of it.
Last but not least, part of the configuration you can see in the UI pertains to the field definition, and part to the field instance. So field configuration is the same for all of its instances, and instance configuration is specific and not shared by other instances.
Submitted by jonhattan on Mié, 05/12/2012 - 14:48
Estoy desarrollando una distribución Drupal. Ahora mismo ando exportando grupos de configuración a features y me encuentro con un problema que he afrontado ya varias veces sin haber encontrado (hasta ahora) una solución satisfactoria.
Uso el módulo context para gestionar la disposición de los bloques. En algunos bloques necesito que el título no se muestre, y context no proporciona una manera de hacer esto (panels si), por lo que recurro a la interfaz administrativa de bloques y neutralizo el título poniendo <none>
. Quizás haya maneras de hacerlo con algún módulo que extienda context, pero por lo que he buscado y preguntado no existe otra opción.
El problema con el que me encuentro es que al exportar la configuración de context a código, el override del título del bloque no se exporta....
Submitted by jonhattan on Vie, 25/03/2011 - 07:46
Some months back I was in the need to know if a Drupal site was hacked how much code had been modified in a given Drupal site. It was not straightforward to install a copy of the site out of the box (it had hardcoded absolute paths in custom modules among other annoying things).
Submitted by jonhattan on Mié, 10/02/2010 - 18:06
Hay varias maneras de gestionar las actualizaciones menores de drupal (de la versión 6.1 a la 6.2, ...). El flujo canónico sería[1]:
Submitted by jonhattan on Vie, 21/08/2009 - 20:30
Submitted by jonhattan on Dom, 09/08/2009 - 17:17
La extensión readline para php no está en Debian (ni en Ubuntu) por problemas de licencia. Entre tantos bugreports, blogposts y opiniones varias he encontrado esta frase: «Licensing issues. Readline is GPL, and we can't link with GPL libraries without violating their license.»
Submitted by jonhattan on Dom, 26/07/2009 - 23:00
ACTUALIZACIÓN: hace unas semanas que estos comandos han pasado a formar parte del core de drush. Han entrado junto a una reorganización de los comandos "pm" (package-manager) que hasta entonces sólo gestionaban módulos. Esta es la equivalencia entre los antiguos comandos "theme" y los nuevos cambios introducidos en drush 3.x:
Submitted by jonhattan on Jue, 23/07/2009 - 23:00
La aparición de drush 2.0 ha sido un subidón. Muchos estamos que lo flipamos con drush y reorientamos nuestra forma de trabajar con drupal para irnos a la línea de comandos para hacer lo que drush nos permita más rápido, mucho más rápido: descargar módulos, habilitarlos, limpiar la caché, darle al cron, crear nuevas instancias de drupal, etc etc.
Submitted by jonhattan on Lun, 20/07/2009 - 23:00
Páginas