#2443 - Universal block_id parameter support
| Identifier | #2443 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Universal block_id parameter support |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | core |
| Description | Make all blocks pass in the BLOCK_ID parameter to their templates.
It's as simple as adding: 'BLOCK_ID' => get_block_id($map), to the template call The screen previews would need to include this too. This functionality allows us to display blocks differently in different places without using hacks to do it. You'd just set the block_id parameter for that block. The do_block_get_cache_identifier function would need editing to automatically inject the block ID into the cache signatures. No language strings need adding, and the list of parameters don't need changing - as block_id is already coded up as a standardised parameter. Actually it would be good to create a unit test to guarantee our standard parameter names are NOT defined in any block's lists of parameters, or in any language strings, or in the cache signature. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
There have been no comments yet