<?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>Thoughts Electrique &#187; Content</title>
	<atom:link href="http://www.sebastian.himberger.de/blog/tag/content/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sebastian.himberger.de/blog</link>
	<description>Sebastian Himbergers blog about technology and software development</description>
	<lastBuildDate>Sat, 16 Jul 2011 22:48:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Decentralized categories in OpenCms 7.5</title>
		<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/</link>
		<comments>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 19:33:26 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[CRE]]></category>
		<category><![CDATA[OpenCms]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=417</guid>
		<description><![CDATA[This feature was presented by Michael Emmerich during the OpenCms Days 2009 and caused a lot of people to grab their pen. A short background on categories Categories are a built-in content relation in OpenCms and allow files in the VFS to be assigned one or more topics/keywords/whatever. They can often be used as a [...]]]></description>
			<content:encoded><![CDATA[<p>This feature was presented by <a href="http://www.opencms-days.org/en/program/sessions/t8.html" target="_blank">Michael Emmerich during the OpenCms Days 2009</a> and caused a lot of people to grab their pen.</p>
<h3>A short background on categories</h3>
<p><em>Categories </em>are a built-in content <em>relation</em> in <em>OpenCms</em> and allow files in the <em>VFS</em> to be assigned one or more topics/keywords/whatever. They can often be used as a replacement feature for siblings which are mostly misunderstood by users without a technical background. For example consider the typical example of a news site. You have a folder structure for your articles which could be the following way:</p>
<pre>/articles/2008/12-24-merry-christmas.html
/articles/2009/09-01-new-site.html
/articles/2009/10-02-a-great-article.html</pre>
<p>You now want to categorize the articles into topics so you would create another folder structure:</p>
<pre>/topic/must-read
/topic/technical</pre>
<p>The <em>sibling-way</em> would be to create a sibling (put simply: an automatically updating copy) of the articles in the desired <em>topic</em> folder. While this is a working solution it&#8217;s counterintuitive to most users. OpenCms 7 introduced the long awaited <em>Content Relation Engine</em> (<em>CRE</em>) including a default relation called categories. Similar to the sibling solution a category is effectively a folder but instead of creating it anywhere in the filesystem it&#8217;s created in the root site (&#8220;/&#8221;) under <em>/system/categories/.</em> Users can now assign categories to VFS files using the context-menu entry <em>Relations -&gt; Assign Categories</em>. This is a much easier approach although it has one caveat: Categories are globally defined in the <em>/system/</em> folder and can therefore only be created by users with access to the root site and can not be specified on a per site or even per folder basis. This can cause problems in multisite environments.</p>
<h3>Decentralization to the rescue</h3>
<p>With OpenCms 7.5 this limitation is finally gone. You can now define categories on a per-site and even per-folder basis. Simply create a folder named <em>_categories</em> in the folder where you want the categories to be available. Then create new folders inside this folder to define categories. The categories are available in the parent folder of the <em>_categories</em>-folder and all subfolders. They also cascade down. Example:</p>
<pre>/de/_categories/
/de/_categories/hot-topic
/de/_categories/support
/de/news/_categories/
/de/news/_categories/marketing
/de/news/_categories/development</pre>
<p>Inside the <em>/de/</em> folder the categories <em>hot-topic</em> and <em>support </em>are available. Inside<em> /de/news/</em> the categories <em>hot-topic</em>, <em>support</em>, <em>marketing</em> and <em>development</em> are available.</p>
<p>This feature should easily help you to get your content structured more nicely. Speaking from experience it is crucial to create an evolveable content structure upfront so your editors as well as visitors and search engines get the most out of your site.</p>
<p>See also:</p>
<ul>
<li><a href="http://www.opencms.org/en/events/opencms_days_2008/program/sessions/t2.html" target="_blank">Presentation from Michael Moossen about the CRE at OpenCms Days 2008</a></li>
<li><a href="http://www.w3.org/Provider/Style/URI" target="_blank">A guide to good URI design</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

