Gray's Matter
Justice Gray - North America's favorite metrosexual software consultant

I Wish These People Updated More Than Once a Year

For those of you who use DasBlog, this might be interesting.  For the rest of you this will be boring, which is why I've spiced it up with random imagery:

Marvel Civil War #03
This picture has nothing to do with DasBlog, but I need something here for the non-technical readership

While most of you reading this through RSS will be unable to tell, I'm made some slight additions to this blog to enable navigation to past entries and future entries (for an example, either click on one of the popular posts to the left or the title of this entry).  How else to ensure that my classic Charles Atlas post is not eternally lost to the ages?  As well, the "recent entries" that are listed on the right side of this page are tweaked in comparison to the standard <%frontpagetitlelist%> macro that comes with DasBlog.   These macros may or may not show up in the upcoming 1.9 release of DasBlog, but in the event you're in a rush and want to use them now, you can download this DLL to use the following macros:

Denzel Washington - The Black Justice Gray
Denzel Washington - The Black Justice Gray
Previous Entry and Next Entry

Sample syntax: <%previouslink("&lt;&lt; ")|codivation%>, <%nextlink(" &gt;&gt;")|codivation%>

These display a link to the previous entry and the next entry.  They *only* display if the user has loaded a page with a single entry on it, i.e. a permalink.  After all, it's pretty useless to have previous and next links if you're on the main page of the site, or looking through a full category worth of entries.  Obviously, if you are on the most recent post the Next Entry Link will not display, and if you are on the very first post you ever made the Previous Entry Link will not display. 

The string argument indicates what you'd like added to the link text (left side for the previouslink, right side for the nextlink).  e.g. Using the sample syntax with a post creatively called "My Post" will produce "<< My Post" or "My Post >>" depending on if it is next in line.

My collection of rarer Transformers
Note the packaged Megatron in the top left corner
PreviousNextSeparator

Sample syntax: <%previousNextSeparator(" | ")|codivation%>
Depending on your formatting desires, there is also a PreviousNextSeparator macro that will display a separator string of your choice if:
a) the user is on a page with only one blog post (e.g. a permalink)
b) that page is not displaying either the most recent blog entry or the earliest (because, obviously, you're not going to have both a previous and a next at the end of the spectrum).

e.g. <%previousNextSeparator(" | ")|codivation%> = " | " when in the situations described above.  I don't use this myself but it might be helpful depending on how you choose to style your blog.

Jesus Laughing.jpg
Even Jesus likes these macros!
RecentEntries

Sample syntax: <%recententries()|codivation%>
This is basically identical to the FrontPageTitleList macro with 2 notable changes:

a) the table cell alignment no longer defaults to "center", so that you can use CSS to align it
b) the links it produces are now permalinks to individual entries (which happens to work well with the previous and next links)  rather than anchor tags on the main front page.

2 more steps and you are all set.
1) Uncomment the following line in your web.config:
<section name="newtelligence.DasBlog.Macros" type="newtelligence.DasBlog.Web.Core.MacroSectionHandler, newtelligence.DasBlog.Web.Core" />
2) Add the following line to your web.config:
<add macro="codivation" type="Codivation.DasBlogExtras.DasBlogMacros, Codivation.DasBlogExtras" />

Now you are ready to bring your blog to a new unprecedented level of popularity!!

Saturday, August 12, 2006 #

8/13/2006 11:43:27 AM (Mountain Daylight Time, UTC-06:00)
Awesome. I am going to be using this. Kudos for getting this to work with dasBlog.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):