A plugin is a tar gzipped file. The admin interface only allow you to tar 
gzip files and folder with the plugin_* prefix but from the shell there is 
no similtation

cd applications/yourapp
tar zcvf web2py.plugin.name.w2p [list of files to include]

if you include views/layout.html  you will accomplish the goal.

On Wednesday, 27 June 2012 00:09:16 UTC-5, François Delpierre wrote:
>
> Ok, so it means that the solution from Massimo is not working anymore :
> http://permalink.gmane.org/gmane.comp.python.web2py/71241
>
> How can I then make plugins that automatically change the layout of the 
> application without having to leave web interface ?
>
> That's strange, as one of the downloadable layout does exactly that, and 
> works :
> pivert@skinner:~/Downloads$ tar -ztvf web2py.plugin.layout_Compromise.w2p 
> -rw-r--r-- mdipierro/staff 5559 2010-11-03 17:09 views/layout.html
> -rw-r--r-- mdipierro/staff 3359 2010-11-03 17:03 
> static/plugin_layouts/superfish.css
> -rw-r--r-- mdipierro/staff 3714 2010-11-03 17:03 
> static/plugin_layouts/superfish.js
> -rw-r--r-- mdipierro/staff 5559 2010-11-03 17:07 
> views/plugin_layouts/layouts/Compromise.html
> drwxr-xr-x mdipierro/staff    0 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/
> drwxr-xr-x mdipierro/staff    0 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/images/
> -rw-r--r-- mdipierro/staff 6452 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/index.html
> -rw-r--r-- mdipierro/staff 13901 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/license.txt
> -rw-r--r-- mdipierro/staff 18861 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/preview.png
> -rw-r--r-- mdipierro/staff  4856 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/style.css
> -rw-r--r-- mdipierro/staff  1631 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/images/img01.gif
> -rw-r--r-- mdipierro/staff   413 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/images/img02.jpg
> -rw-r--r-- mdipierro/staff  2496 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/images/img03.jpg
> -rw-r--r-- mdipierro/staff  9087 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/images/img04.jpg
> -rw-r--r-- mdipierro/staff  2989 2010-10-20 07:09 
> static/plugin_layouts/layouts/Compromise/images/img05.gif
>
>
>

-- 



Reply via email to