Redwood Asylum (emeritus)
...by the inmates...for the inmates...
Thursday, August 01, 2002
Radio Previous/Next Links
previous / next links mini-tutorial
"something that's bugged me a long time about radio is the clumsy navigation for archive pages. the really needed a previous/next link system! i've looked around, i've found a macro to do it, and so i thought i'd share a mini-tutorial for folks who, like me, might have trouble figuring it out at first. i finally found what i was looking for at the download page for w3cfuture.
...by the inmates...for the inmates...

Radio Previous/Next Links
previous / next links mini-tutorial
"something that's bugged me a long time about radio is the clumsy navigation for archive pages. the really needed a previous/next link system! i've looked around, i've found a macro to do it, and so i thought i'd share a mini-tutorial for folks who, like me, might have trouble figuring it out at first. i finally found what i was looking for at the download page for w3cfuture.
step-by-step to previous/next links to your radio archive pages
- download the macro; unzip the files into your rado/macros folder
- add the code to your page template. this is a little tricky, becuase you have to specify the "preHtml" and "postHtml"; the marco script supplies the link information of previous and next post.
- the format for calling the macro is like this<%prevDaylink(preHtml, postHtml)%> and
<%nextDaylink(preHtml,postHtml)%>, where preHtml and postHtml is the HTML code for before and after the link - my code in my page template for the links looks like this: <%prevDaylink("<a","><< previous</a> ")%> <%nextDaylink("<a","> next</a> >>")%>, which produces something like this <<previous next>>
- watch those characters; if you're doing your html in an editor (like using remote edit, for example), the source code needs to display as above; if you see the link as text on your page instead of a link, your souce code is probably something like this prevDaylink("<a",">&lt;&lt; previous</a> ")
- the format for calling the macro is like this<%prevDaylink(preHtml, postHtml)%> and
- make sure your categories have the code in their page templates as well
that's it! down and dirty, adding previous/next links. "
10:08:56 PM
categories: Radio Fun