Well... the quickest way to change layouts is to store the
configuration in the database...

So have a table for web2py meta information, that contains
"current_layout" which is value is "layout.html" or "mynewlayout.html"
etc etc.

In all views instead of {{ extend "layout.html" }} it will be {{
extend current_layout }}. Then do the same with the CSS as well.

{{ response.files.append(my_current_css) }}

Cache these variables in RAM to save from un-necessary dbio

-Thadeus





On Sat, Mar 20, 2010 at 5:11 PM, Yarko Tymciurak
<resultsinsoftw...@gmail.com> wrote:
> Having said this, the zengarden shows how to accomplish some standard
> naming, and now to switch css to affect things....
>
> That by itself is quite useful - and worth (for me at least) more
> closely...
>
>
> On Mar 20, 1:53 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
>> I envision having an app create wizard, you select a layout (based on
>> ez-css), and then select a skin for the layout. :)
>>
>> -Thadeus
>>
>> On Sat, Mar 20, 2010 at 1:50 PM, mr.freeze <nat...@freezable.com> wrote:
>> > I think the ability to select a skin when creating an app would be a
>> > major plus and help kick-start development for the design-impaired
>> > such as myself.
>>
>> > On Mar 20, 1:32 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>> >> I just came across this:
>>
>> >>    http://www.csszengarden.com/
>>
>> >> It is one simple html layout (only divs) with 210 PURE CSS skins:
>>
>> >>    http://www.mezzoblue.com/zengarden/alldesigns/
>>
>> >> This could be an option for the welcome app. If we use their html, it
>> >> would be trivial to add a small admin option that downloads a team to
>> >> zengarden and applies to skin. Options that require overriding the
>> >> HTML are more complex to handle.
>>
>> >> What do you think?
>>
>> >> Massimo
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "web2py-users" group.
>> > To post to this group, send email to web...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > web2py+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/web2py?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to 
> web2py+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to