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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

willieseabrook’s picture

Issue summary: View changes

type

DamienMcKenna’s picture

Version: 7.x-2.0-rc2 » 7.x-2.x-dev
Issue summary: View changes
FileSize
1.77 KB

Rolled it as a patch for the main module and tidied up the code a little.

paadamson’s picture

Nice 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).

breidert’s picture

Had the same problem as paadamson. You have to check that the delta is not longer than 32 characters. Everything else is good.

fmizzell’s picture

Should 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?

mihai_brb’s picture

+1 for stand alone

revagomes’s picture

I'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. ;)

mihai_brb’s picture

Status: Needs review » Closed (fixed)

Thanks revagomes.