Home
7 Blogger Page Types & Most Used Blogger Conditional Tags
Authored by
January 30, 2017
on
Ganga
Identifying Blogger page types is very effective in designing, different Layouts for different Types of pages and placing Page-specific meta tags.
Identifying Blogger page types is very effective in designing, different Layouts for different Types of pages and placing Page-specific meta tags.
RandomTyms Breed - Random Blogger.
Identifying Blogger page types is very effective in designing, different Layouts for different Types of pages and placing Page-specific meta tags.
Below are some of the common Blogger conditional tags formats that can help make a blog Dynamic and Awesome. So,
What are the Blogger Page Types?
Archive Pages,
Index Pages,
Item Pages,
Static Pages,
Error Pages,
Label Pages &
Search Pages.
Lets now checkout the use of conditional tags with each Blogger page type.
1. Archive Page
Blogger pages added by Archive widget that normally has “_archive.html” ending in its URL belong to Archive page type.<b:if cond='data:blog.pageType == "archive"'>
...CODE...
</b:if>
2. Index Page
Blogger pages with a list of posts are normally called Index pages. Eg - Homepage and Search result page.<b:if cond='data:blog.pageType == "index"'>Example - https://amprandom.blogspot.in/search/label/BloggerPages
...CODE...
</b:if>
3. Item Page
Blogger posts created by clicking new post button are called Item pages.<b:if cond='data:blog.pageType == "item"'>Conditional Tag for First Blogger post alone
...CODE...
</b:if>
<b:if cond='data:post.isFirstPost'>Example - https://amprandom.blogspot.in/2017/01/ban-jallikattu-ban-pongal-ban-tamil.html
...CODE...
</b:if>
4. Static Page
Blogger pages created by clicking new page button are called Static pages.<b:if cond='data:blog.pageType == "static_page"'>Example - Using one such conditional Tag, I've converted one of my Static Pages into Home Page.
...CODE...
</b:if>
HomePage URL: https://amprandom.blogspot.in/
Static Page URL: https://amprandom.blogspot.in/p/random-tyms.html
5. Error Page
Blogger pages can be redirected to Error pages when directed to non-existent URLs.<b:if cond='data:blog.pageType == "error_page"'>Example -
...CODE...
</b:if>
Correct Page: https://amprandom.blogspot.in/2017/01/ban-jallikattu-ban-pongal-ban-tamil.html
Error Page: https://amprandom.blogspot.in/20177/01/ban-jallikattu-ban-pongal-ban-tamil.html
6. Label Page
Blogger label-based pages contain similar or related posted articles.<b:if cond='data:blog.searchLabel'>Specify Label Name in the conditional statement.
...CODE for all Label Pages...
</b:if>
<b:if cond='data:blog.searchLabel== "LABEL_NAME"'>Example - Label Name: FunPages
...CODE for specific Label Page...
</b:if>
https://amprandom.blogspot.in/search/label/FunPages
7. Search Page
Blogger pages that provides a list of posts that matches the given query terms.<b:if cond='data:blog.searchQuery'>Specify Search Query in the conditional statement.
...CODE for all Search Pages...
</b:if>
<b:if cond='data:blog.searchQuery == "SEARCH_QUERY"'>Example - Search Query: Indian
...CODE for specific Search Page...
</b:if>
https://amprandom.blogspot.in/search?q=indian
Happy Blogging! Also check out - Blogger Conditional Tags: Make your Blog Dynamic