This patch adds the feature to be able to add custom blocks to single entity page, without creating a standard drupal block. The only added data is a block content field in the blocker table, and the gui to enter a formatted text into this block. Can be used to add customised content to a single page, without using Panels.

Comments

kyletaylored’s picture

Status: Needs review » Needs work
StatusFileSize
new6.43 KB

I re-rolled the patch against the latest branch. When I ran updatedb, I did get an error as well.

kyletaylored@kyletaylored$ drush updatedb
 Blocker  7102  Add block_content field.
Do you wish to run all pending updates? (y/n): y
SQLSTATE[01000]: Warning: 1265 Data truncated for column 'content' at row 1    [error]
Performed update: blocker_update_7102

All in all, I'm not sure we should do this as we probably don't want to get in the business of storing block content, and adding a block through the Block admin isn't that much more effort. Let's see what the other maintainers have to say about that.

kyletaylored’s picture

StatusFileSize
new6.26 KB

Fixing broken patch (removed prior fix)

randallknutson’s picture

I like this idea a lot. It would be great to have a way of simply putting in some custom text. As a separate ticket it might also be good to look into ways of creating blocks/boxes as part of the blocker process.