From: helge Date: Mon, 22 Aug 2005 17:14:01 +0000 (+0000) Subject: derived a layout from Nat!'s blog X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55a3660c1d3ff24ace1fbc89b40760014ed4d003;p=sope derived a layout from Nat!'s blog git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1061 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.html b/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.html index f1fe8e90..ce880446 100644 --- a/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.html +++ b/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.html @@ -4,6 +4,7 @@ SOPE CoreData Test: MonthPage - - - - - <#Weeks> - - <#Week> - <#IsSameMonth> - - - <#IsOtherMonth> - - - - - -
<#MonthName/>
<#Day/><#Day/>
- - -

Posts

- <#Posts> -

<#PostTitle/>

-

<#PostBody/>

- + + + +
+ +
+ <#Posts> +

<#PostDate/>

+ +
+

<#PostTitle/>

+ <#PostBody/> + +
+ Posted by <#PostAuthor/> at <#PostTime/>. +
+
+ +
+ +
+ + + diff --git a/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod b/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod index 93d8ca53..c3b3c94d 100644 --- a/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod +++ b/sope-appserver/samples/CoreDataBlog/MonthPage.wo/MonthPage.wod @@ -5,6 +5,18 @@ Posts: WORepetition { item = post; } +PostDate: WOString { + value = post.creationDate; + valueWhenEmpty = "[no date]"; + dateformat = "%d.%m.%y"; +} + +PostTime: WOString { + value = post.creationDate; + valueWhenEmpty = "[no time]"; + dateformat = "%H:%M"; +} + PostTitle: WOString { value = post.title; valueWhenEmpty = "[no title]"; @@ -13,13 +25,16 @@ PostBody: WOString { value = post.body; valueWhenEmpty = "[no body]"; } +PostAuthor: WOString { + value = post.author.name; +} // Calendar -MonthName: WOString { +CalMonthName: WOString { value = date; - dateformat = "%B"; + dateformat = "%B %Y"; } Weeks: WORepetition {