<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Decentralized categories in OpenCms 7.5</title>
	<atom:link href="http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/</link>
	<description>Sebastian Himbergers blog about technology and software development</description>
	<lastBuildDate>Sun, 07 Feb 2010 18:05:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sebastian</title>
		<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/comment-page-1/#comment-15158</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sun, 07 Feb 2010 18:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=417#comment-15158</guid>
		<description>Hi Paul,

thanks for publishing the example! That&#039;s really nice of you.

All the best,
Sebastian</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>thanks for publishing the example! That&#8217;s really nice of you.</p>
<p>All the best,<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/comment-page-1/#comment-15156</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 07 Feb 2010 16:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=417#comment-15156</guid>
		<description>When I first set out to test the category concept, I had trouble finding any example code. So to anyone who&#039;s experiencing that, here&#039;s a simple JSP to get you started:

&lt;%
final String REFERENCE_PATH = &quot;/en/categories/&quot;; // the reference (category) path
final String CATEGORY_NAME = &quot;my-category&quot;; // folder name of the category folder
final boolean INCLUDE_SUB_CATEGORIES = false;

CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
CmsObject cmso = cms.getCmsObject();

CmsCategoryService catService = CmsCategoryService.getInstance(); // Get the singleton
List res = catService.readCategoryResources(cmso, CATEGORY_NAME, INCLUDE_SUB_CATEGORIES, REFERENCE_PATH); // read resources that belong to the specified category

// Print the returned list of resources
out.println(&quot;Resources with category &#039;\ + CATEGORY_NAME + \&#039;: \ + res.size() + \\);
Iterator i = res.iterator();
while (i.hasNext()) {
    out.println(\\ + ((CmsResource)i.next()).getName());
}
%&gt;</description>
		<content:encoded><![CDATA[<p>When I first set out to test the category concept, I had trouble finding any example code. So to anyone who&#8217;s experiencing that, here&#8217;s a simple JSP to get you started:</p>
<p>&lt;%<br />
final String REFERENCE_PATH = &quot;/en/categories/&quot;; // the reference (category) path<br />
final String CATEGORY_NAME = &quot;my-category&quot;; // folder name of the category folder<br />
final boolean INCLUDE_SUB_CATEGORIES = false;</p>
<p>CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);<br />
CmsObject cmso = cms.getCmsObject();</p>
<p>CmsCategoryService catService = CmsCategoryService.getInstance(); // Get the singleton<br />
List res = catService.readCategoryResources(cmso, CATEGORY_NAME, INCLUDE_SUB_CATEGORIES, REFERENCE_PATH); // read resources that belong to the specified category</p>
<p>// Print the returned list of resources<br />
out.println(&quot;Resources with category &#8216;\ + CATEGORY_NAME + \&#8217;: \ + res.size() + \\);<br />
Iterator i = res.iterator();<br />
while (i.hasNext()) {<br />
    out.println(\\ + ((CmsResource)i.next()).getName());<br />
}<br />
%&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/comment-page-1/#comment-13088</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sat, 07 Nov 2009 20:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=417#comment-13088</guid>
		<description>Maybe it&#039;s just part of becoming a dad.. too many thoughts ;)

Are you actually working again or just in the office because you can&#039;t stay away from Java?</description>
		<content:encoded><![CDATA[<p>Maybe it&#8217;s just part of becoming a dad.. too many thoughts <img src='http://www.sebastian.himberger.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Are you actually working again or just in the office because you can&#8217;t stay away from Java?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/comment-page-1/#comment-13085</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 07 Nov 2009 19:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=417#comment-13085</guid>
		<description>unbelievable, you are absolutely right... it is just so much time ago, i think i am getting old :(</description>
		<content:encoded><![CDATA[<p>unbelievable, you are absolutely right&#8230; it is just so much time ago, i think i am getting old <img src='http://www.sebastian.himberger.de/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/comment-page-1/#comment-13074</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sat, 07 Nov 2009 15:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=417#comment-13074</guid>
		<description>Hi Michael,

thanks for the info. To be honest: I think there are a lot of features that nobody uses because they are like hidden gems. I already have a lot of draft posts on them and this was also my idea for the 2009 OpenCms Days talk (which I couldn&#039;t do because of time constraints). 

Are you sure about the 7.0.0? Because the history.txt mentions the addition of decentralized categories in the 7.5 beta 1. 

I hope everything is well with you.

All the best,
Sebastian</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>thanks for the info. To be honest: I think there are a lot of features that nobody uses because they are like hidden gems. I already have a lot of draft posts on them and this was also my idea for the 2009 OpenCms Days talk (which I couldn&#8217;t do because of time constraints). </p>
<p>Are you sure about the 7.0.0? Because the history.txt mentions the addition of decentralized categories in the 7.5 beta 1. </p>
<p>I hope everything is well with you.</p>
<p>All the best,<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.sebastian.himberger.de/blog/2009/11/06/decentralized-categories-in-opencms-7-5/comment-page-1/#comment-13058</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 07 Nov 2009 07:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=417#comment-13058</guid>
		<description>we were just discussing in the office that this might be one of those features that nobody knows or uses but makes our work (for v8) much more complicated ;)
just for completeness this feature was already available in version 7.0.0...
and i am happy somebody is really using it!!</description>
		<content:encoded><![CDATA[<p>we were just discussing in the office that this might be one of those features that nobody knows or uses but makes our work (for v8) much more complicated <img src='http://www.sebastian.himberger.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
just for completeness this feature was already available in version 7.0.0&#8230;<br />
and i am happy somebody is really using it!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
