UPDATE BOOTSTRAP VERSION FROM 3 TO 4

608 views
Skip to first unread message

Áureo Dias Neto

unread,
Apr 12, 2017, 8:46:50 AM4/12/17
to web2py-users
Hello guys,

How to update version 3 bootstrap to 4 on web2py?

I tried to replace the .css and .js files, however I got a lot of bug and unrecognized classes ..

Ali

unread,
Apr 16, 2017, 10:37:16 AM4/16/17
to web2py-users
Yes, i know what you mean,  you have to start all over again from scratch, believe me, i have tried convert from version 3 to 4, I got lots of unrecognised classes. 
I have tried to change all classes to version 4 then I realised that is better to start all over again from bootstrap 4, is not worth to update one by one class, even is not going to make smooth due to javascript  and jquery lines are not going to work with old code version 3.

AM

Anthony

unread,
Apr 16, 2017, 5:42:12 PM4/16/17
to web2py-users
Different versions of Bootstrap involve not just changes to CSS and JS files -- the structure of the HTML and the class names use also change. So you have to make changes to layout.html and other templates, formstyles, etc.

Anthony


On Wednesday, April 12, 2017 at 8:46:50 AM UTC-4, Áureo Dias Neto wrote:

Massimo Di Pierro

unread,
Apr 21, 2017, 11:19:15 AM4/21/17
to web2py-users
Which is why I hate bootstrap and we have to move to client side generation of forms and grid since server side generation does not know about css.

Joe Barnhart

unread,
Apr 23, 2017, 9:10:11 PM4/23/17
to web2py-users
But are you sure that's the right approach?  I force problems with lightweight clients (i.e. phones) doing complicated layout generation.

-- Joe

Donald McClymont

unread,
Apr 24, 2017, 1:40:40 PM4/24/17
to web2py-users
I think there are use cases for both sqlform and client side frameworks. In terms of bs4 there seem to be sites that will do a conversion so I would think it must be possible to make new form styles for bs4 as was done for bs3? Albeit I imagine this is not a particularly fun job it can't be that hard?

Donald

Leonel Câmara

unread,
Apr 26, 2017, 9:51:15 AM4/26/17
to web2py-users
The forms in Boostrap 4 are pretty much the same as in bootstrap 3, you do need to change some stuff in the menu and grid.

Áureo Dias Neto

unread,
Apr 26, 2017, 9:56:30 AM4/26/17
to web...@googlegroups.com
Yes Leonel, when I update the files to bootstrap 4, only have problems with grid and the nav's

Carl Petersen

unread,
Oct 5, 2018, 10:34:26 AM10/5/18
to web2py-users
Leonel, could you go into a bit more depth on the changes you had to make in the menu?  I would certainly appreciate it.
Reply all
Reply to author
Forward
0 new messages