publishing a blog with Blogger [Electronic resources]

Elizabeth Castro

نسخه متنی -صفحه : 134/ 107
نمايش فراداده

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.

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