Alriiighty. What i'm wanting to do is to put up a 'news' table for the side of my page -- think, www.zope.org -- 'News'? :) The way I have it set up is a News/ subfolder, with an Items/ folder beneath it that has a group of dtml documents in the format of YY-MM-DD.SS, with a title that describes what the news is about. SS is a serial number, btw, in case there's more then one news in a day. Now, the News/content_html method should basically build a list, and transform the id into "MM/DD/20YY (#SS) title". How do I do that? :) Being a zope-newbie, I tried the following: --------------- <ul> <dtml-in expr="Items.objectValues()"> <li><dtml-eval> anchor_text = ":%s:%s/%s/20%s (#%s) %s" % ( id,id[3:5], id[6:8], id[0:2], id[-2:], title) </dtml-eval><dtml-var anchor_text> </dtml-in> </ul> ---------- ...except id is apparently not a string, nor something sliceable... what do I dooo? :) Thanks in advance! --Stephen http://www.myseraph.org/
Stephen Hansen wrote:
Alriiighty. What i'm wanting to do is to put up a 'news' table for the side of my page -- think, www.zope.org -- 'News'? :)
DON'T post in HTML
Apologies. New installation, forgot to turn plain text to the default for everything.
DO use Squishdot (Plain Demo)
.. I do not wish a squishdot-like site. Otherwise I would. --S
Generic wrote:
DO use Squishdot (Plain Demo)
.. I do not wish a squishdot-like site. Otherwise I would.
If you use the plain demo (rather than the fancy one, which is probably what you're thinking of) and customize it a bit, you get exactly what you want. It's up to you of course :-) Chris
participants (3)
-
Chris Withers -
Generic -
Stephen Hansen