On my Blogger Blog I have this code in the template
<b:if cond='data:blog.pageType == "index"'>
<b:else/>
<p><data:post.body/></p>
</b:if>
This code basically shows the body of the blog post only when it's on an individual blog page.
You can see an example here www.spoilertv.com When you are on the homepage only the post title is displayed. Clicking on the title gives you the full post.
What I would like to do is to give the reader of the blog the choice of if the Body of the Post is displayed or not on the homepage
I would like a simple radio button or checkbox that I can place on the blog something like "Show Full Content". This is turned off by default. If the user clicks it, we then set a cookie using Jquery and we then reload the page.
The cookie would be used so that if the user returns to the site later it would remember their preference and display accordingly.
The code above would need to be updated so that it checksthe value of the cookie and if it's sets to Full Content then it would display. Pseudo code something like this.
<b:if cond='data:blog.pageType == "index"'>
if cookie is set to full content then
<p><data:post.body/></p>
endif
<b:else/>
<p><data:post.body/></p>
</b:if>
If anyone can help me with this little project I would be very grateful.
Thanks in advance for any help.