Re: I hate complexity in HTML/CSS/JavaScript

Asko Soukka <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
>> On 12/28/13, 1:37 PM, Asko Soukka wrote:
>> 
>>>> https://pypi.python.org/pypi/plonetheme.sunburst#how-to-depend-on-sunburst-for-your-custom-theme
>>> 
>>> Thanks, one question: what does "Of course, the mycustom_skin needs to
>>> be registered too." mean in this context? I'm guessing this is a
>>> reference to a new-style theme layer and not an old-style portal skin?
>> 
>> It means old-style skin, which can be created TTW from properties tab in portal_skins.
>> 
>> In new resource registries all resources must be mapped into "bundles". Bundles are then mapped into skins so that each skin can include multiple and overlapping bundles. Cooked css/javascript will then include all resources from all bundles mapped for the currently active skin. Very flexible, but a bit complex and pain to manage both TTW or using GS-XMLs.
>> 
>> Of course, all stuff related to skins and resource registries must be managed manually TTW or with GS-XMLs (there's no automation for them in p.a.theming).
> 
> So the "best practice" [1] is to copy <head> from content to theme via 
> Diazo rule and then make sure the appropriate bundles are included in 
> <head>?

Well, it feels the only sane way, if you need sunburst styles within your theme and don't want to export/sync them manually. The easiest way, of course, is to have unthemed Plone for logged in users, but that would take away Plone's "edit pages in their context" magic.

And, currently, that rule is there already when you create new theme TTW with p.a.theming's theme editor.

If it really seems that there is no new solutions for this, besides toolbar, maybe we should add registries+bundles+skins-integration for p.a.theming[plugins?] so that each theme would have implicit skin with the default + theme specific bundles in place when theme is activated.

-Asko


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.