template tags


conditional template tags

The tags described below only display their contents on certain kinds of pages.

tag

description

<MainOrArchivePage>...</MainOrArchivePage>

encloses items that should only be displayed on the main or archive pages of your blog. In other words, elements contained within these tags will be hidden on post pages.

<MainPage>...</MainPage>

encloses items that should only be displayed on the main page; items contained within these tags will be hidden on archive and post pages

<ArchivePage>...</ArchivePage>

encloses items that should only be displayed on an archive page; items contained within these tags will be hidden on the main page or on post pages

<ItemPage>...</ItemPage>

encloses items that should only be displayed on a post page; items contained within these tags will be hidden on the main page or on archive pages


template tags for previous posts

The tags described below are used to make a listing of previous posts.

tag

description

<BloggerPreviousItems>...</BloggerPreviousItems>

generates the code contained within its tags for each of the 10 previous posts; on the main page, these are the 10 most recent posts; on post pages, these are the 10 posts before the one being displayed

<$BlogPreviousItemTitle$>

generates the title of one of the previous posts; must be enclosed in opening and closing <BloggerPreviousItems> tags to work properly; often used with <$BlogItemPermalinkURL$> (described on previous page) to generate a link to the previous post in question.


template tags for comments

The tags described below are used for displaying a post's comments.

tag

description

<BlogItemCommentsEnabled>...</BlogItemCommentsEnabled>

a conditional tag whose contents are only displayed if a post allows comments (see page 79); should be used to enclose all comment tags

<$BlogItemCommentCount$>

generates the number of comments that a post currently has

<BlogItemComments>...</BlogItemComments>

generates the code contained within its tags for each of a post's comments; you may want to enclose this section within <ItemPage> tags (see previous page) so that the comments only appear on post pages, and not on the main page or on archive pages

<$BlogCommentNumber$>

generates the unique identifier for a comment; analogous to the <$BlogItemNumber$> tag

<$BlogCommentBody$>

generates the body of the comment

<$BlogCommentPermalinkURL$>

outputs the URL of an individual comment's permalink

<$BlogCommentAuthor$>

outputs the contents of the Display Name field of the profile of the blogger who wrote the comment; includes a link to that blogger's profile, if available

<$BlogCommentDateTime$>

outputs the date and/or time the comment was posted; depends on the TimestampFormat field on the Settings | Formatting page

<$BlogCommentDeleteIcon$>

creates an icon for deleting the comment; only appears if the person viewing the comment is the comment's author or the blog's owner

<$BlogItemCreate$>

creates a link so that the visitor can post a comment




Publishing a Blog with Blogger
Publishing a Blog with Blogger: Visual QuickProject Guide (2nd Edition)
ISBN: 0321637526
EAN: 2147483647
Year: 2004
Pages: 135

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net