[ZPT] Re: [Zope-CMF] Disable default Mcros Expand in ZPT...
Andrew Sawyers
andrew@zope.com
Tue, 22 Jan 2002 11:18:32 -0500
One thing that I've explored and when time permits will explore more is
utilzing the features of \Dreamweaver's templating.
Dreamweave uses tags in the document such as: <!-- #BeginTemplate
"/Templates/main_template.dwt" --> to define the document as a template and
<!-- #BeginEditable "masthead" --> <!-- #EndEditable --> to define areas
designers can edit. The CMF skins which have editable areas can be wrapped
like this so that designers are not trying to edit the areas from the main
template when they're really trying to just edit a document view, etc.
I've not got a chance to look at how GoLive does templating.
Tests off in a sandbox I've done, work really nice. Where expansion is most
painful for me is customizing skins TTW. My technique has been to copy the
unexpanded one first, customize the template, clear the textarea, uncheck
the expand macro's checkbox and paste in the original unexpanded skin and
make my edits from there. When using tools like Dreamweaver, I definately
prefer the macro's to be expanded....It's nice to see exactly how the page
is going to look.
Andrew
-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of
Ron Bickers
Sent: Tuesday, January 22, 2002 10:49 AM
To: Tres Seaver; ycheng
Cc: zope-cmf@zope.org; ZPT List
Subject: RE: [ZPT] Re: [Zope-CMF] Disable default Mcros Expand in ZPT...
> -----Original Message-----
> From: zpt-admin@zope.org [mailto:zpt-admin@zope.org]On Behalf Of
> Tres Seaver
> > So, will it be better not to expand the macros in the default behavior..
>
> I agree that this is an annoying issue for those of us who
>
> deal with the ZPT as source; unfortunately, ZPT is designed
> for people who use it as WYSIAYG, too, and macro expansion is
> essential for them.
I wouldn't say "essential". I use Dreamweaver and still prefer the
expansion to be off. I still get all the features I need from DW, just
without the clutter of the expanded macro showing. I prefer to show in my
editor only that which I should be editing.
Note that you can set 'expand = 0' under 'class PageTemplate' in
PageTemplate.py to turn off the default expansion for newly created ZPTs.
It's a pain when you forget at the next upgrade, but it works for now.
_______________________
Ron Bickers
Logic Etc, Inc.
_______________________________________________
Zope-CMF maillist - Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf
See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests