Macrobyte Resources Weblog 2.0
Internet groupware development platform
Weblog II Beta Site




 
July, 2007
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31  
Aug  Aug

<-- Back One Week



Day Link Icon 8/31/2005

Minor Update to Weblog Macro Outline

(by Seth Dillingham, @ 11:20 AM)

I know this is minor, but I thought some of you might like to know that I've updated the outline of Weblog II macros with new documentation for the weblog.calendar.dayCssClass macro.

It has some nifty overrides, if you're into that sort of thing. :-)

Comments: 0 | Reply | Categories:



Day Link Icon 2/14/2005

RE: Weblog Macro Outline

(by Seth Dillingham, @ 3:20 PM)

The macro outline has been udpated with all of the parameters used by the weblog.addToWeblogForm macro. You'll probably find that there are parameters you knew nothing about. The same will be true for virtually every macro, once the docs are written.

Also, macros which are fully documented are now highlighted in yellow.

(Yes, there's only one highlighted macro right now. That's better than it was ten minutes ago, though.)

Comments: 0 | Reply | Categories:



Day Link Icon 5/24/2003

How Do Channels Work

(by Seth Dillingham, @ 5:21 PM)

There's been a lot of confusion over how channels work and what they are, especially since Terry started asking questions about combining channels. This is an attempt to bring a little clarity to this issue.

Read the Full Story

Comments: 27 | Reply | Categories:



Day Link Icon 4/27/2003

Macro List Reorganized

(by Seth Dillingham, @ 7:00 PM)

I've reorganized the list of weblog macros to make it more readable and useful. Also added a few more descriptions to the macros.

Comments: 0 | Reply | Categories:



Day Link Icon 12/2/2002

Macro List

(by Seth Dillingham, @ 10:20 PM)

This page should be kept up to date with the list of macros available in the new plugin.

There's so much work to do... I'll finish documenting these macros as I get a chance, but at least you have a complete list now!

Use in the <HEAD> Section of Page Template

weblog.header

Use in Message Templates

weblog.addToWeblogForm

Puts the checkboxes on the message editing form, the checkboxes and the "submit" button on the page when viewing a message, and puts a hidden element with the page's ID in the "New Item" form on weblog pages.

Can show a date field for controlling the date to which the item will be posted on the weblog:

<!--#weblog.addToWeblogForm showDate="true"-->

Anywhere on a Weblog Page

weblog.channelName
weblog.copyright
weblog.pageWrapper

Can be used like the #insertTemplate macro to "insert" a weblog, anywhere.

Accepts parameter attributes which give you full control over the templates.

Not used anywhere on a regular Weblog II page.

weblog.URL

Returns the URL of the weblog. Optional parameters allow it to return the url for specific dates, or the URL for the RSS format, or both.

Examples:

<!--#weblog.URL date="2003/04/23"-->

<!--#weblog.URL date="2003/04/23" format="RSS"-->

weblog.xmlrpcURL

Use Anywhere on Weblog Page, Intended for Weblog Wrapper Template

weblog.calendar.wrapper

Inserts the weblog calendar into the page.

weblog.description

Intended primarily for use in the RSS feed.

weblog.editButton
weblog.language
weblog.newItemForm

Generally belongs in the weblog wrapper template. Puts a form, on the weblog page, for posting directly to that weblog.

weblog.owner

Weblog Calendar Macros

weblog.calendar.ctEmptySpaces

Sneaky little macro that knows where in the calendar it's being called (as long you put it somewhere that it belongs). It returns a number indicating the amount of empty "days" before the first of the month or after the last day of the month. Returns 0 if the week doesn't have any empty days.

Used solely in the weblog calendar's week templates.

weblog.calendar.date
weblog.calendar.dayCssClass

Returns a class name for a cell in the weblog calendar.

Only works in a Weblog Calendar Day Template.

There are different class names for different types of cells: weekday, saturday, sunday, and the "current day".

Also, a second class name is returned if the day contains any weblog items, which means this cell will contain a link. (So, the final result might be something like "calendarLinked calendarSunday".

The parameters allow you to override any of the default class names.

Note that the default template for calendar days, called "Weblog Calendar Day READONLY," appends "Cell" to the end of the class name returned by this macro. To change that, you must provide your own template for calendar days.

weblog.calendar.daynum

Returns the date being referred to for your weblog archives.

The date is typically formatted as a number between 0 and 31, but can be formatted differently. See the format attribute, below.

If a |weblog channel| is being viewed, then the links point to that channel's archives.

See the outline of Weblog II macros for fuller documentation.

weblog.calendar.days
weblog.calendar.emptySpace
weblog.calendar.monthLink
weblog.calendar.weekDays

Use in the Weblog Day Template

weblog.day.date
weblog.day.items
weblog.day.link
weblog.day.path
weblog.days

Use In Weblog Item Templates

weblog.item.anchor
weblog.item.body
weblog.item.categories
weblog.item.link
weblog.item.permaLink
weblog.item.postedTime
weblog.item.subject
weblog.item.summary

Comments: 12 | Reply | Categories:



Day Link Icon 11/24/2002

Tip: Making Your Weblog Calendar Look "Right" Again

(by Seth Dillingham, @ 8:54 AM)

The old weblog calendar had an awful lot of HTML in it for very little in the way of content.Each cell had its td tag with a rather long class attribute, and then the contents of each cell was wrapped in a span tag to control the look of the text.

There were corresponding entries in the default stylesheets to control the look of the calendar cells.

To make matters more interesting, we had separate classes for Sunday cells and Sunday text, weekday cells and text, and Saturday cells and text.

The default templates for Weblog II calendars do not include these text classes, but all of the cell classes are still there. The text classes were unnecessarily redundant. To get the very same effect, just move or copy the stylesheet info for the text classes into the cell classes. The following examples are based on the Winter stylesheet.

Before:

.calendarCurrentDayCell{

background-color:#FFFFCC;
}
.calendarCurrentDayText{
font-size:75%;
color:#CE0000;
font-weight:bold;
}
.calendarCurrentViewText{
font-size:75%;
}
.calendarDayCell{
background-color:whitesmoke;
}
.calendarDayText{
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:black;
}
.calendarHeaderCell{
background-color:slategray;
}
.calendarHeaderText{
font-size:90%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:#FFFFFF;
font-weight:bold;
}
.calendarPrevNextCell{ }
.calendarPrevNextText{
font-size:80%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
font-weight:bold;
}
.calendarSaturdayCell{
background-color:gainsboro;
}
.calendarSaturdayText{
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:slategray;
}
.calendarSubHeaderCell{
background-color:lightsteelblue;
}
.calendarSubHeaderText{
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:#FFFFFF;
}
.calendarSundayCell{
background-color:lightgrey;
}
.calendarSundayText{
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:slategray;
}
.calendarTable{
background-color:white;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
}

After:

.calendarCurrentDayCell{

background-color:#FFFFCC;
font-size:75%;
color:#CE0000;
font-weight:bold;
}
.calendarCurrentViewText{
font-size:75%;
}
.calendarDayCell{
background-color:whitesmoke;
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:black;
}
.calendarHeaderCell{
background-color:slategray;
font-size:90%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:#FFFFFF;
font-weight:bold;
}
.calendarPrevNextCell{
font-size:80%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
font-weight:bold;
}
.calendarSaturdayCell{
background-color:gainsboro;
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:slategray;
}
.calendarSubHeaderCell{
background-color:lightsteelblue;
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:#FFFFFF;
}
.calendarSundayCell{
background-color:lightgrey;
font-size:75%;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
color:slategray;
}
.calendarTable{
background-color:white;
font-family:Geneva, Trebuchet MS, Trebuchet, Verdana, Arial;
}

There's still a lot more that could be done to shrink these stylesheets (the fonts don't need to be specified everywhere), but the point of this example is simply to show you what's needed to make your weblog calendars look right again, now that the span tags have been removed.

Comments: 2 | Reply | Categories:



Day Link Icon 11/21/2002

Posting to a Weblog Directly from the New Message Form

(by Seth Dillingham, @ 8:00 PM)

You can now put the #weblog.AddToWeblogForm macro in your message editing templates. I recommend putting it directly under the #msgBody macro, like this:

<!--#msgBody--><br clear="all" />
<!--#weblog.addToWeblogForm-->

When you create a new message (or edit an existing message), you'll see the checkboxes for adding the message to your weblog(s). If you check any of them, the message will be added to the selected weblogs when the message is submitted.

If you only post to one weblog, the browser will be redirected there instead of to the message page. I haven't tested yet with multiple weblogs. It should work, but you'll probably just be sent to the message page as if nothing had happened with the weblogs. (That can be fixed later, now that the basic functionality is there.)

Can you help test this, tonight? The next few features all build on it, so I need to know it's working correctly. Let me know if anything could be better, or doesn't work at all, or even doesn't work as you'd expect.

Thanks!

Comments: 44 | Reply | Categories: None



 
© 2002 Macrobyte Resources. All rights reserved.