<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RawDev.net &#187; Magento</title>
	<atom:link href="http://rawdev.net/category/hacking/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://rawdev.net</link>
	<description>Just another Zabreznik.si Sites site</description>
	<lastBuildDate>Tue, 27 Jul 2010 17:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Magento Category Style</title>
		<link>http://rawdev.net/2009/02/19/magento-category-style/</link>
		<comments>http://rawdev.net/2009/02/19/magento-category-style/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 23:22:00 +0000</pubDate>
		<dc:creator>Marko Zabreznik</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.rawdev.net/?p=160</guid>
		<description><![CDATA[Its frequent that a webpage needs styles specific to categories, like one background for Store, another for Company info etc&#8230; But Magento fails in that area unless you want to make specific designs for each section you are out of luck. CSS might be the ansver trough. The only thing missing is a class that [...]]]></description>
			<content:encoded><![CDATA[<p>Its frequent that a webpage needs styles specific to categories, like one background for Store, another for Company info etc&#8230; But Magento fails in that area unless you want to make specific designs for each section you are out of luck.</p>
<p>CSS might be the ansver trough. The only thing missing is a class that each section has.<br />
addBodyClass(&#8216;category-&#8217;.Mage::getBlockSingleton(&#8216;catalog/navigation&#8217;)<br />
          -&gt;getCurrentCategory()<br />
          -&gt;getParentCategory()<br />
          -&gt;getUrlKey()<br />
);<br />
 ?&gt;<br />
This piece of code adds the urlkey of the current categories parent category inside body&#8217;s class tag. And the class added is the same that is present on the parent page of the category. How cool is that <img src='http://rawdev.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>For pages with multiple level childs, it is also possible to loop that untill you get to the top parent.</p>
]]></content:encoded>
			<wfw:commentRss>http://rawdev.net/2009/02/19/magento-category-style/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
