In this post I explain the trick given in the blogger help to create expandable post summaries. I present screenshots to explain the steps required to create the "read more..." link as found in this post. This post specifically focuses on Blogger STEP 1 STEP 2 <style> STEP 3 STEP 4 STEP 5 STEP 6 <b:if cond='data:blog.pageType != "item"'><br /> Save the template. You are almost done ... :) STEP 7 Summary goes here. <span class="fullpost">Full Post</span> Publish the post to see the summary, and when you click on "Read More !" you will see the full posting. That's it !!!. Do not forget to leave your comments below. Ref:Beta.
Ok lets start the process of creating expandable posts.
Login to your blogger account and go to "Template -> Edit HTML" page as shown below.
Copy the following style information BEFORE </head> tag in your template as shown below,
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
</style>
Save the template. This will ensure that the style information is saved before we perform the next step.
Check the "Expand Widget Templates" box as shown below,
Search in the page the tag <data:post.body/>
Copy the following code below the tag <data:post.body/>,
<a expr:href='data:post.url'>Read more!</a>
</b:if>
Goto "Posting -> Create -> Edit HTML" and create a new post. Use the following code to separate the summary from the full post
[1] http://help.blogger.com/bin/answer.py?answer=42215
Tuesday, February 13, 2007
Create expandable post summaries in Blogger Beta
Posted by
Jyotirmaya
at
9:02:00 PM
Labels: Blogger, Code Snippets, Tutorial







0 comments:
Post a Comment