> Is there anyway to let a non-power user of Plone
> define a newsletter layout
> that takes, say, 15 upcoming events and lets them
> define how to display them, e.g. like
>
> <h2 tal:content="item/Title" />
> <p tal:content="item/Description" />
>
> but without forcing them to know TALES or go into the ZMI?
<snip>
> [[Title]] would appear, letting
> you compose something like:
> <h2>[[Title]]</h2>
> <p>[[Description]]</p>
For the eCampaigning Tool we have developed (in Plone Collective
SVN now and due to be released in alpha this week) one of the
associated products we developed for it is ATDataMerge (also in
Plone Collective) which enables us to insert dynamic variables
into different content (e.g. firstname, title, description, etc.)
It needs to be integrated by a developer into other products, but
I see no reason why ATDataMerge it couldn't be used for the
purpose you describe as well. (variables are inserted via simple
[firstname] type square brackets)
> Then going farther, you would want there to be a way
> to loop through all your
> items
>
> <tal:block repeat="item items" />
>
> so you'd want a way to specify
>
> These are the upcoming events:
> [[Begin loop of items]]
> <h2>[[Title]]</h2>
> <p>[[Description]]</p>
> [[End loop items]]
At the moment it doesn't directly support looping, but with more
development a solution for this could be found. It also doesn't
yet directly support conditional content (e.g. if firstname
exists, use it otherwise display this generic greeting). I say
'doesn't directly support' because an approach could be found
using a 'getMergeData' python script which returns the right list
of variable for insertion (e.g. in a loop: [Title1],
[Description1], [Title2], [Description2], etc.)
As I said - ATDataMerge is a developer component so can't be used
directly and must be integrated. But by releasing it as a
separate product from eCampaigning Tool we hope others will find
it useful and integrate it into their products (and help extend
it!).
Hope this helps.
Cheers,
Duane
PS - my colleague - Saffe - was the one developing the product -
I identify the needs, set the priorities for development and test
it meets those needs)
===========================================================
Duane Raymond
FairSay
+44 (0)207 993 4200
http://www.fairsay.com_______________________________________________
NGO mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ngo