[ZDP] ZDP-Tools: Content_Plus_News_Template
Maik Roeder
roeder@berg.net
Mon, 17 Jan 2000 20:45:59 +0100
Hi Kamon !
> Sorry to bother you again.
Feedback is always great to have, so just feel free to contact me.
> When I go here http://zdp.zope.org:8080/ZDP/projects/zdptools
> I find that the way you display the News is really good.
Just manage the content there to see how it is done. This stuff must
be removed from the content, but I just wanted to try how it looks.
The content is really just the content, and no DTML should be entered
there, or maybe just temporarily as I just did.
It is getting clear that what I may be producing for one page could be interesting
for your pages as well, so this kind of thing should be moving into the ZClasses.
Now that I see the problem clear, I think the first thing to do is to put the
table into the standard_zdp_template. Still, once you have copied the
standard_zdp_template, you can not profit from any enhancements.
What has to be done is putting the stuff that can be generalized into
some ZClass. I think it should be put into the DocumentFolder as
Template_plus_news
Then you still need a standard_zdp_template:
<dtml-var Content_Plus_News_Template>
But the difference is now that you profit from any changes to Content_Plus_News_Template.
All this template stuff should one day be put into a property of DocumentFolder.
Then, you can choose from a whole list of possible view, and things will
be much more customizable without having to change a standard_zdp_template.
Please feel free to make the changes to any degree, if you find the time, or
just copy the stuff from content over.
Should you run into any problems then I will happily answer
any of your questions.
Best regards,
Maik