Skip to content
Permalink
Branch: master
Commits on Jan 14, 2020
  1. Back to development: 2.1.2

    jone committed Jan 14, 2020
  2. Preparing release 2.1.1

    jone committed Jan 14, 2020
  3. Merge pull request #91 from 4teamwork/jone-fix-plone4-no-icon

    jone committed Jan 14, 2020
    Fix mimetype icon problem for Plone 4 when there is no icon defined.
  4. Fix mimetype icon problem for Plone 4 when there is no icon defined.

    jone committed Jan 14, 2020
Commits on Jan 10, 2020
  1. Back to development: 2.1.1

    jone committed Jan 10, 2020
  2. Preparing release 2.1.0

    jone committed Jan 10, 2020
  3. Merge pull request #90 from 4teamwork/jone-mimetype-based-icons

    jone committed Jan 10, 2020
    Improve mimetype icons support for better Plone 5 support.
  4. Improve mimetype icons support for better Plone 5 support.

    jone committed Dec 20, 2019
    Up to now, ftw.theming used the "getIcon" catalog column (containing an
    image path) for generating a HTML structure which can be styled with
    CSS / font awesome icons.
    
    This strategy does no longer work well in Plone 5 since the "getIcon"
    metadata column is no longer used.
    
    This change adds an additional strategy for when there is no "getIcon"
    value on the brain.
    The new strategy uses the "mime_type" column for generating a css
    class. This strategy may not work well with Plone 4 / depending on the
    configuration, that's why we no have two strategies.
    
    Since the strategies generated varying css classes, the icons need to
    be re-defined based on the "mime_type" value in addition to the
    definition based on the "getIcon" filename.
    
    The change includes icon definitons for the already styled mimetypes
    and an update of the icons control panel so that it is easier to
    control and manage the missing mimetype definitions.
You can’t perform that action at this time.