> {{=form.custom.begin}}
> #in between the opening and closing tags put in your normal html code and 
> make sure the element names corresponds to the column names as defined in 
> your database. web2py will handle the rest automatically. This is the most 
> flexible way while still making use of web2py's validators.
> {{=form.custom.end}}


Thanks for all the useful info. I have two additional questions:

1. I want to utilize 'layout.html' to some extent such that it stores some 
common css files for the rest of the view pages. Kinda like a shared base 
template, and I want to add page-specific css (or js) files on individual 
html view page. Is it as simple as including:

{{extend layout.html}}
<head>
   <link href="css/page_specific_css_1.css" rel="stylesheet">
   <link href="css/page_specific_css_2.css" rel="stylesheet">
</head>

in the <head> section of a html view page? By doing this, do we append the 
above two css files to the list of the files in response.files (which is 
already set in 'layout.html')

2. I also want to enable Captcha support in web2py on my custom view. If I 
adopt the approach:

{{=form.custom.begin}}
# my custom html code here
{{=form.custom.end}}

How exactly should I add Captcha to the view?

Thanks a lot!


 

Reply via email to