question
Lukas Renggli
renggli at iam.unibe.ch
Wed Apr 13 19:13:42 MEST 2005
Hi Gianluca,
> I've built with smallwiki a page with links to three actions: "view",
> "edit" and "contents". In "view" I have a table with two columns, the
> first is the title of project and the second is the date that I would
> want to insert with “edit”. My problem is that I can’t insert the date
> in the second column of the table.
>
> One possible example is that one on:
>
> http://www.seaside.st/Documentation/?action=SWFolderEdit
>
> How do you get the date in the “modified “column? I need exactly to do
> that.
allright, I think I get it know; so you just need a read-only view of
the date? Why don't you just have a look at the code and how it is done
there?
Structure>>modificationString
^String streamContents: [ :stream |
stream nextPutAll: self timestamp printString.
self creatorName notNil ifTrue: [
stream nextPutAll: ' by '; nextPutAll: self creatorName ].
self creatorIp notNil ifTrue: [
stream nextPutAll: ' from '; nextPutAll: self creatorIp ] ].
where the printing of the timestamp itself is implemented in the class
Timestamp.
HTH,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the SmallWiki
mailing list