<title>SOPE CoreData Test: MonthPage</title>
<style>
-/*
- table.calendar {
- border-left: 1px solid #AAAAAA;
- border-top: 1px solid #AAAAAA;
- border-right: 1px solid black;
- border-bottom: 1px solid black;
- }
- table.calendar tr td {
- text-align: right;
- font-size: 10pt;
- }
- table.calendar tr td.calendar-title {
- text-align: center;
- font-weight: bold;
- }
- table.calendar tr td.calendar-othermonth {
- font-style: italic;
- color: #888888;
- }
-*/
-
- /* Nat! blog */
-
div#content {
position: absolute;
- margin-left: 225px;
+ margin-left: 14em;
}
div#links {
- width: 200px;
+ width: 12em;
padding: 15px;
}
+ div#banner {
+ text-align: right;
+ border-bottom: 1px solid #BE5303;
+ }
.date {
- font-family: palatino, georgia, times new roman, serif;
+ /* font-family: palatino, georgia; */
+ font-family: palatino, georgia;
font-size: large;
- color: #333;
- border-bottom: 1px solid #999;
+ color: #333333;
+ border-bottom: 1px solid #999999;
margin-bottom: 10px;
font-weight:bold;
}
.blogbody {
font-family: palatino, georgia, verdana, arial, sans-serif;
- color: #333;
+ color: #333333;
font-size: small;
font-weight: normal;
background: white;
margin-bottom: 25px;
}
.title {
- font-family: palatino, georgia, times new roman, serif;
+ font-family: palatino, georgia;
font-size: medium;
color: #666;
margin-bottom:10px;
/* Calendar */
.calendar {
- font-family: verdana, arial, sans-serif;
+ font-family: Verdana, Arial;
color: #666666;
font-size: x-small;
line-height: 140%;
padding: 2px;
+ text-align: center;
}
caption.calendarhead {
- font-family: palatino, georgia, times new roman, serif;
- color: #BE5303;
- font-size: small;
- padding: 2px;
+ font-family: Palatino, Georgia;
+ color: #BE5303;
+ font-size: small;
+ padding: 2px;
letter-spacing: .3em;
- text-transform:uppercase;
+ text-transform: uppercase;
}
.side {
padding: 2px;
}
.sidetitle {
- font-family: palatino, georgia, times new roman, serif;
+ font-family: palatino, georgia;
color: #BE5303;
font-size: small;
padding: 2px;
<div class="blogbody">
<h3 class="title"><#PostTitle/></h3>
+
<#PostBody/>
<div class="posted">
<div id="links">
<div class="calendar">
- <table width="100%">
+ <table style="width: 11em;">
<caption class="calendarhead"><#CalMonthName/></caption>
<tr class="calendar">
<th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th>
<#Weeks>
<tr class="calendar">
<#Week>
+<!--
+ we want to update:
+ calendarDisplayGroup.queryMin.creationDate = day.beginningOfDay;
+ calendarDisplayGroup.queryMax.creationDate = day.endOfDay;
+ then fetch ...
+ => DO we need the 'set value' element here?
+-->
+ <#SetupCalDayDisplayGroup/>
+
<#IsSameMonth>
- <td><#Day/></td>
+ <td>
+ <#Day/> (<#Count/>)
+ </td>
</#IsSameMonth>
<#IsOtherMonth>
<td class="calendar-othermonth"><#Day/></td>
selector = "compareDescending:";
}
);
+ qualifier = {
+ class = "EOKeyValueQualifier";
+ key = "creationDate";
+ value = "";
+ };
+ };
+ };
+ formatForLikeQualifier = "%@*";
+ localKeys = ();
+ numberOfObjectsPerBatch = 0;
+ selectsFirstObjectAfterFetch = YES;
+ fetchesOnLoad = YES;
+ };
+
+ calendarDisplayGroup = {
+ class = WODisplayGroup;
+ dataSource = {
+ class = EOCoreDataSource;
+ editingContext = session.defaultManagedObjectContext;
+ fetchSpecification = {
+ class = EOFetchSpecification;
+ entityName = Post;
+ fetchLimit = 1;
+ isDeep = YES;
};
};
formatForLikeQualifier = "%@*";