<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.open-xchange.com/wiki/index.php?action=history&amp;feed=atom&amp;title=CCWidgetSetup</id>
	<title>CCWidgetSetup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.open-xchange.com/wiki/index.php?action=history&amp;feed=atom&amp;title=CCWidgetSetup"/>
	<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=CCWidgetSetup&amp;action=history"/>
	<updated>2026-09-26T00:13:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=CCWidgetSetup&amp;diff=8984&amp;oldid=prev</id>
		<title>Dennis Sieben: /* Solution */</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=CCWidgetSetup&amp;diff=8984&amp;oldid=prev"/>
		<updated>2011-09-22T13:15:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Solution&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:15, 22 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next, we create the default widget settings in the file &amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/uwa.properties&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next, we create the default widget settings in the file &amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/uwa.properties&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;com.openexchange.frontend.uwa.widgetFile=g4you_widgets&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;com.openexchange.frontend.uwa.widgetFile=g4you_widgets&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And the corresponging widget definition file &amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/widgets/g4you_widgets.yml&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And the corresponging widget definition file &amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/widgets/g4you_widgets.yml&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff::1.12:old-8983:rev-8984 --&gt;
&lt;/table&gt;</summary>
		<author><name>Dennis Sieben</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=CCWidgetSetup&amp;diff=8983&amp;oldid=prev</id>
		<title>DerCisco: Created page with &quot;== Task ==   You want to provide different preconfigured widgets for certain contexts  == Solution ==  Let&#039;s say, we want to configure two widget sets, according to certain brand...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=CCWidgetSetup&amp;diff=8983&amp;oldid=prev"/>
		<updated>2011-09-22T13:03:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Task ==   You want to provide different preconfigured widgets for certain contexts  == Solution ==  Let&amp;#039;s say, we want to configure two widget sets, according to certain brand...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Task == &lt;br /&gt;
&lt;br /&gt;
You want to provide different preconfigured widgets for certain contexts&lt;br /&gt;
&lt;br /&gt;
== Solution ==&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s say, we want to configure two widget sets, according to certain brands. We&amp;#039;ll call them &amp;quot;Groupware4You&amp;quot;, &amp;quot;CollaborationPro&amp;quot; and &amp;quot;OneStopShop&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
There is a config cascade enabled property (&amp;#039;&amp;#039;&amp;#039;com.openexchange.frontend.uwa.widgetFile&amp;#039;&amp;#039;&amp;#039;) that governs which widget definition file is used.&lt;br /&gt;
&lt;br /&gt;
Firstly we&amp;#039;ll tag the contexts. This will assign the contexts to a certain brand.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Groupware4You Contexts&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;#039;&amp;#039;&amp;#039;changecontext -c1 ... --taxonomy/types=gw4u&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;#039;&amp;#039;&amp;#039;changecontext -c2 ... --taxonomy/types=gw4u&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;CollaborationPro Contexts&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;#039;&amp;#039;&amp;#039;changecontext -c3 ... --taxonomy/types=cpro&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;#039;&amp;#039;&amp;#039;changecontext -c4 ... --taxonomy/types=cpro&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;OneStopShop Contexts&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;#039;&amp;#039;&amp;#039;changecontext -c5 ... --taxonomy/types=oss&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;#039;&amp;#039;&amp;#039;changecontext -c6 ... --taxonomy/types=oss&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Next, we create the default widget settings in the file &amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/uwa.properties&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
com.openexchange.frontend.uwa.widgetFile=g4you_widgets&lt;br /&gt;
&lt;br /&gt;
And the corresponging widget definition file &amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/widgets/g4you_widgets.yml&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
    ads:&lt;br /&gt;
      autorefresh: true&lt;br /&gt;
      parameter: &amp;quot;{customerType: &amp;#039;free&amp;#039;}&amp;quot;&lt;br /&gt;
      standalone: true&lt;br /&gt;
      url: http://www.groupware4you.com/widgets/Ads&lt;br /&gt;
      visible: true&lt;br /&gt;
      title:Offerings from Groupware 4 You&lt;br /&gt;
&lt;br /&gt;
    newAndNoteworthy:&lt;br /&gt;
      autorefresh: false&lt;br /&gt;
      parameter: &amp;quot;{customerType: &amp;#039;free&amp;#039;, includeUpsell: &amp;#039;true&amp;#039;}&amp;quot;&lt;br /&gt;
      standalone: true&lt;br /&gt;
      url: http://www.groupware4you.com/platformNews&lt;br /&gt;
      visible: true&lt;br /&gt;
      title: New and Noteworthy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, let&amp;#039;s define the two other brands. If a context belongs to a certain brand, other widget files will be used.&lt;br /&gt;
&lt;br /&gt;
Create a file &amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/contextSets/widgetSets.yml&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
    cpro:&lt;br /&gt;
        withTags: cpro&lt;br /&gt;
        com.openexchange.frontend.uwa.widgetFile: cpro_widgets&lt;br /&gt;
        &lt;br /&gt;
    oss:&lt;br /&gt;
        withTags: oss&lt;br /&gt;
        com.openexchange.frontend.uwa.widgetFile: oss_widgets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And the corresponding widget files, referred to by the configuration above.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/widgets/cpro_widgets.yml&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
    newAndNoteworthy:&lt;br /&gt;
        autorefresh: false&lt;br /&gt;
        parameter: &amp;quot;{customerType: &amp;#039;free&amp;#039;, includeUpsell: &amp;#039;true&amp;#039;}&amp;quot;&lt;br /&gt;
        standalone: true&lt;br /&gt;
        url: http://www.collaborationpro.com/platformNews&lt;br /&gt;
        visible: true&lt;br /&gt;
        title: Collaboration Pro, New And Noteworthy&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;/opt/open-xchange/etc/groupware/widgets/oss_widgets.yml&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
    newAndNoteworthy:&lt;br /&gt;
        autorefresh: false&lt;br /&gt;
        parameter: &amp;quot;{customerType: &amp;#039;free&amp;#039;, includeUpsell: &amp;#039;true&amp;#039;}&amp;quot;&lt;br /&gt;
        standalone: true&lt;br /&gt;
        url: http://www.onestopshop.com/platformNews&lt;br /&gt;
        visible: true&lt;br /&gt;
        title: The One Stop Shop News&lt;br /&gt;
&lt;br /&gt;
This will make the widget files vary along the config cascade.&lt;/div&gt;</summary>
		<author><name>DerCisco</name></author>
	</entry>
</feed>