<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://72.14.177.54/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Bloggerhacks - User contributions [en]</title>
		<link>http://72.14.177.54/Bloggerhacks/Special:Contributions/Aajoslin</link>
		<description>From Bloggerhacks</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Tue, 16 Jun 2026 16:04:13 GMT</lastBuildDate>
		<item>
			<title>Label-based Post Customization</title>
			<link>http://72.14.177.54/Bloggerhacks/Label-based_Post_Customization</link>
			<description>&lt;p&gt;Aajoslin:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version==&lt;br /&gt;
&lt;br /&gt;
1.0&lt;br /&gt;
&lt;br /&gt;
==Platform==&lt;br /&gt;
&lt;br /&gt;
New blogger templates&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
Andy Joslin&lt;br /&gt;
&lt;br /&gt;
==Homepage==&lt;br /&gt;
&lt;br /&gt;
http://blog.bandjos.com/&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
I don't care! Use it freely!&lt;br /&gt;
&lt;br /&gt;
==Required Skills==&lt;br /&gt;
&lt;br /&gt;
Must be comfortable with editing the template source. Some familiarity with CSS will help to make the style fit your needs.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Encloses each blog post in a div tag that has the class set to 'label[your-label-here]'.  You can then easily modify the stylesheet&lt;br /&gt;
to style the post based on the label that was applied.&lt;br /&gt;
&lt;br /&gt;
NOTE: If multiple labels are applied to a post, only the last label will be used.&lt;br /&gt;
&lt;br /&gt;
ALSO NOTE: If you have labels with whitespaces, be ready for some extra testing.  I've had luck when the first word is unique. You've been warned.&lt;br /&gt;
&lt;br /&gt;
Assuming you have made all the appropriate backups... Here's how you do it.&lt;br /&gt;
&lt;br /&gt;
'''Step 1)'''&lt;br /&gt;
&lt;br /&gt;
Edit the HTML in your template.  You will need to select the 'Expand Widget Templates' check box. Find the part in the template where your &lt;br /&gt;
post contents are actually written.  Look for: &lt;br /&gt;
   &amp;lt;data:post.body/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Step 2)'''&lt;br /&gt;
&lt;br /&gt;
Replace that tag with the following code...&lt;br /&gt;
&lt;br /&gt;
   &amp;amp;lt;b:if cond='data:post.labels'&amp;gt;&lt;br /&gt;
    &amp;amp;lt;b:loop values='data:post.labels' var='label'&amp;gt;&lt;br /&gt;
     &amp;amp;lt;b:if cond='data:label.isLast == &amp;quot;true&amp;quot;'&amp;gt;&lt;br /&gt;
      &amp;amp;lt;!-- Only using the last label --&amp;gt;&lt;br /&gt;
      &amp;amp;lt;div expr:class='&amp;quot;label&amp;quot; + data:label.name'&amp;gt;&lt;br /&gt;
       &amp;amp;lt;p&amp;gt; &amp;lt;data:post.body/&amp;gt; &amp;amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;amp;lt;/b:if&amp;gt; &lt;br /&gt;
    &amp;amp;lt;/b:loop&amp;gt;&lt;br /&gt;
   &amp;amp;lt;b:else/&amp;gt;&lt;br /&gt;
    &amp;amp;lt;div class='labelNone'&amp;gt; &amp;amp;lt;p&amp;gt;&amp;lt;data:post.body/&amp;gt;&amp;amp;lt;/p&amp;gt; &amp;amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;amp;lt;/b:if&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Step 3)'''&lt;br /&gt;
&lt;br /&gt;
In the style portion of your template, you can now apply a style by specifying the div class. Here's an example that will put a background image in the bottom right corner:&lt;br /&gt;
&lt;br /&gt;
   div.labelVacation {&lt;br /&gt;
       background-image: url(&amp;quot;http://images.your-site.com/vacation-bg.png&amp;quot;);&lt;br /&gt;
       background-repeat: no-repeat;&lt;br /&gt;
       background-position: bottom right;&lt;br /&gt;
       display: block; &lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
&lt;br /&gt;
Once the widget is edited as above, the style can be changed as new labels are required. &lt;br /&gt;
&lt;br /&gt;
==Sites Using This Hack==&lt;br /&gt;
&lt;br /&gt;
[http://blog.bandjos.com bandjos.com]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: hacks]]&lt;br /&gt;
[[category: New Blogger]]&lt;/div&gt;</description>
			<pubDate>Fri, 10 Aug 2007 18:45:51 GMT</pubDate>			<dc:creator>Aajoslin</dc:creator>			<comments>http://72.14.177.54/Bloggerhacks/Talk:Label-based_Post_Customization</comments>		</item>
		<item>
			<title>Label-based Post Customization</title>
			<link>http://72.14.177.54/Bloggerhacks/Label-based_Post_Customization</link>
			<description>&lt;p&gt;Aajoslin:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version==&lt;br /&gt;
&lt;br /&gt;
1.0&lt;br /&gt;
&lt;br /&gt;
==Platform==&lt;br /&gt;
&lt;br /&gt;
New blogger templates&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
Andy Joslin&lt;br /&gt;
&lt;br /&gt;
==Homepage==&lt;br /&gt;
&lt;br /&gt;
http://blog.bandjos.com/&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
I don't care! Use it freely!&lt;br /&gt;
&lt;br /&gt;
==Required Skills==&lt;br /&gt;
&lt;br /&gt;
Must be comfortable with editing the template source. Some familiarity with CSS will help to make the style fit your needs.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Encloses each blog post in a div tag that has the class set to 'label[your-label-here]'.  You can then easily modify the stylesheet&lt;br /&gt;
to style the post based on the label that was applied.&lt;br /&gt;
&lt;br /&gt;
NOTE: If multiple labels are applied to a post, only the last label will be used.&lt;br /&gt;
&lt;br /&gt;
ALSO NOTE: If you have labels with whitespaces, be ready for some extra testing.  I've had luck when the first word is unique. You've been warned.&lt;br /&gt;
&lt;br /&gt;
Assuming you have made all the appropriate backups... Here's how you do it.&lt;br /&gt;
&lt;br /&gt;
'''Step 1)'''&lt;br /&gt;
&lt;br /&gt;
Edit the HTML in your template.  You will need to select the 'Expand Widget Templates' check box. Find the part in the template where your &lt;br /&gt;
post contents are actually written.  Look for: &lt;br /&gt;
   &amp;lt;data:post.body/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Step 2)'''&lt;br /&gt;
&lt;br /&gt;
Replace that tag with the following code...&lt;br /&gt;
&lt;br /&gt;
   &amp;amp;lt;b:if cond='data:post.labels'&amp;gt;&lt;br /&gt;
    &amp;amp;lt;b:loop values='data:post.labels' var='label'&amp;gt;&lt;br /&gt;
     &amp;amp;lt;b:if cond='data:label.isLast == &amp;quot;true&amp;quot;'&amp;gt;&lt;br /&gt;
      &amp;amp;lt;!-- Only using the last label --&amp;gt;&lt;br /&gt;
      &amp;amp;lt;div expr:class='&amp;quot;label&amp;quot; + data:label.name'&amp;gt;&lt;br /&gt;
       &amp;amp;lt;p&amp;gt; &amp;lt;data:post.body/&amp;gt; &amp;amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;amp;lt;/b:if&amp;gt; &lt;br /&gt;
    &amp;amp;lt;/b:loop&amp;gt;&lt;br /&gt;
   &amp;amp;lt;b:else/&amp;gt;&lt;br /&gt;
    &amp;amp;lt;div class='labelNone'&amp;gt; &amp;amp;lt;p&amp;gt;&amp;lt;data:post.body/&amp;gt;&amp;amp;lt;/p&amp;gt; &amp;amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;amp;lt;/b:if&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Step 3)'''&lt;br /&gt;
&lt;br /&gt;
In the style portion of your template, you can now apply a style by specifying the div class. Here's an example that will put a background image in the bottom right corner:&lt;br /&gt;
&lt;br /&gt;
   div.labelVacation {&lt;br /&gt;
       background-image: url(&amp;quot;http://images.your-site.com/vacation-bg.png&amp;quot;);&lt;br /&gt;
       background-repeat: no-repeat;&lt;br /&gt;
       background-position: bottom right;&lt;br /&gt;
       display: block; &lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
&lt;br /&gt;
Once the widget is edited as above, the style can be changed as new labels are required. &lt;br /&gt;
&lt;br /&gt;
==Sites Using This Hack==&lt;br /&gt;
&lt;br /&gt;
[http://blog.bandjos.com bandjos.com]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: hacks]]&lt;/div&gt;</description>
			<pubDate>Fri, 10 Aug 2007 18:43:24 GMT</pubDate>			<dc:creator>Aajoslin</dc:creator>			<comments>http://72.14.177.54/Bloggerhacks/Talk:Label-based_Post_Customization</comments>		</item>
		<item>
			<title>Label-based Post Customization</title>
			<link>http://72.14.177.54/Bloggerhacks/Label-based_Post_Customization</link>
			<description>&lt;p&gt;Aajoslin:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version==&lt;br /&gt;
&lt;br /&gt;
1.0&lt;br /&gt;
&lt;br /&gt;
==Platform==&lt;br /&gt;
&lt;br /&gt;
New blogger templates&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
Andy Joslin&lt;br /&gt;
&lt;br /&gt;
==Homepage==&lt;br /&gt;
&lt;br /&gt;
http://blog.bandjos.com/&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
I don't care! Use it freely!&lt;br /&gt;
&lt;br /&gt;
==Required Skills==&lt;br /&gt;
&lt;br /&gt;
Must be comfortable with editing the template source. Some familiarity with CSS will help to make the style fit your needs.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Encloses each blog post in a div tag that has the class set to 'label[your-label-here]'.  You can then easily modify the stylesheet&lt;br /&gt;
to style the post based on the label that was applied.&lt;br /&gt;
&lt;br /&gt;
NOTE: If multiple labels are applied to a post, only the last label will be used.&lt;br /&gt;
&lt;br /&gt;
ALSO NOTE: If you have labels with whitespaces, be ready for some extra testing.  I've had luck when the first word is unique. You've been warned.&lt;br /&gt;
&lt;br /&gt;
Assuming you have made all the appropriate backups... Here's how you do it.&lt;br /&gt;
&lt;br /&gt;
'''Step 1)'''&lt;br /&gt;
&lt;br /&gt;
Edit the HTML in your template.  You will need to select the 'Expand Widget Templates' check box. Find the part in the template where your &lt;br /&gt;
post contents are actually written.  Look for: &lt;br /&gt;
   &amp;lt;data:post.body/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Step 2)'''&lt;br /&gt;
&lt;br /&gt;
Replace that tag with the following code...&lt;br /&gt;
&lt;br /&gt;
   &amp;amp;lt;b:if cond='data:post.labels'&amp;gt;&lt;br /&gt;
    &amp;amp;lt;b:loop values='data:post.labels' var='label'&amp;gt;&lt;br /&gt;
     &amp;amp;lt;b:if cond='data:label.isLast == &amp;quot;true&amp;quot;'&amp;gt;&lt;br /&gt;
      &amp;amp;lt;!-- Only using the last label --&amp;gt;&lt;br /&gt;
      &amp;amp;lt;div expr:class='&amp;quot;label&amp;quot; + data:label.name'&amp;gt;&lt;br /&gt;
       &amp;amp;lt;p&amp;gt; &amp;lt;data:post.body/&amp;gt; &amp;amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;amp;lt;/b:if&amp;gt; &lt;br /&gt;
    &amp;amp;lt;/b:loop&amp;gt;&lt;br /&gt;
   &amp;amp;lt;b:else/&amp;gt;&lt;br /&gt;
    &amp;amp;lt;div class='labelNone'&amp;gt; &amp;amp;lt;p&amp;gt;&amp;lt;data:post.body/&amp;gt;&amp;amp;lt;/p&amp;gt; &amp;amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;amp;lt;/b:if&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Step 3)'''&lt;br /&gt;
&lt;br /&gt;
In the style portion of your template, you can now apply a style by specifying the div class. Here's an example that will put a background image in the bottom right corner:&lt;br /&gt;
&lt;br /&gt;
   div.labelVacation {&lt;br /&gt;
       background-image: url(&amp;quot;http://images.your-site.com/vacation-bg.png&amp;quot;);&lt;br /&gt;
       background-repeat: no-repeat;&lt;br /&gt;
       background-position: bottom right;&lt;br /&gt;
       display: block; &lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
&lt;br /&gt;
Once the widget is edited as above, the style can be changed as new labels are required. &lt;br /&gt;
&lt;br /&gt;
==Sites Using This Hack==&lt;br /&gt;
&lt;br /&gt;
[http://blog.bandjos.com bandjos.com]&lt;/div&gt;</description>
			<pubDate>Fri, 10 Aug 2007 18:39:38 GMT</pubDate>			<dc:creator>Aajoslin</dc:creator>			<comments>http://72.14.177.54/Bloggerhacks/Talk:Label-based_Post_Customization</comments>		</item>
	</channel>
</rss>