Adding dates to Radio page titles

Radio UserLand tip: To add a date to the title of each daily archive page, add the following UserTalk code inside the title tag of the home page template (#homeTemplate.txt):

<%local (d); if radio.weblog.file.getArchiveFileDate (radioResponder.fileBeingRendered, @d) {": " + string.dateString (d)} else {""}%>

This code will be replaced with the date in the form "Monday, June 30, 2003" (example).

Comments

Pretty Slick.

Is there a way to grab the most recent title from the day's entries and use that for the page title?

Hi

Add a Comment

All comments are moderated before publication. These HTML tags are permitted: <p>, <b>, <i>, <a>, and <blockquote>. This site is protected by reCAPTCHA (for which the Google Privacy Policy and Terms of Service apply).