View Issue Details

IDProjectCategoryView StatusLast Update
2443Composrcorepublic2016-07-20 23:59
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary2443: Universal block_id parameter support
DescriptionMake 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.
TagsNo tags attached.
Attach Tags
Time estimation (hours)1.5
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-04-20 23:13 Chris Graham New Issue
2016-04-20 23:16 Chris Graham Status Not Assigned => Resolved
2016-04-20 23:16 Chris Graham Resolution open => fixed
2016-04-20 23:16 Chris Graham Assigned To => Chris Graham
2016-04-20 23:17 Chris Graham Assigned To Chris Graham =>
2016-04-20 23:17 Chris Graham Status Resolved => @20@
2016-04-20 23:17 Chris Graham Resolution fixed => reopened
2016-04-20 23:17 Chris Graham Status @20@ => Not Assigned
2016-04-20 23:17 Chris Graham Resolution reopened => open
2016-07-20 23:58 Chris Graham Status Not Assigned => Resolved
2016-07-20 23:58 Chris Graham Resolution open => fixed
2016-07-20 23:58 Chris Graham Assigned To => Chris Graham