Skip to main content

Static Pages, And A Custom Pages Index - Part 2

There are always details to deal with, and the "Linklist as Pages Index" solution, to provide a "Pages" gadget that indexes non pages, is no exception. As pointed out to me this morning, a "LinkList" gadget, when simply substituted for the "PageList" gadget, doesn't have the right stuff to make the selected tab light up, when the requested page is being displayed. The lit up tab makes the Tabs gadget seem so user friendly, and some folks like that little detail.

Fortunately, this problem is not difficult to correct.
  1. First (yes, he's telling us again), backup your template.
  2. Next, "Edit HTML" and select "Expand Widget Templates".
  3. Look for
    <b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
  4. Look a few lines below that for
    <li><a expr:href='data:link.target'><data:link.name/></a></li>
    
    and replace it with
    <b:if cond="data:blog.url == data:link.target">
              <li class='selected'><a expr:href='data:link.target'><data:link.name/></a></li>
            <b:else/>
              <li><a expr:href='data:link.target'><data:link.name/></a></li>
            </b:if>
    
  5. Save Template.
  6. Test.
  7. And finally, backup your template,again.
Not terribly complicated. Just another detail.

Comments

Adam said…
Wow! That's pretty quick turnaround, Chuck. Thanks.

I am now going to have to think about moving my blog to the new templates, just so I can do this.
Roberto said…
... and it works, too!
Great effort, Chuck.
This was great...took me a while but i got most of it. though my tabs are in a list not across the top pf the page
Chuck said…
Susan,

Either you located your linklist in the wrong template section, or your template doesn't have the right section. The Tabs section contains the horizontal propagation attributes.
Jennifer said…
Thank you! I now have fabulous tabs that light up.

Popular posts from this blog

Custom Domain Migration - Managing The Traffic

Your blog depends upon traffic for its success.

Anything that affects the traffic to your blog, such as any change in the URL, affects the success of your blog. Publishing the blog to a custom domain, like renaming the blog, will affect traffic to your blog. The effects of the change will vary from blog to blog, because of the different traffic to every different blog.Followers. People who find your blog because of recommendations by other people.Search engines. Robotic processes which methodically surf your blog, and provide dynamic indexing to people who search for information.Subscribers. People who read your content from their newsfeed reader, such as the dashboard Reading List.Viewers. People who read your content from their browser.No two blogs are the same - and no two blogs will have the same combinations of traffic sources.

Stats Components Are Significant, In Their Own Context

One popular Stats related accessory, which displays pageview information to the public, is the "Popular Posts" gadget.

Popular Posts identifies from 1 to 10 of the most popular posts in the blog, by comparing Stats pageview counts. Optional parts of the display of each post are a snippet of text, and an ever popular thumbnail photo.

Like many Stats features, blog owners have found imaginative uses for "Popular Posts" - and overlook the limitations of the gadget. Both the dynamic nature of Stats, and the timing of the various pageview count recalculations, create confusion, when Popular Posts is examined.