Friday, September 08, 2006

Hacks from Hoctro's place and other hacks

Hey all,

There is a nice add-on or improvement to Ramani's original hack on sorting and display of search, label and archive results available here. Here is a description of the hack:

"My improved hack is based upon not showing the date at which a post is created, and make the posts indented as a nice bulleted list" - Hoctro

However if you do want the date header on the label search pages, just insert the line in red, in that code, as show here:

<b:if cond='data:blog.pageType != "item">
<h2 class='date-header'><data:post.dateHeader/></h2>
<ul><li><a expr:href='data:post.url'><data:post.title/> </a></li></ul>

In addition, if you are trying to get to terms with the beta blogger code (like me) and wish to understand more of it, there is a tutorial by Hoctro on defining and calling functions in beta templates. Do check it out here.

Ramani has come up with another hack. Blogger, by default limits the number of posts that can be displayed on a single page when a label's contents are viewed. This has been modified to show upto 100 results per page (useful if you have Ramani's search hack through which only post titles are shown instead of the entire post, on label and search pages). check it out here.

No comments:

Other posts @ Stubborn Fanatic

Click here to view all my posts.

Creative Commons License
This work is licensed under a
Creative Commons Attribution-ShareAlike 2.5 License.

However, prior permission is required before you can display any content from this blog on your site. The author reserves the right to demand removal of such content at any time for any reason. (Not applicable for back-linking)
Note: The author is not responsible for any loss of data or damages to your homepage as a result of using the hacks suggested here. Please observe all necessary precautions while modifying template code.

© 2006 Vivek Sanghi a.k.a Stubborn-Fanatic