Hi again,
The swapping out of the views/layout.html appears to happen
automatically for the downloaded layouts, but it doesn't for my layout
plugin.  I've followed the same naming and folder standards.

What have I missed ?

Thanks

Andrew W

On Sep 25, 5:45 pm, Andrew <awillima...@gmail.com> wrote:
> Thanks Massimo,
> It is a good convention to keep consistency across many layouts, so
> I'll do the same.
> Regards
> Andrew
>
> On Sep 25, 12:56 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
> wrote:
>
>
>
> > Good point. The name of the plugin (after installed) is not determined
> > by the filename (w2p) but determined by the file content of the w2p
> > file.
>
> > I used the convention to put all layout as subfolder so a
> > plugin_layouts so
>
> > web2py.plugin.layout_xxx.w2p would contain
> > views/layout.html
> > views/plugin_layouts/xxx/layout.html
> > static/plugin_layouts/xxx/*
>
> > This allows me to install multiple layouts and swamp them by replacing
> > views/layout.html
> > with
> > views/plugin_layouts/xxx/layout.html
>
> > Massimo
>
> > On Sep 24, 6:48 pm, Andrew <awillima...@gmail.com> wrote:
>
> > > Hi,
> > > I'm trying to create a layout plugin, and I'm using the existing
> > > layouts atwww.web2py.com/layoutsasaguide.
> > > I've noticed that they have names like web2py.plugin.layout_Name.w2p
> > > but when I install them they are all called "plugin_layouts".
>
> > > I'm guessing the plugin name in the w2p file was changed, or manually
> > > created with tar (from another post).  Were they all developed with
> > > the name "plugin_layouts".  I don't see that naming convention
> > > mentioned anywhere.
>
> > > So, to follow the convention, should I develop my layout by calling it
> > > plugin_layouts and following the folder and naming conventions of the
> > > other layouts, and then rename the packed file from
> > > web2py.plugin.plugin_layouts.w2p to
> > > web2py.plugin_layout_MyFancyLayoutName.w2p ?
>
> > > Thanks
>
> > > Andrew W- Hide quoted text -
>
> - Show quoted text -

Reply via email to