howto apply a drupal theme to web2py

10 views
Skip to first unread message

mdipierro

unread,
May 12, 2009, 5:31:59 AM5/12/09
to web2py Web Framework
1) download and unzip your favorite drupal theme
2) cut and paste the content of page.php into

http://www.web2py.com/php

3) retrieve the generated web2py code and save it as layout.html (this
is not 100% fool proof but works 90% of the times)
4) move layout.html into yourapp/views/layout.html
5) move all the other files under yourapp/static
6) try the index page and you may get some errors...
7) edit yourapp/views/layout.html
and fix the links to the static files and delete any {{...}} that does
not make sense.

To save the theme:
cd yourapp
tar zcvf mytheme.theme.w2py views/layout.html static/styles.css static/
images/*

Douglas Soares de Andrade

unread,
May 13, 2009, 12:47:10 AM5/13/09
to web...@googlegroups.com
Whoa !

Very cool. Thanks a lot Massimo =)

>
>

mdipierro

unread,
May 13, 2009, 1:26:20 AM5/13/09
to web2py Web Framework
I think we can draft a minimal set of specs and build a repository of
converted themes.

On May 12, 7:47 pm, Douglas Soares de Andrade <dsandr...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages