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
<[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.