Re: do we need plone.app.customerize? was: [Plone-Users] Insufficient privileges on folder_contents
Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12 Dec 2013, at 6:10 pm, Asko Soukka <[email protected]> wrote: > Hi, > > how about replacing plone.app.customerize with ZPT Fragments? > > https://github.com/plone/plone.app.theming/pull/10 > > That'd bring one more way to "define views", but only after two old ones (portal_skins and portal_view_customization) has been taken away. Also, all TTW methods would be in p.a.theming then. +1 I think the ZPT fragments idea would be a great start. It would provide a way to patch parts of a view that require python or TAL and it would scale up to providing full new template views. To apply a new view to a content type you'd just need a diazo rule for the contenttype css class. I think it would be even better if diazo would allow you to place the ZPT fragments relative to content, not just relative to the html mockup. For example lets say you had a ZPT fragment that displayed the last updated date for the content. If you mockup was <div class="content">dummy</div> and your content was <body class="contenttype-page"> <div class="mycontent"> <h1>title</h1> blah </div> </page> your rules are <replace css:content=".mycontent" css:theme="content" css:if="body.contenttype-page"/> and your ZPT fragment was <div class="lastupdated" tal:content="context/ModificationDate"/> If you wanted insert this below the H1 you can't. The only way you can do that is to change your rules to seperatly replace a mock H1 and mock content. It would be really nice if you could instead do <after css:content="body.contenttype-page h1" css:href-content-children=". lastupdated" href="./lastupdated.pt" /> I don't know how hard it is technically. Hopefully it doesn't require a double transform. Also In a previous discussion [1] it was suggested starting with ZPT fragments and then later adding the ability to include tiles as well as ZPT fragments. Tiles would essentially be acting as a ZPT fragment that you "configure" instead of code. The configuration of a tile could be stored as YAML or something that could be edited as text. This would allow something like collective.listingviews to a tile contained in a theme. This would be a great way to lower the learning curve so users don't have to learn ZPT or could insert prebuilt reusable components such a menu. I'm wondering if this could replace viewlets. [1] http://markmail.org/message/q52lv4pyh4zn3cdd#query:+page:1+mid:6oqjgbip6pfh2c7m+state:results > > -Asko > > > Nathan Van Gheem wrote: >> FWIW, it might be worth it posing this question on the plone users list. >> >> Hard core developers are not usually the people we are targeting for simple site customizations TTW--we're targeting integrators, themers and newcomers. It's too bad we don't have more consensus on desiring to make the TTW story better--I think it's very important to the success and adoption of plone. >> >> >> On Wed, Dec 11, 2013 at 9:17 PM, Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected] <mailto:djay-n0pU0XVUApFWk0Htik3J/[email protected]>> wrote: >> >> On 12 Dec 2013, at 10:00 am, Lennart Regebro <[email protected] >> <mailto:[email protected]>> wrote: >> >> > On Thu, Dec 5, 2013 at 6:18 AM, Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected] >> <mailto:djay-n0pU0XVUApFWk0Htik3J/[email protected]>> wrote: >> >> However removing it and skins still leaves us with no core >> solution for templates :( >> > >> > Good! >> > >> >> We don't really have agreement on a replacement but I think we >> need one. zbot is not a TTW solution. >> > >> > We need less ways to define views, not more. If that means we >> drop TTW >> > solutions, so be it. >> >> I agree we need the total number of ways to define views to not grow. >> However just because you don't have a need for TTW solutions >> doesn't mean TTW isn't very important for Plone. >> >> I've given two talks so far on why we think TTW is very important >> for Plone and also why almost all client work we do is now TTW. >> Rather than repeat the same arguments again, if you have time, >> have a quick flip through the slides or watch the video. >> >> http://www.slideshare.net/djay/plone-the-open-source-cmsasaservice-platform >> http://www.slideshare.net/djay/ttw-ftw-plone-as-the-new-wordpress >> >> It's for these reasons I think this is a very important discussion >> and we need to get the future of defining views TTW right. >> IMO it needs to be >> - Easy learning curve if you are progressing from diazo >> - simple to understand. doesn't require deep understanding of how >> plone works. >> - allow you to work in almost the same way TTW and in FS. >> - be deployable in a theme zip or similar (as well as eggs) >> - capable enough that it could replace almost all existing FS >> template overrides, views etc so you could almost have a single >> way of working >> >> >> >> >> ------------------------------------------------------------------------------ >> 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 >> <http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk> >> _______________________________________________ >> Plone-developers mailing list >> Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >> <mailto:Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> >> https://lists.sourceforge.net/lists/listinfo/plone-developers >> >> >> >> >> -- >> Nathan Van Gheem >> Solutions Architect >> Wildcard Corp >> ------------------------------------------------------------------------------ >> 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 >> _______________________________________________ >> Plone-developers mailing list >> Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >> https://lists.sourceforge.net/lists/listinfo/plone-developers ------------------------------------------------------------------------------ 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