WebReference.com - Part 2 of Chapter 7 from Essential Blogging. From O'Reilly (3/5).
[previous] [next] |
Essential Blogging, Chapter 7: Advanced Radio UserLand
Useful Macros
Macros for use in the Main, Home Page, and Desktop Website templates include:
- <%title%>
- Title of the page (e.g., "Stories").
- <%siteName%>
- Name of your blog (e.g., "Sherlock Holmes' Casebook").
- <%description%>
- Description of your blog (e.g., "Elementary, Dear Watson").
- <%bodytext%>
- Body of the page. The Main template is used to generate every page you see from Radio, from Create New Entry to Prefs. The content specific to the Create New Entry and Prefs pages is represented by the
<%bodytext%>
macro. - <%year%>
- Current year (e.g., 2002).
- <%authorName%>
- Your name (e.g., "Dr Watson").
- <%authorMailAddress%>
- Your email address (e.g., [email protected]).
- <%navigatorLinks%>
- Contents of your #navigatorLinks file (see Chapter 3).
- <%radioBadge%>
- Image that links to the Radio UserLand home page.
- <%rssLink%>
- Orange XML button that links to the RSS version of your blog.
- <%now%>
- Time you published the page, used for Last Update message (e.g., 5/21/2002; 10:06:40 P.M.)
Macros for use in the Day template include:
- <%archiveLink%>
- Image that links to the archive page for that day.
- <%longDate%>
- Long version of the date for that day (e.g., "Tuesday, May 21, 2002").
- <%items%>
- Posts for that day.
Macros for use in the Item template include:
- <%itemText%>
- Text of a blog post.
- <%itemTitle%>
- Title of a blog post, if specified.
- <%when%>
- Time the post was made (e.g., 4:31:19 P.M.).
- <%permalink%>
- Image that links to the post on the archive page (a small # sign by default).
- <%editButton%>
- The button that appears next to blog posts in the Desktop Website.
- <%enclosure%>
- Link to a post's enclosure-applies only to items that have enclosures. An enclosure is a binary attachment to an RSS item, such as an MP3 file.
- <%itemNum%>
- The unique ID for this blog post.
- <%paddedItemNum%>
- The unique ID for this blog post, padded with zeros to make it eight digits long.
- <%source%>
- A link to the site that was the source for the item-applies only to items posted from the News page.
- <%commentLink%>
- A link to open a pop-up page where visitors can post comments about your blog posts.
[previous] [next] |
Created: October 14, 2002
Revised: October 14, 2002
URL: https://webreference.com/authoring/blogging/chap7/2/3.html