<?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>Lapiz Corto &#187; category template</title>
	<atom:link href="https://www.lapizcorto.com/tag/category-template/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lapizcorto.com</link>
	<description>Para esas soluciones que nunca recuerdas</description>
	<lastBuildDate>Mon, 14 Dec 2015 08:34:34 +0000</lastBuildDate>
	<language>es-ES</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Joomla: Alternate category layouts</title>
		<link>https://www.lapizcorto.com/joomla-alternate-category-layouts/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=joomla-alternate-category-layouts</link>
		<comments>https://www.lapizcorto.com/joomla-alternate-category-layouts/#comments</comments>
		<pubDate>Fri, 11 May 2012 11:21:32 +0000</pubDate>
		<dc:creator><![CDATA[Jiden]]></dc:creator>
				<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[category template]]></category>
		<category><![CDATA[override]]></category>

		<guid isPermaLink="false">http://www.lapizcorto.com/?p=716</guid>
		<description><![CDATA[We were searching in Joomla content category layouts similar to K2 category templates. Since Joomla 1.6 this is possible. In K2 it&#8217;s quite simple, you just set clone and rename the default template and assign it to category. In Joomla content the system is harder to set but it&#8217;s more powerful since you can override [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>We were searching in Joomla content category layouts similar to K2 category templates. Since Joomla 1.6 this is possible.</p>
<p>In K2 it&#8217;s quite simple, you just set clone and rename the default template and assign it to category. In Joomla content the system is harder to set but it&#8217;s more powerful since you can override also category parameters and translation strings.</p>
<p>The information for this article was extrated from <a title="Joomla docs - Layout overrides" href="http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6">Joomla Docs: Layout overrides in Joomla 1.6</a><span id="more-716"></span></p>
<p>There are two ways to override a category template:</p>
<h3>1. Categories not linked in menus.</h3>
<p>This is the basic override and works as the K2 category template. In your template you have to clone and rename the blog category files. In:</p>
<p><strong>templates/YOURTEMPLATE/html/com_content/category</strong></p>
<p>copy and rename the files:</p>
<p><strong>blog.php</strong>, <strong>blog_children.php</strong>, <strong>blog_item.php</strong> and <strong>blog_links.php</strong></p>
<p>for example if you want a category template called &#8220;product&#8221; rename the files to:</p>
<p><strong>product.php</strong>, <strong>product_children.php</strong>, <strong>product_item.php</strong>, <strong>product_links.php</strong></p>
<p>The final folder appearence will look like:</p>
<p><a href="http://www.lapizcorto.com/wp-content/uploads/2012/05/category.png"><img class="alignnone size-full wp-image-725" title="Category override folder" src="http://www.lapizcorto.com/wp-content/uploads/2012/05/category.png" alt="" width="414" height="447" /></a></p>
<p>Now in the category edit form you will see an alternate layout available:</p>
<p><a href="http://www.lapizcorto.com/wp-content/uploads/2012/05/category_assign.png"><img class="alignnone size-full wp-image-722" title="Category layout override assign" src="http://www.lapizcorto.com/wp-content/uploads/2012/05/category_assign.png" alt="" width="497" height="215" /></a></p>
<p>It&#8217;s done. Now you can adjust the templates to your needs.</p>
<h3>2. Category linked in menu</h3>
<p>Category overrides through menu links allow you an advanced override system. The method it&#8217;s the same used in the case 1 plus add a layout XML file. This will give us full control to customize the layout.</p>
<p>Follow the steps of case 1 and also copy the file:</p>
<p><strong>components/com_content/views/category/tmpl/blog.xml</strong></p>
<p>to:</p>
<p><strong>templates/YOURTEMPLATE/html/com_content/category/product.xml</strong></p>
<p>The final folder status:</p>
<p><a href="http://www.lapizcorto.com/wp-content/uploads/2012/05/category_xml.png"><img class="alignnone size-full wp-image-732" title="Category with XML override" src="http://www.lapizcorto.com/wp-content/uploads/2012/05/category_xml.png" alt="" width="247" height="493" /></a></p>
<p>Now you only have to customize the XML layout to give it the name, translations, etc. (read the <a title="Joomla Docs - Layout overrides" href="http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6">Joomla docs</a> for more info)</p>
<p>You will have a new menu type that you can select to make a new menu item:</p>
<p><a href="http://www.lapizcorto.com/wp-content/uploads/2012/05/menu_type.png"><img class="alignnone size-medium wp-image-737" title="New menu type" src="http://www.lapizcorto.com/wp-content/uploads/2012/05/menu_type-300x230.png" alt="" width="300" height="230" /></a></p>
<p>Parametrize it to your needs and you are done!!</p>
<p>Hope this helps <img src="https://www.lapizcorto.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /> </p>
]]></content:encoded>
			<wfw:commentRss>https://www.lapizcorto.com/joomla-alternate-category-layouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
