Bloggerzonne.blogspot.com

Sunday, June 14, 2009

Widget Blogger

Before getting into the details of selective display,let us discuss about the different types of pages on blogger.
1.  home page- yea its your blogs home page as the name suggests(actually this is not a type. but i will still include it here..)
2. Archive Page- Refers to archive pages..
3. Item Page - Refers to Post Pages
4. Index Page - Includes home page + label page + search results page
Selective Display.. 
There are different conditions to check the page type. You can use these conditions for the selective display.
You might like to display a welcome message on the home page only...

Welcome to my Blog
Displaying on all pages other than the homepage

this is not the homepage
Displaying something on the Archive Pages..

Hii this is an archive page
Displaying something on non Archive Pages..

Hii this is an non archive page
Displaying something on post page only

Hii this is a post page
Displaying something on non post page only

Hii this is a non post page
You can use the conditional thing for the index type pages. But i don't find much use in that.
Now displaying something on a particular url only (may be a particular post page only or something like that)

this will be displayed on The_Particular_Page_Url only
(you will have to replace The_Particular_Page_Url with the url where you need the widget to be displayed..)
 Now displaying something on all pages other than a particular url..
 
this will not be displayed on The_Particular_Page_Url
Now how to use two conditions (or more).. the logical AND thing.. :)


this is not Particular_Page_Url1 and this is not Particular_Page_Url2

the else thing..
What if you need to display something on the homepage and something else on all other pages.. here comes the use of if else

This is the homepage
line1
line2

This is not the homepage
line 3
line4
Different combinations are possible..

Limitations
1) I don't see a way to use OR conditions
2) There isn't any direct easy way to include AND in conditional statements
3) The main drawback is that we cant enclose an entire widget within the b:if tag.. you will get some message telling that a b:section cant have b:if s ie you can wrap an unexpanded widget within a b:if condition
Wrapping a widget with the conditional tags
Every widget other than the BlogPost Widget has this general structure



somethings here

Wrapping conditional tags can be done as



some things here


this code will display the widget on The_Particular_Page_Url only (you have to provide this url)
Another Limitation..
wrapping the blogpost widget is little complicated as it has many b:includables.. yea you can do that too.. :)



Saturday, June 13, 2009

Definition Of A Blog

So what is a blog? According to Wikipedia (a great source of constantly updated info), "A weblog, web log or simply a blog, is a web application which contains periodic time-stamped posts on a common web page. Weblog is a portmanteau of 'web' and 'log.' The term blog came into common use as a way of avoiding confusion with the term server log."
Once you choose a blogging service and set up an account, you will be provided with a standard blog template. But this template will suffer from a cookie-cutter design, and if you don't personalize it your blog may become lost. To be noticed your blog needs to make a splash - as there are more than ten million blogs out there. So what we'll concentrate on here is working with some design elements that can help you add more zing to your blog. At the end of the tutorial you'll find a list of free blog resources, and as a special bonus I've included an amazing martini recipe.
Whatever blogging software or service you decide to use, all of them will present you with a generic graphic for the top of your blog pages. This is the single most important element that you need to change.
What you will need is your own image, and a font to create a simple title, tag line or logo. If you are not good at drawing or feel design-challenged, then go straight to one of the online stock photo services and splurge. There are also lots of free sites (see our free stock photos page), or you can try a service with minimal fees, like istockphoto.com.
I spent 15 minutes there and found a nice illustration from Jennifer Borton of some girls with martinis, and it cost just $3.

Title Blogger

Until recently, the title tags generated for each page of your Blogger blog would display the blog title first, then the name of your post.
This wasn't so good for SEO (search engine optimization) as this made keywords from your post titles appear after your blog title.
Luckily, Blogger have come up with a simple fix for this problem for those who use Layouts templates: the tag!
This new tag is already installed for new blogs (or if you change your existing template to one of Blogger's default ones).
However, if you have customized your template or uploaded a third party template, you will need to change the original to the new tag for this change to take effect.
But don't worry: this is REALLY easy! Here's what you have to do:
  1. Go to Layout>edit HTML in your Blogger dashboard.
  2. Search for this tag:
  3. Replace this tag with the following: 
  4. Save your template! (See, this is an easy hack!)
Once you've changed this tag, you'll see that on post pages, the default [blog name] page title format for your post titles in the browser window will be replaced solely by your post title instead.
This will increase the chances of your posts being picked up in search engine results for keywords which appear in your post titles (and can ultimately help draw more targeted traffic to your blog.
I hope this little trick will be useful to you all! And for the Blogger team (if you're reading this)
Thank you!