Jump to content
xisto Community
Sign in to follow this  
pyost

Blogger Code Problems

Recommended Posts

If I posted in the wrong forum, please forgive me :D I had troubles determinating where to put this.

Anyhow, I have recently started a blog at blogger.com (actually it's blogspot.com). One of the main things I didn't like was the archive page. It showed whole posts, and I wanted it to show titles as links only. So I found a hack, and did everything as it said, but now I have problems.

Blogger has codes to determine which page will use that part of the code. In order to define the archive page, I used the following code:

<ArchivePage><Blogger><div id="archive-page"><BlogItemTitle><a href="<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a><br /></BlogItemTitle></div></Blogger></ArchivePage>

And I had to modify the main part, between <blogger> and </blogger> tags. It had to be copied, so the first one would be for the main page (<mainpage>) and the other one for item pages (<itempage>). But that isn't working. This is a part of that code:

<MainPage><Blogger>	<BlogDateHeader>  <h2 class="date-header"><$BlogDateHeaderDate$></h2>  </BlogDateHeader>  	   <!-- Begin .post -->  <div class="post">......................................	</div>  </ItemPage>  <!-- End #comments --></Blogger></MainPage><ItemPage><Blogger>	<BlogDateHeader>  <h2 class="date-header"><$BlogDateHeaderDate$></h2>  </BlogDateHeader>  	   <!-- Begin .post -->  <div class="post">...................................	</div>  </ItemPage>  <!-- End #comments --></Blogger></ItemPage>

The first and the second half are the same, except for the <MainPage> and <ItemPage>
Now, that should be working, but it isn't. The item pages don't display any content, but the blogger code itself. To see what I'm talking about, check out this link: http://forums.xisto.com/no_longer_exists/


I'm not sure what I amd doing wrong, so any help is appriciated.

Share this post


Link to post
Share on other sites

This is unbeliavable! Every time I ask for help I solve the problem myself :D

Here's how I solved the problem. I replaced this:

<MainPage><Blogger>---------------------</Blogger></MainPage><ItemPage><Blogger>---------------------</Blogger></ItemPage>

with this:

<Blogger><MainPage>---------------------</MainPage><ItemPage>---------------------</ItemPage></Blogger>

Heh..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.