How to add the checklist field to sidebar , in Edit /Create View ! I want the Categories to display in right sidebar #476
-
How to add the checklist field to sidebar , in Edit /Create View ! I want the Categories to display in right sidebar |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @codeies! What do you mean by right sidebar? The sidebar is on the left, or are you on a RTL (Right To Left) system? What do you want to add to the sidebar? Just text or the checklist checkboxes? |
Beta Was this translation helpful? Give feedback.
-
@promatik |
Beta Was this translation helpful? Give feedback.
-
I'm closing this issue due to inactivity. If you need further assistance or have additional questions, feel free to reopen this issue or create a new one. We're here to help! |
Beta Was this translation helpful? Give feedback.
Oh, ok!
That isn't a "proper" sidebar, because by default there is nothing there, no dom elements, that's an empty space "by design". If you want to add something there, you must publish the file
backpack\crud\src\resources\views\crud\create.blade.php
and add a newdiv.col-md-4
on line 53 that will complement the currentdiv.col-md-8
that holds the form content.Note that it will be outside the form element, so if you want input elements on that new right sidebar you must move the form outside of those
div
.There are more possible approaches, you can create a custom field specific for that category checklist with an absolute position, the field should position itself on the right side of …