CREATE THE SITEMAP GADGET
To create the sitemap gadget see How to create a Table of Contents with Post Preview for Blogger. Follow the instructions under this heading : "TOC for ONE BLOG".
This will place the Contents table gadget in your blog. Use Click and drag on Page Elements subtab to drag the gadget below the posts column.
The gadget is now seen on ALL blog pages. The next step is to place it only on the Sitemap page. To do this first we need to get the permalink of the sitemap page we created in our blog. Look in the Blog Archives gadget and expand all the arrows to see the "Blog Sitemap" title we gave to the post. Click on the title to open the post page. Copy the permalink from the address bar of the browser.
This will place the Contents table gadget in your blog. Use Click and drag on Page Elements subtab to drag the gadget below the posts column.
The gadget is now seen on ALL blog pages. The next step is to place it only on the Sitemap page. To do this first we need to get the permalink of the sitemap page we created in our blog. Look in the Blog Archives gadget and expand all the arrows to see the "Blog Sitemap" title we gave to the post. Click on the title to open the post page. Copy the permalink from the address bar of the browser.
PUT GADGET ON SITEMAP PAGE
To put the gadget on the sitemap page we use conditional tags. To do this :
1. Login at Blogger.com.
2. Click Layouts link under blog title on Dashboard.
3. Click Edit Html subtab of Layouts tab.
4. Click Expand Widgets Template checkbox on top of the Template Code box.
5. Wait for the page to refresh.
6. Scroll down to locate the code for the Table of Contents gadget.
7. Modify the code as shown below (Put in the red lines of code) :
<b:widget id='HTML1' locked='false' title='' type='HTML'>
<b:includable id='main'><b:if cond='data:blog.url == "BLOG_PAGE_URL"'>
WIDGET CODE
</b:if>
</b:includable>
</b:widget>
Replace the CAPS : BLOG_PAGE_URL with the permalink of your blog sitemap post.
8. Save Template.
No comments:
Post a Comment