From 55a3660c1d3ff24ace1fbc89b40760014ed4d003 Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 22 Aug 2005 17:14:01 +0000 Subject: [PATCH] derived a layout from Nat!'s blog git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1061 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- .../CoreDataBlog/MonthPage.wo/MonthPage.html | 174 +++++++++++++++--- .../CoreDataBlog/MonthPage.wo/MonthPage.wod | 19 +- 2 files changed, 167 insertions(+), 26 deletions(-) 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 { -- 2.39.5