Move all of those folders/files into the web2py application's /static
folder (possibly within a sub-folder, such as /static/theme). Then use the
theme's index.html as the basis for your web2py layout.html view. You can
copy the relevant sections from the "welcome" app layout.html. Also, check the
book <http://web2py.com/books/default/chapter/29/05/the-views#Page-layout>
for further details. In the layout, replace any URLs referencing the
theme's static assets with web2py URLs. For example, a URL like:
styles/main.css
would become:
{{=URL('static', 'theme/styles/main.css')}}
Anthony
On Monday, March 16, 2015 at 9:41:59 AM UTC-4, Vikash Sharma wrote:
>
> Question also asked at:
> http://stackoverflow.com/questions/29072416/web2py-adding-themeforest-theme
>
> How to add custom theme in web2py. Example: in themeforest.net, one of
> the theme have folder structure as follows:
>
>
> <https://lh5.googleusercontent.com/-LSDPO1-nqR0/VQaVTkyAozI/AAAAAAAASW8/jKaAKtHUs3Q/s1600/Capture.PNG>
> Thanks in advance
> Vikash
>
--
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.