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.
| Comment | File | Size | Author |
|---|---|---|---|
| block.inc_.txt | 3.61 KB | agentrickard |
Comments
Comment #1
agentrickardClosing.
Comment #2
agentrickardActively being worked on in HEAD.
Comment #3
agentrickardThe initial implementation is in HEAD, but does not allow for creation of "Droplets" from blocks.
This is step 2.
Comment #4
agentrickardCommitted to HEAD.