<?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>Label-based Post Customization - Revision history</title>
		<link>http://72.14.177.54/Bloggerhacks/?title=Label-based_Post_Customization&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Sat, 13 Jun 2026 23:24:23 GMT</lastBuildDate>
		<item>
			<title>ShirtsonSale:&amp;#32;/* Sites Using This Hack */</title>
			<link>http://72.14.177.54/Bloggerhacks/?title=Label-based_Post_Customization&amp;diff=2920&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Sites Using This Hack&lt;/span&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:40, 9 February 2009&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://blog.bandjos.com bandjos.com]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://blog.bandjos.com bandjos.com]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.shirtsonsale.info Shirts on Sale]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.shirtsonsale.info Shirts on Sale]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-06-13 23:24:23 --&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 09 Feb 2009 04:40:33 GMT</pubDate>			<dc:creator>ShirtsonSale</dc:creator>			<comments>http://72.14.177.54/Bloggerhacks/Talk:Label-based_Post_Customization</comments>		</item>
		<item>
			<title>ShirtsonSale:&amp;#32;/* Sites Using This Hack */</title>
			<link>http://72.14.177.54/Bloggerhacks/?title=Label-based_Post_Customization&amp;diff=2919&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Sites Using This Hack&lt;/span&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:39, 9 February 2009&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://blog.bandjos.com bandjos.com]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://blog.bandjos.com bandjos.com]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[http://www.shirtsonsale.info Shirts on Sale]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category: hacks]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category: hacks]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category: New Blogger]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category: New Blogger]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-06-13 23:24:23 --&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 09 Feb 2009 04:39:15 GMT</pubDate>			<dc:creator>ShirtsonSale</dc:creator>			<comments>http://72.14.177.54/Bloggerhacks/Talk:Label-based_Post_Customization</comments>		</item>
		<item>
			<title>Aajoslin at 18:45, 10 August 2007</title>
			<link>http://72.14.177.54/Bloggerhacks/?title=Label-based_Post_Customization&amp;diff=2754&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:45, 10 August 2007&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category: hacks]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category: hacks]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[category: New Blogger]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-06-13 23:24:23 --&gt;
&lt;/table&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>Aajoslin at 18:43, 10 August 2007</title>
			<link>http://72.14.177.54/Bloggerhacks/?title=Label-based_Post_Customization&amp;diff=2753&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:43, 10 August 2007&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://blog.bandjos.com bandjos.com]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://blog.bandjos.com bandjos.com]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[category: hacks]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-06-13 23:24:23 --&gt;
&lt;/table&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>Aajoslin at 18:39, 10 August 2007</title>
			<link>http://72.14.177.54/Bloggerhacks/?title=Label-based_Post_Customization&amp;diff=2752&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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>