Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Leading With Lead Images

869 views

Published on

Like the cobbler's children that have no shoes, here at Jazkarta we have been working on a long overdue redesign of our website. Our new site uses content with lead images to drive various views and interactive features. It is a good example of how Plone's standard Dexterity "Image" field, combined with plone.app.imagecropping, can create image-rich content that can be re-purposed in a variety of ways. This talk describes two new add-ons that we have written that take advantage of lead images and search indexes to create pretty grid layouts with fun dynamic content filtering.

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Leading With Lead Images

  1. 1. Friday, October 23, 15
  2. 2. The Cobbler’s Children Have No Shoes Friday, October 23, 15
  3. 3. Friday, October 23, 15
  4. 4. Friday, October 23, 15
  5. 5. Requirements • More imagery, visual appeal • Tiled landing pages that are easy to change • Responsive • Use Plone 5 Friday, October 23, 15
  6. 6. Friday, October 23, 15
  7. 7. Key Ingredients • Dexterity types • Dexterity behaviors • plone.app.imagecropping • collective.cover • collective.relatedslider NEW • collective.isotope NEW Friday, October 23, 15
  8. 8. Dexterity Types • Plone 5 types • Projects • Team Members Friday, October 23, 15
  9. 9. Friday, October 23, 15
  10. 10. Friday, October 23, 15
  11. 11. Dexterity behavior: Image • Images • Projects • Team Members Friday, October 23, 15
  12. 12. Dexterity behavior: RelatedItems • Pages • Projects • Team Members Friday, October 23, 15
  13. 13. Dexterity behavior: Collection • Pages • Projects • Team Members Friday, October 23, 15
  14. 14. Dexterity behavior: RelatedSlider • Pages • Projects • Team Members Friday, October 23, 15
  15. 15. collective.cover • Upgraded for Plone 5 • CSS classes to support: • Full width banner images • Plain basic tiles with mouseover • Image basic tiles with mouseover • Rich text tiles with vertical centering Friday, October 23, 15
  16. 16. collective.relatedslider • Provides RelatedSlider behavior for Dexterity content • Piggybacks on RelatedItems or Collection behaviors (plone.app.contenttypes) for related content selection Friday, October 23, 15
  17. 17. collective.relatedslider • Related content selection can be • Manual (RelatedItems) • With criteria (Collection) • Choice of related content source made on edit form Friday, October 23, 15
  18. 18. Friday, October 23, 15
  19. 19. collective.relatedslider • Adds a viewlet below the content area when slider is enabled • Uses JQueryTools Scrollable (plone.app.jquerytools) to provide a responsive manually triggered slider for related content (images and/or text) Friday, October 23, 15
  20. 20. Friday, October 23, 15
  21. 21. collective.relatedslider • Could be extended to support display of related items on AT content Friday, October 23, 15
  22. 22. Friday, October 23, 15
  23. 23. collective.isotope • Provides a new view for Folder and Collection types (plone.app.contenttypes) • Uses the Isotope javascript plugin (http:// isotope.metafizzy.co) • Open source license Friday, October 23, 15
  24. 24. Isotope Demo Friday, October 23, 15
  25. 25. collective.isotope • Provides vertical and tiled formats • Uses catalog metadata columns for filtering • Will eventually support dynamic sorting Friday, October 23, 15
  26. 26. collective.isotope • Site wide settings • Control which columns are available • Give custom names to the columns • Choose which layout to use • masonry, columns, vertical • More configuration settings coming Friday, October 23, 15
  27. 27. Friday, October 23, 15
  28. 28. Friday, October 23, 15
  29. 29. collective.isotope • Per collection/folder settings • Which of the available columns to use Friday, October 23, 15
  30. 30. Friday, October 23, 15
  31. 31. collective.isotope • Could be expanded to support AT types Friday, October 23, 15
  32. 32. How Does All This Work? Friday, October 23, 15
  33. 33. Setup • Define crop sizes to fit design • Add content with images • Use cropping tool to create crops for each lead image • Thumb for related sliders and isotope • Preview for cover tiles Friday, October 23, 15
  34. 34. Friday, October 23, 15
  35. 35. Friday, October 23, 15
  36. 36. plone.app.imagecropping • Is awesome and should be in core! • But it needs some work • Unnecessary warnings that changes will be lost • Cached crops are mysteriously lost Friday, October 23, 15
  37. 37. Landing Pages • Create cover for landing page • Create layout • Add content and images to cover Friday, October 23, 15
  38. 38. Friday, October 23, 15
  39. 39. Friday, October 23, 15
  40. 40. Friday, October 23, 15
  41. 41. Sliders • Create related content criteria or add related items • Add slider title • Enable slider Friday, October 23, 15
  42. 42. IsotopeViews • Create collection • Configure which filters to use • Set display to isotope view Friday, October 23, 15
  43. 43. Reflections on Plone 5 Friday, October 23, 15
  44. 44. Content Editor • Nice editing experience, with a few glitches • Hitting view instead of edit and vice versa - reverse order? • No icons for add-ons in edit UI! (or Site Setup) Friday, October 23, 15
  45. 45. Friday, October 23, 15
  46. 46. Developer • New resource registry UI is confusing Friday, October 23, 15
  47. 47. Themer • New markup made theming a bit easier - extended the Barceloneta theme’s LESS and overrode some key variables, which worked nicely • New editing toolbar made responsive theming a pain - a fourth column you have to account for when setting breakpoints, etc. - lots of special cases Friday, October 23, 15
  48. 48. Questions? Friday, October 23, 15

×