alphagov/whitehall — pull request #62 by chrismdp (2012-11-07 13:35:45+00:00)
Title: Pull out first image on news and case studies

New functionality: for news and case studies only:

1) Instead of the "markdown to use" box on the edit screen for image 1, we show a message which explains that the first image is used as the lead image and cannot be placed in the document directly.

2) Adding !!1 to body copy causes a validation failure.

3) The first image added is pulled out and put on the left hand side of the page.

4) The placeholder image is used if no images have been added to the edition.

5) There's a data migration the existing news and case studies to remove "!!1" from the existing copy, which will need to be run on deploy. Without it, new editions of news and case studies will not save unless any !!1's in the body are removed, and first images will be shown twice if the first image is included in the copy.

Ticket: https://www.pivotaltracker.com/story/show/37411539