reachplc / digitalhub

A central repository for showing customers the full, Trinity Mirror wide, offering of digital adverts, build guides and example adverts.
0 stars 1 forks source link

Add global option for build guides #245

Closed michaelbragg closed 10 years ago

michaelbragg commented 10 years ago

Ref #242

michaelbragg commented 10 years ago

Add a build guide via the Media Uploader and update post: screen shot 2014-08-08 at 15 25 17

Remove a build guide via the button and update post: screen shot 2014-08-08 at 15 25 41

michaelbragg commented 10 years ago

@Todo: Build in check to see if the "Remove Build Guide" button is already there.

michaelbragg commented 10 years ago

TODO: Look into merge JS file as admin.js and build-guide.js contain the same code but are called on different pages.

michaelbragg commented 10 years ago

TODO: Can Add/Remove buttons be disabled when 'Disable Build Guide` option is clicked?

michaelbragg commented 10 years ago

Deployed to DigitalDev for testing.

michaelbragg commented 10 years ago

Redeployed to DigitalDev for testing.

michaelbragg commented 10 years ago

Post's build guide not recognising attachment.sizes.thumbnail.url for attached build guide.

Does the media object have a thumbnail version?

michaelbragg commented 10 years ago

Other images have thumbnail.

Is it because the images are 100px x 100px or smaller? Has a setting changed?

michaelbragg commented 10 years ago

Fun fact. WP doesn't create thumbnails for images under 200px x 200px.

Need to add a check to see if attachment.sizes is true but attachment.sizes.thumbnail is not. Then return the image url to use.

michaelbragg commented 10 years ago

Global Build Guide

As a super admin click Settings > Adverts Settings

screen shot 2014-09-10 at 09 13 36

Add your build guide and select save

screen shot 2014-09-10 at 09 13 51