One way to avoid this mistake is leave the views alone {{include
'layout.html}} and replace layout.html with "{{include
'layout_html.html}}{{include}}" This allows you change the layout file in
one single place.
On Thursday, 19 March 2015 12:03:54 UTC-5, Gael Princivalle wrote:
>
> ...Yes for sure. Sorry for that, I've totally forgot that for all over
> applications I've changed user.html.
> Thanks.
>
> Il giorno giovedì 19 marzo 2015 16:48:46 UTC+1, Niphlod ha scritto:
>>
>> default/user.html is probably using
>>
>> {{extend 'layout.html'}}
>> instead of
>> {{extend 'layout_site.html'}}
>>
>>
>>
>> On Thursday, March 19, 2015 at 9:46:54 AM UTC+1, Gael Princivalle wrote:
>>>
>>> Hello all.
>>>
>>> In all my applications I use a custom layout.html called
>>> layout_site.html.
>>> When the user login the layout is the custom one, layout_site.html, ok.
>>>
>>> But I've got an application where when the login page use the
>>> layout.html instead of the layout_site.html, so the wrong layout.
>>>
>>> Someone knows why?
>>>
>>> Thanks.
>>>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.