Tiago,

as I already said, the initializer IS NOT the problem: removing it WILL NOT
FIX the problem. Removing the <set-theme name="clean"> from any subsite
does. In practice you cannot set the theme more than once: if you do that
unpredictable results may occours. (well, they are actually predictable by
looking at the order of the libraries your application is loading).

ciao
dd


On Tue, Mar 8, 2011 at 2:08 PM, Tiago Franco <[email protected]> wrote:

> Hi,
>
> I  agree. For now I think the code on the initializer should be removed.
>
> Thanks,
>  TF
>
>
> On 08-03-2011 17:24, Owen wrote:
>
>> Perhaps to be put in the queue for Hobo 1.3.1. : -)
>>
>> On Mar 7, 10:00 am, Domizio Demichelis<[email protected]>  wrote:
>>
>>> Tiago,
>>>
>>> the "messed up version of the clean theme" suggests that you probably
>>> have
>>> set the "clean" theme in a subsite and a custom theme in another.
>>>
>>> Despite what anybody would expect, the theme system is not able to show 2
>>> themes for the same app. I have tried to find a quick fix a few days ago
>>> when I created the clean-sidemenu theme.
>>>
>>> I also asked Tom about that "Wouldn't it be nice if the theme was not
>>> application-whide, but subsite wide?", and he told me "I agree. Subsite
>>> themes would be better. The theme system was never given much love."
>>>
>>> After commenting the code on the initializer dryml_taglibs.rb, everything
>>>
>>>  works fine.
>>>>
>>> I don't think so :-). It works fine with ONE theme at a time, actually
>>> the
>>> theme that is loaded first, but if you switch to the susbsite with the
>>> clean
>>> theme it will be messed up because the set_theme will not change the
>>> theme
>>> dynamically. Try it: the initializer just change the order the theme is
>>> loaded so it might appear as the cause of the problem but it isn't:
>>> having 2
>>> themes IS the problem.
>>>
>>> In practice, you can make it work in development with a quite simple
>>> patch,
>>> but in production it needs a deeper refactory in order to be used as you
>>> (probably) need. It's not a huge refactory, but since it doesn't look
>>> like a
>>> quick fix, it needs some higer decision ;-)
>>>
>>> ciao
>>> dd
>>>
>>> On Sun, Mar 6, 2011 at 5:58 PM, Tiago Franco<[email protected]>
>>>  wrote:
>>>
>>>> Hi,
>>>> I'm using Hobo 3 in an app and I've bumped into an issue that is
>>>> happening
>>>> only in production.
>>>> I use the set-theme tag to change the theme of the app. All works well
>>>> on
>>>> development and staging. On production the page renders a messed up
>>>> version
>>>> of the clean theme. This is only happening in production.
>>>> After commenting the code on the initializer dryml_taglibs.rb,
>>>> everything
>>>> works fine. Don't know what's wrong though.
>>>> Thanks,
>>>>  TF
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups
>>>> "Hobo 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/hobousers?hl=en.
>>>>
>>>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo 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/hobousers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
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/hobousers?hl=en.

Reply via email to