Documente Academic
Documente Profesional
Documente Cultură
Entity Spice is a Entity API extension. It assumes a lot of defaults, And handles
the repeated tasks and boilerplate code needed to create an entity type. Later
you can override and customize any aspect of the result to your needs.
Oven
There is a bonus module also, called Oven, which cooks entity types for you. For now it only has a Drush interface.
After you cooked your entity type you can uninstall and remove Oven completely. It's not bugless but you will not need
it in production site. After cooking your entity you can uninstall it.
Related/Similar modules
multifield: a field construction module. It could be useful.
ECK: entity construction kit very similar to this module. However your entity type will completely depend on ECK and
Customizing it could be difficult.
Quick how to
Download and enable entityspice with Drush (it only works with Drush.
Use this command to generate an entity type: drush cook my_awesome_entity
If the command was not found try drush cc drush
It will ask you for some parameters, It's better to use defaults for now and customize them later as some of them
are deprecated.
A module named my_awesome_entity will be put in sites/all/modules directory, If you have a contrib directory too
you have to move my_awesome_entity from contrib to custom yourself (will be fixed).
Enable your module: drush en my_awesome_entity (not necessarily with drush).
Use it! check the permissions page for adjusting proper permissions. If you have not customized the paths, they
are as following:
1. /devel/entityspice_info/ ----> Various information about entity types of EntitySpice.
2. /es/ ---->List of all entity types created using EntitySpice.
3. /es/my_awesome_entity similar to /admin/content
4. /es/my_awesome_entity/add ----> /node/add
5. /es/my_awesome_entity/add/BUNDLE ----> /node/add/TYPE
6. /es/my_awesome_entity/% ----> /node/%
7. /es/my_awesome_entity/%/edit ----> /node/%/edit
1 of 2
2 of 2