What is the Bare-ist of Templates

10 messages Options
Embed this post
Permalink
BruceND75 () What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
I would like to have my sites default page exist as a simple html file simly embedding an swf file.

How can I strip all of the non-essential template structure down to let me accomplish?

Thanks!

Bruce Deutsch


_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
Espen Moe-Nilssen () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Plone can serve html files

(=add a file, make the contents of it the html (made in dreamweaver or someething).

Go to the url





_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
BruceND75 () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Espen,

Thank you.  However, I am wanting the SWF to exist outside a plone page's template.  I'll be using normal plone templating on the "backend" where'll I'll be managing content, but for the viewing of content, I want it all to go through the SWF UI file.

Am I making sense?


From: Espen Moe-Nilssen <[hidden email]>
To: Bruce Deutsch <[hidden email]>
Cc: [hidden email]
Sent: Monday, December 22, 2008 4:36:05 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Plone can serve html files

(=add a file, make the contents of it the html (made in dreamweaver or someething).

Go to the url






_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
vedaw () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
In reply to this post by BruceND75
Some javascript/style in this post has been disabled (why?)
Re: [Plone-UI] What is the Bare-ist of Templates I would just strip down document_view.pt to include what you need, name it homepage_view.pt, and select that as the default view of your site’s homepage. That’s the easiest way to clean out any chaff you don’t want. Then, just embed your .swf code into the homepage_view.pt, and you are good to go.

Best,

- Veda


On 12/22/08 3:35 AM, "Bruce Deutsch" <[hidden email]> wrote:

I would like to have my sites default page exist as a simple html file simly embedding an swf file.

How can I strip all of the non-essential template structure down to let me accomplish?

Thanks!

Bruce Deutsch

 

_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui


_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
BruceND75 () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Veda,

That sounds exactly right.  Will give it a try and report back.

At the same time, while I've got a moment of yours, would you mind elaborating on this area a bit?

I started off a few years ago with early Plone (1 point something), then drifted away for awhile.  When I came back, I'm on Plone 3 and Zope is hovering between 2 and 3.

I'm having trouble comprehending the new Big Picture when it comes to controlling the Display.  As an "old timer", I guess, I'm used to the template being the ultimate control-point.  The intervention of viewlets, and how they fit into a larger schema/philosophy along with the template --->>> that's what I'm missing in this New World.

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.

I dutifully read Andy McKay's bible back when.  This is one area (along with membership) that could use an updated bible.

Thanks for you reply and would appreciate any further wisdom,

Bruce Deutsch

(And I'm open to Wisdom from the mailing list.)


From: Veda Williams <[hidden email]>
To: Bruce Deutsch <[hidden email]>; [hidden email]
Sent: Monday, December 22, 2008 10:10:33 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Re: [Plone-UI] What is the Bare-ist of Templates I would just strip down document_view.pt to include what you need, name it homepage_view.pt, and select that as the default view of your site’s homepage. That’s the easiest way to clean out any chaff you don’t want. Then, just embed your .swf code into the homepage_view.pt, and you are good to go.

Best,

- Veda


On 12/22/08 3:35 AM, "Bruce Deutsch" <[hidden email]> wrote:

I would like to have my sites default page exist as a simple html file simly embedding an swf file.

How can I strip all of the non-essential template structure down to let me accomplish?

Thanks!

Bruce Deutsch

 

_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui



_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
Espen Moe-Nilssen () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
In reply to this post by BruceND75
Some javascript/style in this post has been disabled (why?)
Not really.

Is not this what you want:

• User is view a "plone page"
• User clicks a link
• A page (as simple as possible, maybe just a html-file with an embedded swf-file opens

?

In this case:
Make the html page as a file, upload the code (made in dreamveawer and the swf-file and link to it from plone

If this is not the case:
It is possible to have pages without any plone stuff and still use functions from plone
(You might want to make a view here).





Den 22. des. 2008 kl. 14.10 skrev Bruce Deutsch:

Espen,

Thank you.  However, I am wanting the SWF to exist outside a plone page's template.  I'll be using normal plone templating on the "backend" where'll I'll be managing content, but for the viewing of content, I want it all to go through the SWF UI file. 

Am I making sense?


From: Espen Moe-Nilssen <[hidden email]>
To: Bruce Deutsch <[hidden email]>
Cc: [hidden email]
Sent: Monday, December 22, 2008 4:36:05 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Plone can serve html files

(=add a file, make the contents of it the html (made in dreamweaver or someething).

Go to the url








_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
BruceND75 () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Espen,

I see what you mean.  Thank you for sticking in there.

I'm slowly moving in the direction of a complete, elegant solution to this, though it is taking some time.

Ultimately, I want to create a standard "window" into the whole world of "objects" that exist/can-exist in the realm of zope/plone.  Rather than use xhtml as the primary window mechanism, I want to use the Flash Player.  The idea is to use all the power of Flash/Actionscript (and, even, PaperVision3D) as the visual medium, with all the object managing power of Zope/Plone.

I'm moving to the idea of creating a new object type called FlashSite, cloning either from Plone4ArtistsVideo or ATFlashMovie, to associate with the SWF.  Then, I'll build a view to associate with the instantiation of the Flash Site.

Sound right?  Your thoughts on Plone4ArtistsVideo or ATFlashMovie as the source for the object cloning?

Thanks again.


From: Espen Moe-Nilssen <[hidden email]>
To: Bruce Deutsch <[hidden email]>
Cc: [hidden email]
Sent: Tuesday, December 23, 2008 12:01:39 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Not really.

Is not this what you want:

• User is view a "plone page"
• User clicks a link
• A page (as simple as possible, maybe just a html-file with an embedded swf-file opens

?

In this case:
Make the html page as a file, upload the code (made in dreamveawer and the swf-file and link to it from plone

If this is not the case:
It is possible to have pages without any plone stuff and still use functions from plone
(You might want to make a view here).





Den 22. des. 2008 kl. 14.10 skrev Bruce Deutsch:

Espen,

Thank you.  However, I am wanting the SWF to exist outside a plone page's template.  I'll be using normal plone templating on the "backend" where'll I'll be managing content, but for the viewing of content, I want it all to go through the SWF UI file. 

Am I making sense?


From: Espen Moe-Nilssen <[hidden email]>
To: Bruce Deutsch <[hidden email]>
Cc: [hidden email]
Sent: Monday, December 22, 2008 4:36:05 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Plone can serve html files

(=add a file, make the contents of it the html (made in dreamweaver or someething).

Go to the url









_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
vedaw () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
In reply to this post by BruceND75
Some javascript/style in this post has been disabled (why?)
Re: [Plone-UI] What is the Bare-ist of Templates Hi Bruce,

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’s eggs/ directory. There’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.

The shift to viewlets for all other visual changes means that you have to make a few decisions. If you’re a serious themer, you’re going to want to go straight to filesystem development. If you’re just dabbling, you might be able to make do with making changes in the portal_view_customizations area. It’s sort of a half-baked space: you can make changes to the look and feel of viewlets, but you can’t change the behavior of the Python code that creates the viewlets. It’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.

The wiring up is where things get a little dodgy. What it comes down to is that the old stuff you’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.  

The process is pretty well documented here, though a lot of the “why” doesn’t get answered.


What’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’t seen by the average themer. I know this probably doesn’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’re halfway there.


There’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:

http://www.packtpub.com/practical-plone-3-beginners-guide-to-building-powerful-websites/book
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’s still helpful to understand filesystem development for the long haul.



On 12/22/08 10:48 PM, "Bruce Deutsch" <[hidden email]> wrote:

Veda,

That sounds exactly right.  Will give it a try and report back.

At the same time, while I've got a moment of yours, would you mind elaborating on this area a bit?

I started off a few years ago with early Plone (1 point something), then drifted away for awhile.  When I came back, I'm on Plone 3 and Zope is hovering between 2 and 3.

I'm having trouble comprehending the new Big Picture when it comes to controlling the Display.  As an "old timer", I guess, I'm used to the template being the ultimate control-point.  The intervention of viewlets, and how they fit into a larger schema/philosophy along with the template --->>> that's what I'm missing in this New World.

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.

I dutifully read Andy McKay's bible back when.  This is one area (along with membership) that could use an updated bible.

Thanks for you reply and would appreciate any further wisdom,

Bruce Deutsch

(And I'm open to Wisdom from the mailing list.)


From: Veda Williams <[hidden email]>
To: Bruce Deutsch <[hidden email]>; [hidden email]
Sent: Monday, December 22, 2008 10:10:33 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Re: [Plone-UI] What is the Bare-ist of Templates I would just strip down document_view.pt <http://document_view.pt>  to include what you need, name it homepage_view.pt <http://homepage_view.pt> , and select that as the default view of your site’s homepage. That’s the easiest way to clean out any chaff you don’t want. Then, just embed your .swf code into the homepage_view.pt, and you are good to go.

Best,

- Veda


On 12/22/08 3:35 AM, "Bruce Deutsch" <[hidden email]> wrote:

I would like to have my sites default page exist as a simple html file simly embedding an swf file.

How can I strip all of the non-essential template structure down to let me accomplish?

Thanks!

Bruce Deutsch

 

_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui


 


_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
vedaw () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Re: [Plone-UI] What is the Bare-ist of Templates Oops, that got sent prematurely. I wanted to include these links:

http://plone.org/documentation/tutorial/customizing-main-template-viewlets
http://plone.org/documentation/manual/theme-reference

Sorry for the disjointed email below, I was still in edit mode. :)

On 12/23/08 10:39 AM, "Veda Williams" <[hidden email]> wrote:

Hi Bruce,

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’s eggs/ directory. There’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.

The shift to viewlets for all other visual changes means that you have to make a few decisions. If you’re a serious themer, you’re going to want to go straight to filesystem development. If you’re just dabbling, you might be able to make do with making changes in the portal_view_customizations area. It’s sort of a half-baked space: you can make changes to the look and feel of viewlets, but you can’t change the behavior of the Python code that creates the viewlets. It’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.

The wiring up is where things get a little dodgy. What it comes down to is that the old stuff you’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.  

The process is pretty well documented here, though a lot of the “why” doesn’t get answered.


What’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’t seen by the average themer. I know this probably doesn’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’re halfway there.


There’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:

http://www.packtpub.com/practical-plone-3-beginners-guide-to-building-powerful-websites/book
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’s still helpful to understand filesystem development for the long haul.



On 12/22/08 10:48 PM, "Bruce Deutsch" <[hidden email]> wrote:

Veda,

That sounds exactly right.  Will give it a try and report back.

At the same time, while I've got a moment of yours, would you mind elaborating on this area a bit?

I started off a few years ago with early Plone (1 point something), then drifted away for awhile.  When I came back, I'm on Plone 3 and Zope is hovering between 2 and 3.

I'm having trouble comprehending the new Big Picture when it comes to controlling the Display.  As an "old timer", I guess, I'm used to the template being the ultimate control-point.  The intervention of viewlets, and how they fit into a larger schema/philosophy along with the template --->>> that's what I'm missing in this New World.

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.

I dutifully read Andy McKay's bible back when.  This is one area (along with membership) that could use an updated bible.

Thanks for you reply and would appreciate any further wisdom,

Bruce Deutsch

(And I'm open to Wisdom from the mailing list.)


From: Veda Williams <[hidden email]>
To: Bruce Deutsch <[hidden email]>; [hidden email]
Sent: Monday, December 22, 2008 10:10:33 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Re: [Plone-UI] What is the Bare-ist of Templates I would just strip down document_view.pt <http://document_view.pt>  to include what you need, name it homepage_view.pt <http://homepage_view.pt> , and select that as the default view of your site’s homepage. That’s the easiest way to clean out any chaff you don’t want. Then, just embed your .swf code into the homepage_view.pt, and you are good to go.

Best,

- Veda


On 12/22/08 3:35 AM, "Bruce Deutsch" <[hidden email]> wrote:

I would like to have my sites default page exist as a simple html file simly embedding an swf file.

How can I strip all of the non-essential template structure down to let me accomplish?

Thanks!

Bruce Deutsch

 

_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui


 



_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
vedaw () Re: What is the Bare-ist of Templates
Reply Threaded More More options
Print post
Permalink
In reply to this post by BruceND75
Some javascript/style in this post has been disabled (why?)
Re: [Plone-UI] What is the Bare-ist of Templates I forgot one other thing: I’m currently writing a new book on theming that will be coming out in the spring of 2009. My hope is that the book will be relevant for quite some time and will bridge the gap between Deliverance and the crazy Zope 2+3 world of theming. You can still get quite a bit out of the Practical Plone book which will be out sooner, but if you’re interested, stay tuned.


On 12/22/08 10:48 PM, "Bruce Deutsch" <[hidden email]> wrote:

Veda,

That sounds exactly right.  Will give it a try and report back.

At the same time, while I've got a moment of yours, would you mind elaborating on this area a bit?

I started off a few years ago with early Plone (1 point something), then drifted away for awhile.  When I came back, I'm on Plone 3 and Zope is hovering between 2 and 3.

I'm having trouble comprehending the new Big Picture when it comes to controlling the Display.  As an "old timer", I guess, I'm used to the template being the ultimate control-point.  The intervention of viewlets, and how they fit into a larger schema/philosophy along with the template --->>> that's what I'm missing in this New World.

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.

I dutifully read Andy McKay's bible back when.  This is one area (along with membership) that could use an updated bible.

Thanks for you reply and would appreciate any further wisdom,

Bruce Deutsch

(And I'm open to Wisdom from the mailing list.)


From: Veda Williams <[hidden email]>
To: Bruce Deutsch <[hidden email]>; [hidden email]
Sent: Monday, December 22, 2008 10:10:33 AM
Subject: Re: [Plone-UI] What is the Bare-ist of Templates

Re: [Plone-UI] What is the Bare-ist of Templates I would just strip down document_view.pt <http://document_view.pt>  to include what you need, name it homepage_view.pt <http://homepage_view.pt> , and select that as the default view of your site’s homepage. That’s the easiest way to clean out any chaff you don’t want. Then, just embed your .swf code into the homepage_view.pt, and you are good to go.

Best,

- Veda


On 12/22/08 3:35 AM, "Bruce Deutsch" <[hidden email]> wrote:

I would like to have my sites default page exist as a simple html file simly embedding an swf file.

How can I strip all of the non-essential template structure down to let me accomplish?

Thanks!

Bruce Deutsch

 

_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui


 


_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui