Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Fallback image #147

@sime

Description

@sime

Background: I'm hacking up an AngularJS version of my views and noticed some logic in my CakePHP views which could be abstracted to the Model. Purely an idea at the moment.

In my View/Helper I check to see if an image is available prior to attempting to display it. If it's not available I'll render a static placeholder image.

Working on client side views, I see value in the Uploader.Attachment behavior having a fallbackImage setting. Reducing view logic. Potentially handled via an afterFind().

If no image exists and the column settings describes an fallbackImage, provide the fallbackImage as the actual result.

Sound sane?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions