concrete5/concrete5 — pull request #395 by jordanlev (2011-12-31 17:22:05+00:00)
Title: Set block names via custom templates UI

Continuation of @mkly 's pull request #392 .
Block names can be set for blocks on a page and in stacks via the "Custom Template" dialog. Block::getByName() works with stacks (and is also backwards-compatible with legacy scrapbooks if they exist).

I also added a new feature to models/area.php that uses a mini-template for blockWrapperStart and blockWrapperEnd, so you can insert placeholders in those strings and get the block id or block name in your wrapper (this will support really spiffy things like automatic nav tabs or accordions in an elegant fashion).