BRACKETS-by-TRIAD / craftable

Admin panel builder / CRUD generator for Laravel.
https://getcraftable.com
MIT License
984 stars 192 forks source link

is there any way i can modify layouts #170

Closed motailab closed 4 years ago

motailab commented 4 years ago

i can't see any proper documentation about modifying layouts, like footer, menu etc. :)

SelimTavukcuoglu commented 4 years ago

Hello,

If I remember well what I did...

Keep me in touch !

motailab commented 4 years ago

Thank you :)

palypster commented 4 years ago

Laravel provide this concept of overriding the views of any vendor (package) including Craftable. Check out more info in the oficial docs: https://laravel.com/docs/6.x/packages#views (Overriding Package Views)

elshobokshy commented 4 years ago

@palypster what if we want to keep the same views format but just make minor changes ? Could you kindly explain how to properly and cleanly export all views and necessary vue files ?

SelimTavukcuoglu commented 4 years ago

Hello, As I told before, and as @palypster you have to copy templates in your resources directory and edit them.

  • I just copied files from vendor/brackets/admin-ui/resources/* to resources/admin/*and edit them.
  • Maybe you gonna have to change path in all the @includes into your new pasted files...
elshobokshy commented 4 years ago

@codeurfou copying only admin-ui/resources/admin/* view files is not enough. As it doesn't contain, for example, the login form view as well as many others. I'd need to copy all resources in all folders to have a whole copy of all of the views? If not, which ones do I really need to copy?

palypster commented 4 years ago

@elshobokshy sorry, I think we don't know the answer, this is something we did not have in mind when we developed.

I can help you navigate though what packages have SOME frontend, it might help you with investigation:

lukmanarifs commented 3 years ago

in case someone in the future search about this topic, here is the way i solve it.

    • Copy admin folder inside vendor/brackets/admin-ui/resources/views/
    • Make folder vendor/brackets/admin-ui inside resources/views/
    • Paste the copied admin folder inside admin-ui folder

Screen Shot 2020-11-29 at 13 52 39

Happy override...