This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ukebako8008
ukebako8008

What is the best way to use bootstrap components in backend pages? For example, I need bootstrap labels in the list controller.

Cpt.Meatball
Cpt.Meatball

This might do the trick.

https://octobercms.com/docs/backend/lists#column-partial

You can define the column data / markup yourself. If you want to add custom css you can inject it into the page through the $this->addCss inside one of the methods in your controller.

Last updated

ukebako8008
ukebako8008

Thanks for reply. Sure I can do such things, but I think it's not a good idea to find certain styles in bootstrap files and copy them to plugin or theme css files.

Backend pages are based on bootstrap, and I think, authors had some reasons to remove some bootstrap features from final set of styles.

I asked this quesion to get some intuition, what is the best way to implement classic bootstrap components (native or alternative) without conflicting with current backend structure, avoiding digging into bootstrap core.

alxy
alxy

You can check out the UI docs for what is possible: http://octobercms.com/docs/ui/form

ukebako8008
ukebako8008

@alxy

Thanks a lot for the link. That's what I asked for.

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.