tag:blogger.com,1999:blog-5497787979177318898.post-71948866818620736522008-03-23T23:20:00.002+02:002008-03-23T23:26:50.622+02:00Expandable Posts hack For Blogger XML TemplatesA loyal reader of mine whose name is <a href="http://irazca.blogspot.com/">Iraz </a>( a weird turkish name =P ) and who is English teacher ( once upon a time it was my dream ) wanted me to explain how to summarize blog posts , Dear <a href="http://irazca.blogspot.com/">Iraz</a> if you follow the steps below , you will be able to summarize your blog posts , Thanks for reading me .<br /><span class="fullpost"><br />Step 1. Search for "post-header-line" to find this portion of code in your template and add the lines in red as shown.<br /><pre class="code"><br /> &lt;div class='post-header-line-1'/&gt;<br /><br /> &lt;div class='post-body'&gt;<br /><span style="color:red;"><br /> <span style="font-weight: bold;">&lt;b:if cond='data:blog.pageType == "item"'&gt;</span><br /><span style="font-weight: bold;"> &lt;style&gt;.fullpost{display:inline;}&lt;/style&gt;</span><br /><span style="font-weight: bold;"> &lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;</span><br /><span style="font-weight: bold;"> &lt;b:else/&gt;</span><br /><span style="font-weight: bold;"> &lt;style&gt;.fullpost{display:none;}&lt;/style&gt;</span><br /></span><br /> &lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;<br /><span style="color:red;"><br /> <span style="font-weight: bold;">&lt;a expr:href='data:post.url'&gt;Read More......&lt;/a&gt;</span><br /><span style="font-weight: bold;"> &lt;/b:if&gt;</span><br /></span><br /> &lt;div style='clear: both;'/&gt; &lt;!-- clear for photos floats --&gt;<br /> &lt;/div&gt;<br /></pre><br /><br />Step 2. Goto Settings->Formatting and at the bottom, you will find the text box provided to specify the "Post template". Copy/paste these lines into that text box and save the settings.<br /><pre class="code"><br />Type your summary here<br />&lt;span class="fullpost"&gt;<br />Type rest of the post here<br />&lt;/span&gt;<br /></pre><br />If you create a new post now, it shows you clearly where to type the summary and where to add the rest of the post. Follow the format and only summary will show up in your main page. Please note that you also need to divide your old posts like this (atleast the ones showing up in main page) into summary and full portions by editing them.<br /><br />Thanks <a href="http://hackosphere.blogspot.com">hackosphere</a> for codes.<br /><p></p></span><br />Do not forget to <a href="http://feeds.feedburner.com/webmasterlaboratory"><b>subscribe</b></a> for latest articles!Gosunoreply@blogger.com