https://oxpedia.org/wiki/index.php?title=CCWidgetSetup&feed=atom&action=history
CCWidgetSetup - Revision history
2024-03-29T04:47:43Z
Revision history for this page on the wiki
MediaWiki 1.31.0
https://oxpedia.org/wiki/index.php?title=CCWidgetSetup&diff=8984&oldid=prev
Dennis Sieben: /* Solution */
2011-09-22T13:15:33Z
<p><span dir="auto"><span class="autocomment">Solution</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 13:15, 22 September 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l24" >Line 24:</td>
<td colspan="2" class="diff-lineno">Line 24:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>Next, we create the default widget settings in the file '''/opt/open-xchange/etc/groupware/uwa.properties'''</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>Next, we create the default widget settings in the file '''/opt/open-xchange/etc/groupware/uwa.properties'''</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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;"><div>com.openexchange.frontend.uwa.widgetFile=g4you_widgets</div></td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; 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;"><div><ins class="diffchange diffchange-inline"> </ins>com.openexchange.frontend.uwa.widgetFile=g4you_widgets</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>And the corresponging widget definition file '''/opt/open-xchange/etc/groupware/widgets/g4you_widgets.yml''':</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; 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;"><div>And the corresponging widget definition file '''/opt/open-xchange/etc/groupware/widgets/g4you_widgets.yml''':</div></td></tr>
</table>
Dennis Sieben
https://oxpedia.org/wiki/index.php?title=CCWidgetSetup&diff=8983&oldid=prev
DerCisco: Created page with "== Task == You want to provide different preconfigured widgets for certain contexts == Solution == Let's say, we want to configure two widget sets, according to certain brand..."
2011-09-22T13:03:51Z
<p>Created page with "== Task == You want to provide different preconfigured widgets for certain contexts == Solution == Let's say, we want to configure two widget sets, according to certain brand..."</p>
<p><b>New page</b></p><div>== Task == <br />
<br />
You want to provide different preconfigured widgets for certain contexts<br />
<br />
== Solution ==<br />
<br />
Let's say, we want to configure two widget sets, according to certain brands. We'll call them "Groupware4You", "CollaborationPro" and "OneStopShop". <br />
<br />
There is a config cascade enabled property ('''com.openexchange.frontend.uwa.widgetFile''') that governs which widget definition file is used.<br />
<br />
Firstly we'll tag the contexts. This will assign the contexts to a certain brand.<br />
<br />
''Groupware4You Contexts''<br />
'''changecontext -c1 ... --taxonomy/types=gw4u'''<br />
'''changecontext -c2 ... --taxonomy/types=gw4u'''<br />
<br />
''CollaborationPro Contexts''<br />
'''changecontext -c3 ... --taxonomy/types=cpro'''<br />
'''changecontext -c4 ... --taxonomy/types=cpro'''<br />
<br />
''OneStopShop Contexts''<br />
'''changecontext -c5 ... --taxonomy/types=oss'''<br />
'''changecontext -c6 ... --taxonomy/types=oss'''<br />
<br />
Next, we create the default widget settings in the file '''/opt/open-xchange/etc/groupware/uwa.properties'''<br />
com.openexchange.frontend.uwa.widgetFile=g4you_widgets<br />
<br />
And the corresponging widget definition file '''/opt/open-xchange/etc/groupware/widgets/g4you_widgets.yml''':<br />
<br />
ads:<br />
autorefresh: true<br />
parameter: "{customerType: 'free'}"<br />
standalone: true<br />
url: http://www.groupware4you.com/widgets/Ads<br />
visible: true<br />
title:Offerings from Groupware 4 You<br />
<br />
newAndNoteworthy:<br />
autorefresh: false<br />
parameter: "{customerType: 'free', includeUpsell: 'true'}"<br />
standalone: true<br />
url: http://www.groupware4you.com/platformNews<br />
visible: true<br />
title: New and Noteworthy<br />
<br />
<br />
Next, let's define the two other brands. If a context belongs to a certain brand, other widget files will be used.<br />
<br />
Create a file '''/opt/open-xchange/etc/groupware/contextSets/widgetSets.yml'''.<br />
<br />
cpro:<br />
withTags: cpro<br />
com.openexchange.frontend.uwa.widgetFile: cpro_widgets<br />
<br />
oss:<br />
withTags: oss<br />
com.openexchange.frontend.uwa.widgetFile: oss_widgets<br />
<br />
<br />
And the corresponding widget files, referred to by the configuration above.<br />
<br />
'''/opt/open-xchange/etc/groupware/widgets/cpro_widgets.yml''':<br />
newAndNoteworthy:<br />
autorefresh: false<br />
parameter: "{customerType: 'free', includeUpsell: 'true'}"<br />
standalone: true<br />
url: http://www.collaborationpro.com/platformNews<br />
visible: true<br />
title: Collaboration Pro, New And Noteworthy<br />
<br />
'''/opt/open-xchange/etc/groupware/widgets/oss_widgets.yml''':<br />
newAndNoteworthy:<br />
autorefresh: false<br />
parameter: "{customerType: 'free', includeUpsell: 'true'}"<br />
standalone: true<br />
url: http://www.onestopshop.com/platformNews<br />
visible: true<br />
title: The One Stop Shop News<br />
<br />
This will make the widget files vary along the config cascade.</div>
DerCisco