<HTML>
<HEAD>
<TITLE>Re: [Plone-UI] What is the Bare-ist of Templates</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10.0px'>Oops, that got sent prematurely. I wanted to include these links:<BR>
<BR>
<a href="http://plone.org/documentation/tutorial/customizing-main-template-viewlets">http://plone.org/documentation/tutorial/customizing-main-template-viewlets</a><BR>
<a href="http://plone.org/documentation/manual/theme-reference">http://plone.org/documentation/manual/theme-reference</a><BR>
<BR>
Sorry for the disjointed email below, I was still in edit mode. :) <BR>
<BR>
On 12/23/08 10:39 AM, &quot;Veda Williams&quot; &lt;veda@onenw.org&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10.0px'>Hi Bruce,<BR>
<BR>
You ask a large question here. First off, yes, things have changed dramatically between Plone 2.5 and Plone 3.0 in terms of the theming process. The page templates you are accustomed to modifying to achieve visual change have all moved out into an egg called plone.app.viewlets that you can find in your buildout&#8217;s eggs/ directory. There&#8217;s also an egg called plone.app.portlets and plone.app.content that may come in handy at some point. Things like main_template and plone_templates like document_view, folder_view, etc, can still be accessed the same old way in portal_skins.<BR>
<BR>
The shift to viewlets for all other visual changes means that you have to make a few decisions. If you&#8217;re a serious themer, you&#8217;re going to want to go straight to filesystem development. If you&#8217;re just dabbling, you might be able to make do with making changes in the portal_view_customizations area. It&#8217;s sort of a half-baked space: you can make changes to the look and feel of viewlets, but you can&#8217;t change the behavior of the Python code that creates the viewlets. It&#8217;s also hard to productize stuff in portal_view_customizations. If you need to move things to the filesystem, you have to do it by hand, and a bunch of wiring up of components needs to happen. <BR>
<BR>
The wiring up is where things get a little dodgy. What it comes down to is that the old stuff you&#8217;re used to modifying (main_template, plone_templates) go in your skins folder for your theme, and the new stuff generally all goes in a different folder called browser/ and gets some special treatment. &nbsp;<BR>
<BR>
The process is pretty well documented here, though a lot of the &#8220;why&#8221; doesn&#8217;t get answered. <BR>
<BR>
<BR>
What&#8217;s happened, ultimately, is that a process that makes things easier for coders has been pushed onto themers, and so a lot of the benefit of this change isn&#8217;t seen by the average themer. I know this probably doesn&#8217;t answer all of your questions, but if you look at theming from the perspective of thinking like a programmer instead of a CSS person, you&#8217;re halfway there. <BR>
<BR>
<BR>
There&#8217;s also a new book coming out which has a great chapter on theming. (I helped write it with David Convent.) We just delivered all of the chapters to the publisher about a week ago, and it is currently in pre-production. You can pre-order it here:<BR>
<BR>
<a href="http://www.packtpub.com/practical-plone-3-beginners-guide-to-building-powerful-websites/book">http://www.packtpub.com/practical-plone-3-beginners-guide-to-building-powerful-websites/book</a><BR>
Luckily, this is just a middle ground for us right now. Deliverance will be making things easier moving forward and will abstract a lot away from the noise of viewlets, viewlet managers, etc., but it&#8217;s still helpful to understand filesystem development for the long haul. <BR>
<BR>
<BR>
<BR>
On 12/22/08 10:48 PM, &quot;Bruce Deutsch&quot; &lt;brucend75@yahoo.com&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10.0px'>Veda,<BR>
<BR>
That sounds exactly right. &nbsp;Will give it a try and report back.<BR>
<BR>
At the same time, while I've got a moment of yours, would you mind elaborating on this area a bit?<BR>
<BR>
I started off a few years ago with early Plone (1 point something), then drifted away for awhile. &nbsp;When I came back, I'm on Plone 3 and Zope is hovering between 2 and 3.<BR>
<BR>
I'm having trouble comprehending the new Big Picture when it comes to controlling the Display. &nbsp;As an &quot;old timer&quot;, I guess, I'm used to the template being the ultimate control-point. &nbsp;The intervention of viewlets, and how they fit into a larger schema/philosophy along with the template ---&gt;&gt;&gt; that's what I'm missing in this New World.<BR>
<BR>
I'd really appreciate it if you could take a moment when you have a chance to share your take on that slice of the world.<BR>
<BR>
I dutifully read Andy McKay's bible back when. &nbsp;This is one area (along with membership) that could use an updated bible.<BR>
<BR>
Thanks for you reply and would appreciate any further wisdom,<BR>
<BR>
Bruce Deutsch<BR>
<BR>
(And I'm open to Wisdom from the mailing list.)<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:10.0px'><FONT FACE="Tahoma"><HR ALIGN=CENTER SIZE="1" WIDTH="100%"><B>From:</B> Veda Williams &lt;veda@onenw.org&gt;<BR>
<B>To:</B> Bruce Deutsch &lt;brucend75@yahoo.com&gt;; ui@lists.plone.org<BR>
<B>Sent:</B> Monday, December 22, 2008 10:10:33 AM<BR>
<B>Subject:</B> Re: [Plone-UI] What is the Bare-ist of Templates<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
Re: [Plone-UI] What is the Bare-ist of Templates I would just strip down document_view.pt <a href="http://document_view.pt">&lt;http://document_view.pt&gt;</a> &nbsp;to include what you need, name it homepage_view.pt <a href="http://homepage_view.pt">&lt;http://homepage_view.pt&gt;</a> , and select that as the default view of your site&#8217;s homepage. That&#8217;s the easiest way to clean out any chaff you don&#8217;t want. Then, just embed your .swf code into the homepage_view.pt, and you are good to go.<BR>
<BR>
Best,<BR>
<BR>
- Veda <BR>
<BR>
<BR>
On 12/22/08 3:35 AM, &quot;Bruce Deutsch&quot; &lt;brucend75@yahoo.com&gt; wrote:<BR>
<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:10.0px'><FONT FACE="Verdana, Helvetica, Arial">I would like to have my sites default page exist as a simple html file simly embedding an swf file.<BR>
<BR>
How can I strip all of the non-essential template structure down to let me accomplish?<BR>
<BR>
Thanks!<BR>
<BR>
Bruce Deutsch<BR>
<BR>
&nbsp;<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></FONT><FONT FACE="Monaco, Courier New">_______________________________________________<BR>
UI mailing list<BR>
UI@lists.plone.org<BR>
<a href="http://lists.plone.org/mailman/listinfo/ui">http://lists.plone.org/mailman/listinfo/ui</a><BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:10.0px'><FONT FACE="Monaco, Courier New"><BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
&nbsp;<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:10.0px'><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:10.0px'><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT></SPAN>
</BODY>
</HTML>