Hide
Need a quick chart or graph for your blog? Try our reStructured Text renderer. Join Siafoo Now or Learn More

Show Web Config Mods for SharePoint Data Zoom Web Part Atom Feed 0

In Brief Data Zoom Web Part script used to display the Web Config Modifications for the current Web Application and Web Service.... more
# 's
 1#*
2 * Script: Show web config modifications
3 * Publisher: SharePoint Solutions
4 * Version: 1.0
5 *#
6
7#macro( showWebConfigMods $title $webConfigMods )
8
9 <div style="padding-top:10px">
10 <table class="ms-menutoolbar" cellpadding="5" cellspacing="0" border="0" width="100%" >
11 <tr><td class="ms-toolbar" nowrap>&nbsp;$title</td></tr>
12 </table>
13 </div>
14
15 #foreach($webConfigMod in $webConfigMods)
16 #beforeall
17 <table class="ms-listviewtable" cellpadding="5" cellspacing="0" border="0" width="100%">
18 <tr class="ms-viewheadertr">
19 <th class="ms-vh2-nofilter">Path</th>
20 <th class="ms-vh2-nofilter">Seq</th>
21 <th class="ms-vh2-nofilter">Owner</th>
22 <th class="ms-vh2-nofilter">Type</th>
23 </tr>
24 #each
25 <tr class="ms-alternating">
26 <td class="ms-vb2" nowrap><strong>$webConfigMod.Path</strong></td>
27 <td class="ms-vb2">$webConfigMod.Sequence</td>
28 <td class="ms-vb2">$webConfigMod.Owner</td>
29 <td class="ms-vb2">$webConfigMod.Type</td>
30 </tr>
31 <tr class="">
32 <td class="ms-vb2" colspan="4" style="padding:10px;padding-left:35px;">
33
34 #if( $Strings.IsNullOrEmpty($webConfigMod.Name) || $webConfigMod.Name.Length < 75)
35 Name: $webConfigMod.Name
36 #else
37 Name:
38 <span title="$webConfigMod.Name" style="cursor:pointer">
39 $webConfigMod.Name.Substring(0, 75)...
40 </span>
41 #end
42
43 </td>
44 </tr>
45 #afterall
46 </table>
47 #nodata
48 No web config mods found
49 #end
50
51</div>
52
53#end
54
55
56
57## Show the web appliation web config mods
58#set( $webConfigMods = $webApplication.WebConfigModifications )
59#showWebConfigMods( "Web Config Modifications : Web Application" $webConfigMods )
60
61## Show the sp web service web config mods
62#set( $webConfigMods = $webApplication.WebService.WebConfigModifications )
63#showWebConfigMods( "Web Config Modifications : Web Service" $webConfigMods )

Data Zoom Web Part script used to display the Web Config Modifications for the current Web Application and Web Service.

http://www.siafoo.net/image/155