>
> I am trying to use some custom CSS (web2py.css is not used due to 
> potential conflict), HTML and JS (web2py.js is also not used). Now I wonder 
> how should I tell web2py to link up these custom resources? Do I still have 
> to use layout.html and web2py_ajax.html and modify them accordingly to use 
> the custom stuff?
>

Standard <link> and <script> tags will be fine. You probably want them in 
your layout.html, though you do not need to use web2py_ajax.html. If you 
want to use the response.files approach but don't want to use 
web2py_ajax.html or edit it, you can put the following in the head of your 
layout.html where you want the files included:

 {{response.include_files()}}

which is what web2py_ajax.html does.
 

> In addition, if we are not using web2py.css and web2py.js, how much impact 
> does it have on SQLFROM stuff in the view (e.g. {{=form}})? Thanks.
>

web2py.css has some styling for form errors and flash messages, though you 
can easily create your own. It also includes a good bit of CSS for 
SQLFORM.grid. web2py.js handles (1) displaying flash messages, (2) sliding 
down form errors, (3) validating numeric input field entries, (4) date/time 
picker for date and time fields, (5) confirmation dialog when deleting 
record, and (6) Ajax and components. You might want to consider keeping it 
(I don't think it will present any conflicts).

Anthony

Reply via email to