Testing whether blocks should and can be supported. Notes based on first test.

The default $data array from mysite_type_block_data() doesn't quite work:

* 'base' url value must be set by the admin or omitted.
* 'xml' url value must be set or omitted
* Must teach theme files to respect the 'content' element of the array.
* Must teach theme files to ignore missing dates and authors.

There will need to be admin settings for blocks that allow:

* The selection of which blocks to expose to the end user.
* Does the admin need to Weight those blocks?
* Allow admins to upload images of block content (block icons).
* Table for storing Content settings and icons?

Attached is a very quick, totally unsupported TEST file. To use it, drop it in mysite/plugins/types and uncomment lines 44-50. Then rename it to block.inc.

Do NOT use the attached in production.

CommentFileSizeAuthor
block.inc_.txt3.61 KBagentrickard

Comments

agentrickard’s picture

Status: Active » Closed (fixed)

Closing.

agentrickard’s picture

Version: 5.x-1.x-dev » master
Status: Closed (fixed) » Active

Actively being worked on in HEAD.

agentrickard’s picture

The initial implementation is in HEAD, but does not allow for creation of "Droplets" from blocks.

This is step 2.

agentrickard’s picture

Status: Active » Closed (fixed)

Committed to HEAD.