The following files are useful only if your template is based on bootstrap 2 (like the web2py scaffolding template):
- css/bootstrap.min.css - css/bootstrap-responsive.min.css - css/web2py_bootstrap.css otherwise you should omit them. What do you mean with "Only web2py.css and calendar.css work" ? Are you able to see if the browser gives errors by using its developers tools? If you are not able then you could read: for chrome https://developers.google.com/chrome-developer-tools/ for firefox https://developer.mozilla.org/en-US/docs/Tools Anyway the simplest and trivial check is to verify if all the files are in the static/css folder. Il giorno sabato 8 marzo 2014 20:31:03 UTC+1, Austin Taylor ha scritto: > > Thank you so much, Paolo!! This is wonderful! It certainly helped my > understanding. However, whenever I try to use this code: Only web2py.css > and calendar.css work. > > {{ > response.files.insert(0,URL('static','css/web2py.css')) > response.files.insert(1,URL('static','css/bootstrap.min.css')) > response.files.insert(2,URL('static','css/bootstrap-responsive.min.css')) > response.files.insert(3,URL('static','css/web2py_bootstrap.css')) > response.files.insert(4,URL('static','css/style.css')) > response.files.insert(5,URL('static','css/style-desktop.css')) > }} > > After a little troubleshooting I figured out the calendar.css was being > pulled from web2py_ajax.html > > Any idea on why the code above wouldn't work in the layout_custom.html? I > REALLY appreciate your help. This has made such a difference! > > On Saturday, March 8, 2014 9:08:29 AM UTC-5, Paolo Caruccio wrote: >> >> It's just a demo. The code is not tested. You should consider this only >> as a very basic reference. The filenames here reported are only >> conventional you should use yours. >> >> 1) put the css files of the template in static/css folder of your web2py >> application; >> 2) put the js files of the template in static/js folder of your web2py >> application. Please note that jquery is already shipped with web2py (check >> web2py_ajax.html); >> 3) assuming that the index.html located to http://pastebin.com/zbnWjs1v is >> the main file of the template, you should modify it in order to get >> advantage of the web2py features and save it in the views folder as >> layout_custom.html (check the layout_custom.html here attached). Please >> note the {{include}} that replaced the main content and the changes in the >> <head> section; >> 4) create in views/default folder a file named intro.html (here attached) >> containing the main content from the index.html of the template and >> extending layout_custom.html; >> 5) in controller/default.py add the following: >> >> def intro(): >> return locals() >> >> 6) in the browser see http://ipserver/appname/default/intro page (of >> course you have to replace ipserver and appname with real values). >> >> As said this is only a basic guide. You should make other adjustments in >> order to obtain a full working layout based on the template but we are here >> to help you in case of necessity. >> >> >> Il giorno sabato 8 marzo 2014 01:55:10 UTC+1, Austin Taylor ha scritto: >>> >>> Hello, >>> >>> I purchased this CSS template and I want to integrate web2py with it >>> (because I love web2py). >>> http://www.4templates.com/website-templates/726353988-WT00926/#green >>> >>> It has multiple html files it references, js files, and css sheets. >>> Index.html located here: http://pastebin.com/zbnWjs1v >>> >>> >>> How would I be able to normalize this enough to where I can extend the >>> "layout.html" into other sheets and use all of the .js/css that comes with >>> it? >>> >>> I've tried for 2 days now and I keep running into issues. Even when I >>> try to just return locals() (if I put the index.html in views) it still >>> doesn't apply the css sheets. I've tried using >>> {{=URL('static','css/style.css')")}} with no luck either. >>> >>> Please help me find the best way to make this page normal. >>> >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

