<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Jivespace: Message List - Customizing Document Template based on Container Space</title>
    <link>http://www.jivesoftware.com/jivespace/community/developer?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 08 Jan 2009 18:56:48 GMT</pubDate>
    <generator>Jive SBS 3.0.8 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-01-08T18:56:48Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Customizing Document Template based on Container Space</title>
      <link>http://www.jivesoftware.com/jivespace/message/156456?tstart=0#156456</link>
      <description>&lt;!-- [DocumentBodyStart:45a7d6d9-a6f6-4d2c-ac0e-dbaedb31ab0a] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Thanks, Brian.&amp;#160; That looks to be exactly what I was looking for.&amp;#160; Conveniently, we've just (finally) started upgrading to 2.5.&amp;#160; I put off solving the problem due to this pending update, and now you've saved me a lot of research time.&amp;#160; I'll reply with any more details if I run into anything as I'm implementing.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:45a7d6d9-a6f6-4d2c-ac0e-dbaedb31ab0a] --&gt;</description>
      <pubDate>Thu, 08 Jan 2009 18:56:47 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/156456?tstart=0#156456</guid>
      <dc:date>2009-01-08T18:56:47Z</dc:date>
      <clearspace:dateToText>10 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Customizing Document Template based on Container Space</title>
      <link>http://www.jivesoftware.com/jivespace/message/155705?tstart=0#155705</link>
      <description>&lt;!-- [DocumentBodyStart:a756fbf0-c87b-400f-9a5a-904822f43bba] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;It's unfortunate that nobody replied to your post. I don't know if you still need this information, but I've done similar adjustments with Clearspace Community 2.5. I just upgraded a site Clearspace 2.0.x to 2.5. There are definitely a lot of differences in the themes between 2.0.x and 2.5.&lt;/p&gt;&lt;p&gt;I'll post what I know for anyone about CS 2.5.x for anyone who may have the same question.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In CS Community, you have three variables to check, depending on where you are in the community/sub-community tree.&lt;/p&gt;&lt;p&gt;${community.name}&lt;/p&gt;&lt;p&gt;${container.name}&lt;/p&gt;&lt;p&gt;${container.parentCommunity.name}&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here's an example...&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="1" cellpadding="5" cellspacing="0" style="border: 1px solid rgb(142, 142, 142); width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;#&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #000080;"&gt;assign&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #008080;"&gt;commName &lt;span style="color: #000000;"&gt;=&lt;/span&gt; community.name?html?to_lower&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;#&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #000080;"&gt;assign&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #008080;"&gt;containName &lt;span style="color: #000000;"&gt;=&lt;/span&gt; conatiner.name?html?to_lower&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;#&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #000080;"&gt;assign&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #008080;"&gt;parentName &lt;span style="color: #000000;"&gt;=&lt;/span&gt; container.parentCommunity.name?html?to_lower&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;#&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #000080;"&gt;if&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;(&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #008080;"&gt;commName??&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style="font-family: courier new,courier; color: #008080;"&gt;commName &lt;span style="color: #000000;"&gt;==&lt;/span&gt; "&lt;span style="color: #800080;"&gt;special space&lt;/span&gt;"&lt;/span&gt;&lt;span style="font-family: courier new,courier;"&gt;) || (&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #008080;"&gt;commName??&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style="font-family: courier new,courier; color: #008080;"&gt;containerName &lt;span style="color: #000000;"&gt;==&lt;/span&gt; "&lt;span style="color: #800080;"&gt;special space&lt;/span&gt;"&lt;/span&gt;&lt;span style="font-family: courier new,courier;"&gt;) || (&lt;/span&gt;&lt;span style="font-family: courier new,courier; color: #008080;"&gt;parentName??&lt;/span&gt; &lt;span style="font-family: courier new,courier;"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style="font-family: courier new,courier; color: #008080;"&gt;parentName &lt;span style="color: #000000;"&gt;==&lt;/span&gt; "&lt;span style="color: #800080;"&gt;special space&lt;/span&gt;"&lt;/span&gt;&lt;span style="font-family: courier new,courier;"&gt;))&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt; &lt;span style="font-family: courier new,courier; color: #800000;"&gt;&lt;span style="color: #000000;"&gt;&amp;lt;#&lt;span style="color: #000080;"&gt;assign&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family: courier new,courier; color: #800000;"&gt;&lt;span style="color: #008080;"&gt;specialSpace&lt;/span&gt; &lt;span style="color: #000000;"&gt;=&lt;/span&gt; &lt;span style="color: #008000;"&gt;true&lt;/span&gt; &lt;span style="color: #000000;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;#else&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt; &lt;span style="font-family: courier new,courier; color: #800000;"&gt;&lt;span style="color: #000000;"&gt;&amp;lt;#&lt;span style="color: #000080;"&gt;assign&lt;/span&gt;&lt;/span&gt; &lt;span style="color: #008080;"&gt;specialSpace&lt;/span&gt; &lt;span style="color: #000000;"&gt;=&lt;/span&gt; &lt;span style="color: #008000;"&gt;false&lt;/span&gt; &lt;span style="color: #000000;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;/#if&amp;gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then you can check for that variable throughout your theme.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a756fbf0-c87b-400f-9a5a-904822f43bba] --&gt;</description>
      <pubDate>Tue, 06 Jan 2009 21:29:09 GMT</pubDate>
      <author>britchie@solutionset.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/155705?tstart=0#155705</guid>
      <dc:date>2009-01-06T21:29:09Z</dc:date>
      <clearspace:dateToText>10 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Customizing Document Template based on Container Space</title>
      <link>http://www.jivesoftware.com/jivespace/message/145700?tstart=0#145700</link>
      <description>&lt;!-- [DocumentBodyStart:cf34a18b-144f-49aa-8a39-748824618dcc] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;I'm looking to do a simple customization of the document view template based on the space that the document is in.&amp;#160; Being a FTL newb, I'm looking for advice!&lt;/p&gt;&lt;p&gt;We now have two "themes".&amp;#160; Our global theme, and what I'll call our "Special space!" theme.&amp;#160; Every document that is in one of the Special Spaces needs to have a mildly different look to it, including a small image near the top.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've already branded the special spaces so that when you go to those spaces, you see the custom theme with the Special Space logo on it.. but if you go to a document inside the special space, you have no indication that this document is (or is not) in a special space.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What'd like to do is add some logic in the template that adds a little Image at the top (a sort of Stamp of Approval-type image) on any document that's in one of the Special Spaces.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I'd REALLY like is the following (in pseudo-code) in the document-view template:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:4d876b14-3aec-4f1b-9e7e-cf69d680dcdc]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;if (spaceThatContainsThisDoc.theme IS "Special Space Theme") {
&amp;#160; &amp;lt;img style="float over to the right nicely" src="sealofapproval.png"&amp;gt;
}
&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:4d876b14-3aec-4f1b-9e7e-cf69d680dcdc]--&gt;&lt;p&gt;I guess an acceptable approach (but definitely not the Right way) would be:&lt;/p&gt;&lt;!--[CodeBlockStart:c3cdedc4-6233-40fd-964b-979ec6351957]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;if (spaceThatContainsThisDoc IS ("SpecialSpace1" OR "SpecialSpace2" OR "SpecialestSpace" OR etc) {
&amp;#160; &amp;lt;img style="float over to the right" src="sealofapproval.png"&amp;gt;
}
&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:c3cdedc4-6233-40fd-964b-979ec6351957]--&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Advice and criticism is appreciated.&amp;#160;&lt;/p&gt;&lt;p&gt;(note: i'm using clearspace 2.0.8)&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cf34a18b-144f-49aa-8a39-748824618dcc] --&gt;</description>
      <pubDate>Tue, 25 Nov 2008 22:32:24 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/145700?tstart=0#145700</guid>
      <dc:date>2008-11-25T22:32:24Z</dc:date>
      <clearspace:dateToText>12 months, 13 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

