Skip to content

Instantly share code, notes, and snippets.

@jkeck
Last active August 29, 2015 14:16
Show Gist options
  • Save jkeck/17a1529119e5571c4fe1 to your computer and use it in GitHub Desktop.
Save jkeck/17a1529119e5571c4fe1 to your computer and use it in GitHub Desktop.
Outline for Blacklight Customization Workshop at HydraConnect.

Basic Configuration

  • i18n (a lot of view overrides could be accomplished with i18n overrides)
  • blacklight_config (Controller Configuration)
    • Facets
    • Fields
    • Sorts
    • Search fields (search type drop-down)
    • Thumbnail by field

Advanced Configuration

  • Thumbnail by method
  • Fields by method
    • Linking
  • Facets
    • by method
    • custom partial
    • query facets
  • Default solr parameters
  • Controller search_params_logic
    • Restricting controller to only search documents with a particular field value

Overriding

Try to find the smallest override possible

  • Module methods (helpers)
  • Class methods (controller)
  • Views (But NOT UI text overrides which should be in i18n)

Bootstrap

  • Overriding defined variables
  • Sass (modify button styling to match institution style as a good example)
    • Extends
    • Mixins
    • Functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment