{"id":15913,"date":"2014-03-19T01:41:51","date_gmt":"2014-03-19T05:41:51","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=15913"},"modified":"2017-07-11T07:54:28","modified_gmt":"2017-07-11T11:54:28","slug":"joomla-how-to-add-new-k2-category","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/joomla-how-to-add-new-k2-category.html","title":{"rendered":"Joomla. How to add new K2 category"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to add new K2 Content item in Joomla. K2 components is used in Joomla website as replacement for the default content component. It has a lot of benefits as category templates, commenting system, tags system, image gallery, extra fields etc. Our team tested K2 component and decided to us it in Joomla 2.5 templates. In more recent templates you won&#8217;t find K2 component. <\/p>\r\n<p>We already described <a href=\"\/help\/joomla-2-5-how-to-manage-articles.html\" target=\"_blank\">how to work with content in K2<\/a><\/p>\r\n<p>Let&#8217;s see how to add categories in K2. <\/p>\r\n<p>1. Open Joomla administration panel and go to<strong> Components&gt;K2 &gt; Categories<\/strong>. <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-1-266x300.jpg\" alt=\"\" title=\"k2-cat-1\" width=\"266\" height=\"300\" class=\"aligncenter size-medium wp-image-15915\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-1-266x300.jpg 266w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-1.jpg 269w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/a><\/p>\r\n<p>2. Then click <strong>New<\/strong> button in the top right corner<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-2-300x119.jpg\" alt=\"\" title=\"k2-cat-2\" width=\"300\" height=\"119\" class=\"aligncenter size-medium wp-image-15916\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-2-300x119.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-2-1024x408.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-2.jpg 1061w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>3. At the appeared screen you can define category settings. <\/p>\r\n<h3>General Settings<\/h3>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-3-284x300.jpg\" alt=\"\" title=\"k2-cat-3\" width=\"284\" height=\"300\" class=\"aligncenter size-medium wp-image-15917\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-3-284x300.jpg 284w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-3.jpg 623w\" sizes=\"(max-width: 284px) 100vw, 284px\" \/><\/a><\/p>\r\n<ul>\r\n<li><strong>Title<\/strong> &#8211; input category title<\/li>\r\n<li><strong>Title alias<\/strong> &#8211; generated automatically. It&#8217;s a machine friendly category name. Used in the URL<\/li>\r\n<li><strong>Parent Category<\/strong> &#8211; allows to create nested categories.<\/li>\r\n<li><strong>Inherit Parameters<\/strong> &#8211; allows to copy category settings from other category<\/li>\r\n<li><strong>Associated Extra fields<\/strong> &#8211; assign extra fields group to the category<\/li>\r\n<li><strong>Published<\/strong> &#8211; check if you want to publish category or not<\/li>\r\n<li><strong>Access level<\/strong> &#8211; define what group of users the category will be visible to<\/li>\r\n<li><strong>Language<\/strong> &#8211; select category language<\/li>\r\n<li><strong>Description and Image<\/strong> &#8211; input category description and image<\/li>\r\n<\/ul>\r\n<p>In the right column you can see category specific settings that allows you to adjust category layout. Let&#8217;s see what options we have. <\/p>\r\n<h3>Category item Layout<\/h3>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-4-163x300.jpg\" alt=\"\" title=\"k2-cat-4\" width=\"163\" height=\"300\" class=\"aligncenter size-medium wp-image-15918\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-4-163x300.jpg 163w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-4.jpg 409w\" sizes=\"(max-width: 163px) 100vw, 163px\" \/><\/a><\/p>\r\n<p><strong>Category template<\/strong> &#8211; allows you to select category layout template. Category template files are located in the <strong>templates\/theme###\/html\/com_k2\/templates<\/strong> folder. <\/p>\r\n<p><strong>Layout Grid<\/strong> &#8211; allows to define how the content items  appear. The following scheme displays the category layout using the above settings. <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-5-300x300.jpg\" alt=\"\" title=\"k2-cat-5\" width=\"300\" height=\"300\" class=\"aligncenter size-medium wp-image-15919\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-5-300x300.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-5-150x150.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-5-164x164.jpg 164w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-5.jpg 400w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Using the Count and columns fields you can define the number of items and columns for the category layout. <\/p>\r\n<p>You can also select the image size for each items area. <\/p>\r\n<p>In the   <strong>Other layout options<\/strong> you can select if you want to display items from sub-categories, define items order and pagination. <\/p>\r\n<p class=\"tip\">Please note that you can hover over the option title to see short tip. <\/p>\r\n<h3>Category View Options<\/h3>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-6-219x300.jpg\" alt=\"\" title=\"k2-cat-6\" width=\"219\" height=\"300\" class=\"aligncenter size-medium wp-image-15921\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-6-219x300.jpg 219w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-6.jpg 409w\" sizes=\"(max-width: 219px) 100vw, 219px\" \/><\/a><\/p>\r\n<p>Allows you to define what parts of the category details you want to display at the category page<\/p>\r\n<h3>Item image options<\/h3>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-7-300x246.jpg\" alt=\"\" title=\"k2-cat-7\" width=\"300\" height=\"246\" class=\"aligncenter size-medium wp-image-15922\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-7-300x246.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-7.jpg 409w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\r\nHere you can define the width for the item images. The images width values should be defined before you upload images to your items. <\/p>\r\n<h3>Item view options in category listings<\/h3>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-8-134x300.jpg\" alt=\"\" title=\"k2-cat-8\" width=\"134\" height=\"300\" class=\"aligncenter size-medium wp-image-15923\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-8-134x300.jpg 134w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-8.jpg 406w\" sizes=\"(max-width: 134px) 100vw, 134px\" \/><\/a><\/p>\r\n<p>Allows to define what parts of tem details you want to display at the category listing page. <\/p>\r\n<h3>Item view options<\/h3>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-9.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-9-129x300.jpg\" alt=\"\" title=\"k2-cat-9\" width=\"129\" height=\"300\" class=\"aligncenter size-medium wp-image-15920\" \/><\/a><\/p>\r\n<p>Allows to define what parts of tem details you want to display at the item view page. <\/p>\r\n<h3>Metadata Information<\/h3>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-10.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/k2-cat-10-300x256.jpg\" alt=\"\" title=\"k2-cat-10\" width=\"300\" height=\"256\" class=\"aligncenter size-medium wp-image-15914\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-10-300x256.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-cat-10.jpg 411w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Here you can define the search engine friendly description for the category<\/p>\r\n<p><\/p>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to add new K2 Content item in Joomla.<\/p>\n","protected":false},"author":2,"featured_media":15988,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[724],"tags":[687,616,1129,1106,483,1131],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/15913"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=15913"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/15913\/revisions"}],"predecessor-version":[{"id":81847,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/15913\/revisions\/81847"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/15988"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=15913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=15913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=15913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}