Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 923029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:07:42+00:00 2026-05-15T19:07:42+00:00

On my Blogger Blog I have this code in the template <b:if cond=’data:blog.pageType ==

  • 0

On my Blogger Blog I have this code in the template

<b:if cond='data:blog.pageType == &quot;index&quot;'>

<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 http://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 == &quot;index&quot;'>

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:07:42+00:00Added an answer on May 15, 2026 at 7:07 pm

    I’m a wordpress dev, so not too familiar with blogger, but will try to help you out anyways.

    If blogger is similar to WP, then it’s not a matter of hiding or showing the content that’s already being generated on the page. (which is what JQ would do for you). Your first step is to get the content to show up.

    And i know it can be done in blogger – here’s an example:

    http://photographybyspandan.blogspot.com/

    plus did a test post here: http://siberianx37thoughts.blogspot.com/

    I think it’s a setting you can set in blogger to display full post title.

    Then, you can edit the template, and wrap the post in an element. In this case it’s p so just add a specific class to it. then use jquery to hide / show that element

    http://www.learningjquery.com/2006/09/basic-show-and-hide

    You can use firebug for firefox to help you too 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my Blogger blog I have the following code exactly, but it doesn't work.
So I'm using the google blogger.com api and I have a blog post date
I have a blogger account http://itsallabtamil.blogspot.com . I wish to host this at http://blog.jus4frnds.com
I ran into this blog post today. I'll summarize. The blogger is commenting on
This code now works. I'm having an issue inserting a new blog post on
I have a blog (designed with blogger) and there's one problem. If I access
I have a blog hosted freely on blogger. I want to show some html
How can I fix the view of this twitter on my blogger blog. Here
I'm trying to delete a blog post on blogger.com using Blogger API via Prototype
What are the drawbacks of using the content/data model of a blog like Blogger

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.