RSS2.0

Blogpowered

Blogger Hacks:Summarizing your posts

The hack i use in my blog is the "Ramani's selective expandable posts". This hack enables me to choose whether my posts are summarized or not, and provides a "Read full post" link only for those which I have chosen to summarize. By the use of this hack, you can save space in your blog,

A summarized post looks like this:



Clicking the "read more..." will allow you too see the rest of the post.
So here's what you need to do.



1. Before anything else, back-up your template first. Click on the "Download full template" under Edit HTML page.

2. Check the "Expand widget template" box.


3. Copy all the code in this page and search for the tag

</head>
and paste all the code you've copied BEFORE this line.


4. Then locate the DIV section which contains the line

<<p><data:post.body/></p>


5. Then add the code in red color on the following section.

<div class='post-body' expr:id='"post-" + data:post.id' > <b:if cond='data:blog.pageType == "item"'> <style>#fullpost{display:inline;}</style> <p><data:post.body/></p> <b:else/> <style>#fullpost{display:none;}</style>

<p><data:post.body/></p>

<span id='showlink'> <a expr:href='data:post.url'>Read More......</a> </span> <script type='text/javascript'> checkFull("post-" + "<data:post.id/>"); </script> </b:if>

<div style='clear: both;'/> <!-- clear for photos floats -->
</div>


Before saving template, i advise you to preview it first to check if it contains errors.
(If you experience an error. Just upload your backup template and try to repeat all the steps written above.)

6. Done! Just follow this format and start summarizing:


Related Posts by Categories



Widget by Hoctro | Jack Book

3 comments:

Anonymous said...

Summarizing posts using the "Read more..." statement gives a feeling of suspense. It implies that there are more interesting stuff to look forward to once you click on the link.

praning5254 said...

I have been looking for this hack for sometime but with no luck. Now, I have done it and thanks to you and this post. This really helps!

Nothingandall said...

Thanks. It resulted for me ... at the second time...I'm glad. Best Regards from Portugal