Skip to main content

The Data Object "newerPageTitle" / "olderPageTitle" Names Are Misleading

At the bottom of this page, if you're viewing this article in main page mode, you'll see a link labeled "Older Posts". If you're viewing this as a single article, the link will be "Older Post". If I've posted a more recent article than this, you'll see an additional link "Newer Posts", or "Newer Post", respectively.

In many online forums and web sites, instead of "Older Post", you'd see "Stop Posting Clickable Links To Malware", the actual title of the immediately older post in this blog.

Let's look at the code that provides this set of links. Stretch the width of the browser window, and / or reduce text size, so you can see each line in its entirety, if it matters to you.

<b:includable id='nextprev'>
<div class='blog-pager' id='blog-pager'>
<b:if cond='data:newerPageUrl'>
<span id='blog-pager-newer-link'>
<a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>
</span>
</b:if>

<b:if cond='data:olderPageUrl'>
<span id='blog-pager-older-link'>
<a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
</span>
</b:if>

<b:if cond='data:blog.homepageUrl != data:blog.url'>
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
<b:else/>
<b:if cond='data:newerPageUrl'>
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
</b:if>
</b:if>

</div>
<div class='clear'/>
</b:includable>


See "olderPageUrl"? If you're viewing this as a single article, that value will be "http://bloggerstatusforreal.blogspot.com/2008/02/stop-posting-clickable-links-to-malware.html". The corresponding data object "olderPageTitle" should be "Stop Posting Clickable Links To Malware". Instead, it's simply "Older Post".

That's wrong. If there needs to be a generic label "Older Posts" / "Older Post", provide that as "olderPageLabel". But make "olderPageTitle" provide "Stop Posting Clickable Links To Malware", corresponding with "olderPageUrl" being "http://bloggerstatusforreal.blogspot.com/2008/02/stop-posting-clickable-links-to-malware.html".

>> Top

Comments

André Felipe said…
This comment has been removed by the author.
Dapur Blogs said…
can it shows the title?
Nitecruzr said…
Dapur,

Looking at "", it does not appear so.

In "Layouts Data Tags", we see:

olderPageUrl: If there are older posts than the ones on the current page, this is a URL to those posts. Context-sensitive for page type. (Not all pages will have this link.)
olderPageTitle: Title of the link to the older page of posts.
newerPageUrl: The newer equivalent of olderPageUrl.
newerPageTitle: The newer equivalent of olderPageTitle.

It looks like they have "PageTitle", and "PageUrl" - and that's it. "PageTitle" appears to be what I would call "PageCaption" - and there is no real "PageTitle".

So, I think no. The posts title, listed in "Newer" / "Older", isn't a possibility.

Popular posts from this blog

Adding A Link To Your Blog Post

Occasionally, you see a very odd, cryptic complaint I just added a link in my blog, but the link vanished! No, it wasn't your imagination.

Embedded Comments And Main Page View

The option to display comments, embedded below the post, was made a blog option relatively recently. This was a long requested feature - and many bloggers added it to their blogs, as soon as the option was presented to us. Some blog owners like this feature so much, that they request it to be visible when the blog is opened, in main page view. I would like all comments, and the comment form, to be shown underneath the relevant post, automatically, for everyone to read without clicking on the number of comments link. And this is not how embedded comments work.

What's The URL Of My Blog?

We see the plea for help, periodically I need the URL of my blog, so I can give it to my friends. Help! Who's buried in Grant's Tomb, after all? No Chuck, be polite. OK, OK. The title of this blog is "The Real Blogger Status", and the title of this post is "What's The URL Of My Blog?".