}
caption.calendarhead {
font-family: palatino, georgia, times new roman, serif;
- color: #666600;
+ color: #BE5303;
font-size: small;
padding: 2px;
letter-spacing: .3em;
}
.sidetitle {
font-family: palatino, georgia, times new roman, serif;
- color: #666600;
+ color: #BE5303;
font-size: small;
padding: 2px;
margin-top: 30px;
</head>
<body>
- <div id="banner">
- <img src="http://www.mulle-kybernetik.com/weblog/images/nat-weblog-collage.jpg"
- height="110" width="752" align="" border="0" hspace="0" vspace="0"
- alt="Banner" title="" longdesc="" /><br />
+ <div id="banner" style="text-align: right;">
+ <img src="http://sope.opengroupware.org/images/lori_48x48_lookleft.png"
+ border="0" width="48" height="48" alt="Lori" title="Lori" />
</div>
<div class="blog">
<#Posts>
- <h2 class="date"><#PostDate/></h2> <!-- Note: MT groups by date -->
+ <h2 class="date"><!-- Note: MT groups by date -->
+ <#HasDate>
+ <#PostDate/>
+ </#HasDate>
+ </h2>
<div class="blogbody">
<h3 class="title"><#PostTitle/></h3>
<div class="sidetitle">Search</div>
<div class="side">
- Search this site:
- add a form here and bind
- to query match
+ Search this site:<br />
+ add a form here and bind<br />
+ to query match<br />
+ Note: we can only bind one?
</div>
<div class="sidetitle">Archives</div>
<div class="side">
- impossible in an efficient way?
+ impossible in an efficient way?<br />
August 2005<br />
Juli 2005
</div>
<div class="sidetitle">Recent Entries</div>
<div class="side">
- DG with limit=10 here,<br />
- order by date
+ <#RecentPosts>
+ <!-- TODO: add link, maybe focus on date of post? -->
+ <#PostTitle/><br />
+ </#RecentPosts>
</div>
</div>
list = postDisplayGroup.displayedObjects;
item = post;
}
+RecentPosts: WORepetition {
+ list = recentPostsDisplayGroup.displayedObjects;
+ item = post;
+}
+HasDate: WOConditional {
+ condition = post.creationDate.isNotEmpty;
+}
PostDate: WOString {
value = post.creationDate;
valueWhenEmpty = "[no date]";
PostBody: WOString {
value = post.body;
valueWhenEmpty = "[no body]";
+ insertBR = YES;
}
PostAuthor: WOString {
value = post.author.name;
selectsFirstObjectAfterFetch = YES;
fetchesOnLoad = YES;
};
+
+ recentPostsDisplayGroup = {
+ class = WODisplayGroup;
+ dataSource = {
+ class = EOCoreDataSource;
+ editingContext = session.defaultManagedObjectContext;
+ fetchSpecification = {
+ class = EOFetchSpecification;
+ entityName = Post;
+ fetchLimit = 10;
+ isDeep = YES;
+ sortOrderings = (
+ { class = EOSortOrdering;
+ key = "creationDate";
+ selector = "compareDescending:";
+ }
+ );
+ };
+ };
+ formatForLikeQualifier = "%@*";
+ localKeys = ();
+ numberOfObjectsPerBatch = 0;
+ selectsFirstObjectAfterFetch = YES;
+ fetchesOnLoad = YES;
+ };
};
}