Skip to content

Support for custom views #43

Description

@ambadyanands

It'll be nice if there is a config option to use custom views instead of the pre-configured ones.

Activity

  1. MGatner commented on May 16, 2022

    @MGatner
    Collaborator

    There's already this:

    public array $views = [
    'dropzone' => 'Tatter\Files\Views\Dropzone\config',
    ];

    Did you mean for the individual formats?

  2. ambadyanands commented on May 17, 2022

    @ambadyanands
    Author

    @MGatner I mean not just for individual formats, but all important views for the CRUD operations so that we can customize the look as we like. For eg. we can change font-awesome if that's not in alignment with the icon theme used outside.

  3. MGatner commented on May 17, 2022

    @MGatner
    Collaborator

    I can do that. I will warn though, that moving this to user Tatter\Frontend has been a step further into "opinionation". If someone (you?) wants to work on the general configurability to support other icon sets / frontend frameworks / etc, I will gladly accept PRs but using the firmer dependencies makes maintenance a lot easier on me.

  4. ambadyanands commented on May 17, 2022

    @ambadyanands
    Author

    Actually I was looking for a quick solution that works and this project was an excellent candidate since it provides exactly that. Unfortunately we also needed to customize the views and routes. I will try to make the changes myself and create PRs once my current project is finished. Thanks.

  5. MGatner commented on May 17, 2022

    @MGatner
    Collaborator

    Sounds good! One "quick fix" idea that comes to mind... you could disable the default routes and create aliases as names routes for the ones you want to support. Any internal links you need would still have to be supported but you could use the aliases anywhere else.

  6. ambadyanands commented on May 19, 2022

    @ambadyanands
    Author

    Thanks, I'll try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions