Hi,
The great thing about ECK is being able to create Entities from within the administrative interface which saves a lot of time and opens up new capabilities to non-coders. Rules and views integration means you can build entire solutions without writing any code.
We wanted to also position a create form for users on the front end of our site, but this required writing a couple of lines of PHP code - which is easy, but still disrupts the idea of doing everything within the admin interface.
So I've created a module called eck_blocks. For each entity type/bundle the module provides a block for the add form for the type/bundle.
This helps a non-coder user by giving them even more abilities (placing create forms anywhere on their site) without having to use code.
It's very small and simple code, and I only created it as a separate module to keep our project clean. So if you find it useful, I think it would be better to integrate the code into the core eck project.
Please see attached the module in a zip.
Comment | File | Size | Author |
---|---|---|---|
#1 | eck-n2001528-1.patch | 1.77 KB | DamienMcKenna |
Comments
Comment #0.0
willieseabrook CreditAttribution: willieseabrook commentedtype
Comment #1
DamienMcKennaRolled it as a patch for the main module and tidied up the code a little.
Comment #2
paadamson CreditAttribution: paadamson commentedNice module - though it hits a problem when the combined entity name and bundle name are longer than 32 characters (the length of the delta column in the blocks table).
Comment #3
breidert CreditAttribution: breidert commentedHad the same problem as paadamson. You have to check that the delta is not longer than 32 characters. Everything else is good.
Comment #4
fmizzell CreditAttribution: fmizzell commentedShould this be its own module? The module is tiny, but I can see how it could be extended to turn many things in eck into blocks. Also, as a separate module it can follow a normal release cycle toward stability without affecting core eck's status.
Any thoughts?
Comment #5
mihai_brb CreditAttribution: mihai_brb commented+1 for stand alone
Comment #6
revagomes CreditAttribution: revagomes as a volunteer commentedI've created a sandbox to continue the development of this feature:
https://www.drupal.org/sandbox/revagomes/eck_blocks
See you guys in the eck_blocks issue queue. ;)
Comment #7
mihai_brb CreditAttribution: mihai_brb commentedThanks revagomes.