Category - ToolBox

SharePoint ToolBox 78 Wetter-Webpart im SharePoint bereitstellen

Wer einen Wetter-Webpart im eigenen SharePoint bereitstellen will, kann das heute so schnell tun, dass man darüber kaum mehr nachdenken muss. Hier liefere ich eine kurze Anleitung zum Ziel:

Folgende Werkzeuge werden benötigt:

  • Standard XML-Viewer Webpart
  • Wetter-API
  • Ansprechende Wetter-Icons

Und so geht’s:

Um Wetterdaten anzeigen zu können, muss eine API mit entsprechenden Informationen zur Verfügung stehen. Wetter-APIs werden von vielen Anbietern bereitgestellt. Ruft man eine API über einen Browser auf, sind die darin befindlichen Daten im Detail ersichtlich. Dies ist vor allem dazu notwendig, um später die XSL-Struktur nach eigenen Wünschen beschreiben zu können.

Die zur Verfügung stehenden Wetterdaten meiner API-Schnittstelle sehen wie folgt aus:

[code language=“css“]
<current>
<city id="2950159" name="Berlin">
<coord lon="13.41" lat="52.52"/>
<country>DE</country>
<sun rise="2014-02-19T06:13:11" set="2014-02-19T16:27:04"/>
</city>
<temperature value="5.27" min="4" max="6.3" unit="celsius"/>
<humidity value="63" unit="%"/>
<pressure value="1010.2" unit="hPa"/>
<wind>
<speed value="2.9" name="Light breeze"/>
<direction value="230" code="SW" name="Southwest"/>
</wind>
<clouds value="64" name="broken clouds"/>
<precipitation mode="no"/>
<weather number="500" value="leichter Regen" icon="10d"/>
<lastupdate value="2014-02-19T08:44:55"/>
</current>

[/code]

Jeder Knoten liefert verschiede Informationen, welche auch ineinander geschachtelt sein können. Mein Wetter-Webpart soll in einer bereits festgelegten Ansicht dargestellt werden:

Die Informationen, welche ich also für die Anzeige meines Wetter-Webparts benötige sind folgende:

  • „icon“ aus dem Knoten „weather“ (hier mit dem Wert „10d“)
  • „name“ aus dem Knoten „city“ (hier mit dem Wert „Berlin“)
  • „value“ aus dem Knoten „temperature“ (hier mit dem Wert „5.27“)
  • „value“ aus dem Knoten „weather“ (hier mit dem Wert „leichter Regen“)

Diese Informationen muss ich nun in meine XSL-Struktur verpacken, damit später mein gewünschtes Ergebnis zu sehen ist.
Mein XSL hat folgende Struktur:

[code language=“css“]
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:output method="html" indent="yes" encoding="utf-8" />
<xsl:template match="/">
<html>
<body>
<table class="WeatherWP" cellpadding="0" cellspacing="0">
<tr>
<td>
<xsl:call-template name="weatherIcon"/>
</td>
<td>
<xsl:apply-templates/>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>

<xsl:template name="weatherIcon">
<xsl:variable name="weather">
<xsl:value-of select="@value"></xsl:value-of>
</xsl:variable>
<xsl:variable name="icon">
<xsl:value-of select="//current/weather/@icon"></xsl:value-of>
</xsl:variable>
<div class="icon{$icon}">
<img src="/_layouts/15/images/blank.gif" alt="{$weather}" title="{$weather}" />
</div>
</xsl:template>

<xsl:template match="city">
<div class="City">
<xsl:value-of select="@name"/>
</div>
</xsl:template>

<xsl:template match="temperature ">
<div class="Temperature">
<xsl:value-of select=’format-number(@value, "0")’/>
<xsl:text>&#x2103;</xsl:text>
</div>
</xsl:template>

<xsl:template match="weather">
<div class="Weather">
<xsl:value-of select="@value"/>
</div>
</xsl:template>
</xsl:stylesheet>
[/code]

Im oberen Bereich der Tabelle übergebe ich im ersten TD das XSL-Template mit dem Namen „weatherIcon“, im zweiten TD alle anderen Templates. Wenn man sich das XSL und die in der API bereitstehenden Knoten in Ruhe anschaut, erklärt sich die Zusammensetzung fast von selbst. Wenn hierzu weitere Informationen benötigt werden, gehe ich nach einem entsprechenden Hinweis gern noch einmal im Detail darauf ein.

Die daraus entstehende HTML-Struktur, welche mir im Browser angezeigt wird, sieht wie folgt aus:

[code language=“css“]</pre>
<table class="WeatherWP" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div class="icon10d">
<img title="" alt="" src="/_layouts/15/images/blank.gif" />
</div>
</td>
<td>
<div class="City">Berlin</div>
<div class="Temperature">5℃</div>
<div class="Weather">leichter Regen</div>
</td>
</tr>
</tbody>
</table>
[/code]

CSS-Anpassungen können dann beliebig vorgenommen werden. Ich übergebe für jedes Icon ein entsprechendes Bild per CSS, welches sich an einer Klasse orientiert, die aus dem Begriff „icon“  und dem jeweilig gelieferten Wert aus der API zusammengesetzt ist und verschiebe die Informationen an die von mir gewünschten Stellen.

Um schließlich alles im SharePoint anzeigen lassen zu können, muss im ersten Schritt der Standard XML-Viewer Webpart einer beliebigen Webpartzone hinzugefügt werden. Dann auf „Webpart bearbeiten“ klicken und in die Konfiguration des Webparts übergehen.  Im Feld „XML-Verknüpfung“ wird nun die API-URL eingefügt. Sie dient an dieser Stelle als Lieferant der entsprechenden Daten und verknüpft den Webpart mit diesen.
Über den Button „XSL-Editor“ öffnet sich ein kleines Fenster, in welches nun die XSL-Struktur übertragen wird.  Auf „übernehmen“ und anschließend auf „OK“ klicken und schon ist der Wetter-Webpart wie gewünscht sichtbar.

SharePoint ToolBox 77

SPSync – SharePoint/Windows Explorer sync tool

SPSync is a very powerful tool, sitting in the taskbar and works like Dropbox. It automatically sync folders you choose with document libraries in SharePoint 2010 and SharePoint 2013 (including Office 365 / SharePoint Online). It provides a full two-way sync mechanism.

CAML Query Creator

CAML Query Creator is a set of tools for fast and easy creation of texts CAML- queries via the lambda expression.

Cascaded Dropdown lists JQuery Plugin for SharePoint Forms

SPCascade lets you create multi-level cascaded dropdown lists on a SharePoint form using easy JQuery code.

SharePoint ToolBox 76

List Manager for SharePoint

Allows you to generate random list items and documents. This utility can randomize values for most field types including multichoice, Lookups and Taxomony metadata and links.

JQUERY LIBRARY FOR SHAREPOINT WEB SERVICES

This is a jQuery library which abstracts SharePoint’s Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install. BugFixUpdate !

XSOLON – SHAREPOINT ENCRYPTED LIST

SharePoint 2013 Hosted application. RSA encrypted list, purely implemented in JavaScript. Allows you to: – encrypt/decrypt fields – Create encryption keys

SPSD SHAREPOINT SOLUTION DEPLOYER

Highly configurable but easy to use PowerShell script to deploy solutions toSharePoint 2010/2013. Performs also prerequisite checks and post-deployment Actions.

SharePoint ToolBox 75

SharePoint Display Tweets Webpart

The SharePoint Display Tweets web parts makes it easy to
follow Twitter activity on your SharePoint site without violating Twitter
activity thresholds. It’s built in C# and takes advantage of jQuery UI concepts
as well as WCF services.

SharePoint 2013 Autocomplete Lookup Field

SharePoint 2013 Autocomplete Lookup field allows type ahead functionality while looking up values from the lookup list. It uses REST for specifying filters.

ZOOM-IN SHAREPOINT NEWSFEED IMAGES

I developed a custom feature that injects JavaScript and CSS on the fly, and with the help of jQuery, you can Zoom-in and Zoom-out the Newsfeed image 🙂

SharePoint ToolBox 74

SharePoint Client Browser for SharePoint 2010 and 2013

Remote SharePoint development is getting more important. Especially with SharePoint Apps. To speed up development, find hidden lists/items/documents, discover the structure or specific artifact properties use the SharePoint Client Browser which supports both SharePoint 2010 and SharePoint 2013. Get up and running in seconds, because this WinForm tool does not need installation but simply unzip the download and start the EXE file. Next step, connect to your on-premise or SharePoint Online (Office 365) site collection.

People Picker Plus for SharePoint 2010

Globally replace the SharePoint people picker with a better control that works the same across IE, Chrome, and Firefox.

p2csv – Permissions To CSV

p2csv (Permission to CSV) is a small jQuery plugin that makes easy and fast the task to export SharePoint sites, lists and libraries permissions, creating a clean and readable CSV file.  It’s full compatible with SharePoint 2007, 2010 and 2013.

SharePoint ToolBox 73

Knockout binders for SharePoint 2013 and 2010 REST API and SP Services

KoSp, Knockout for SharePoint 2013 and SharePoint 2010 is a knockout binder extensions for SharePoint REST API and SP Services. KoSp provides custom knockout binding handlers that enables easy binding of json data from SharePoint lists retrieved via REST API with oData queries and  SP Services with CAML queries with client side controls.

SharePoint Host Named Site Collection Creator

The SharePoint Host named Site Collection (HSNC) Creator is a Codeplex Project that allows SharePoint Admins to create HSNC Via a GUI instead of PowerShell.

SharePoint Workflow Dashboard

Keep SharePoint workflows under control with help PlumSail Workflow Dashboard

SharePoint ToolBox 72

News Ticker Web Part for SharePoint 2013

Das News Ticker Webpart von Solutions2Share erzeugt ein Laufband mit Einträgen aus einer Ankündigungs- oder einer benutzerdefinierten Liste. Das Design kann angepasst werden. Die App ist kostenfrei im Windows App Store verfügbar.

I am Following

Users can follow nearly everything in SharePoint 2013. This solution provides a list of followed contend where ever you need it in your SharePoint. This app for SharePoint 2013/Office 365. Videodemo on Youtube

ItemMover     ..:: I Like SharePoint ::..

This solution offers your users to move list items between any folder from content type „Folder Content Types“. For example if you are using a task list, discussion list or even a custom list which includes content types as summary task, folder content types which you created by yourself or discussion. It does not delete the item but simple change the path where it should be available. It doesn’t matter how many subfolders you have.

Tipp: Die SharePointSendung

SharePoint ToolBox 71

SharePoint 2013 Easy Ribbon API

SharePoint 2013 Easy Ribbon provide easy API for Ribbon creation and managing in SharePoint 2013.  Based on the SharePoint 2010 Fluent Ribbon API (with small source code changes, repack and rebuild for SharePoint 2013).

SharePoint ToolBox 70

CKS Dev 11 1.1.0.1

This project extends the Visual Studio 2010 and Visual Studio 2012 SharePoint project system with advanced templates and tools. Using these extensions you will be able to find relevant information from your SharePoint environments without leaving Visual Studio. You will have greater productivity while developing SharePoint components and you will have greater deployment capabilities on your local SharePoint installation.

The current 1.1 release includes the following features:

  • Improvements to Quick Deploy – Performance improvements phase one and some minor defect fixes in GACUtil calls.
  • Existing VS2010 SPI Providers – Projects with existing CKSDev SPIs now supported.
  • SharePoint 2010 Console project template – Project template for a SharePoint 2010 console application.
  • SharePoint 2013 Console project template – Project template for a SharePoint 2013 console application.

Create a phone app that displays Maps for SharePoint 2013

SharePoint 2013 introduces a new field type named Geolocation that enables you to annotate SharePoint lists with location information. In columns of type Geolocation, you can enter location information as a pair of latitude and longitude coordinates in decimal degrees or retrieve the coordinates of the user’s current location from the browser if it implements the W3C Geolocation API. In the list, SharePoint 2013 displays the location on a map powered by Bing Maps. Together, the Geolocation field and the Map View enable you to give a spatial context to any information by integrating data from SharePoint into a mapping experience, and let your users engage in new ways in your web and mobile apps and solutions.

AD User Editor WebPart

AD User Editor is a WebPart for SharePoint 2010 & MOSS 2007 to easily edit any user profile attribute in Active Directory trough an entirely customizable form.

SharePoint ToolBox 69

SharePoint MultiLingual Taxonomy Term store import tool

Based on sp2010metadataimport.codeplex.com Added support for multiple language term imports. and refactored some of the code and extended some classes

SharePoint Global Top Menu Navigation Solution

Global Top Menu Navigation allows to have a centralized navigation for your SharePoint web application. You can have one Top Menu for all site collections

Facebook Like Webpart for SharePoint 2013

A web part for SharePoint 2013 that shows the like control of Facebook. With this webpart you can like a page in or out of SharePoint 2013. You can add a url to the web part or leave it blank for the url of the current page.

 

 

 

SharePoint ToolBox 68

SharePoint Apps – Starter Packs

The following downloads are FREE starter packs for various SharePoint Apps. The starter packs include fully-commented source code for the Apps, all of which have been validated and approved in the SharePoint App store.

  • Pipeline Manager Starter Pack
  • Invoicing Manager Starter Pack
  • Tic-Tac-Toe Starter Pack

SharePoint Software Factory

The SharePoint Software Factory is a Visual Studio Extension helping SharePoint newbies, as well as experienced developers to create, manage and deploy SharePoint solutions without having to know every tiny XML and C# secret. SPSF provides a huge collection of helpful recipes for development, debugging and deployment of SharePoint standard artifacts and is fully compatible with SharePoint 2007/2010/2013 and Visual Studio 2008/2010/2013.

Virtual Router – Wifi Hot Spot for Windows 8, Windows 7 and 2008 R2

Virtual Router turns any Windows 7, Windows 8 or 2008 R2 computer into a Wifi Hot Spot using Windows‘ Wireless Hosted Network (Virtual Wifi) technology.

SharePoint ToolBox 67

SharePoint Solution Deployer

A highly configurable but easy to use PowerShell script to deploy WSPs to SharePoint 2010/2013. It performs important prerequisite checks, post deployment actions and allows to „hook“ in your custom PowerShell actions. Can be also used for staging environments.

Visio Stencils for Microsoft Dynamics CRM 2011

A set of Microsoft Visio Stencils that enable the design of Microsoft CRM application screens without the need for development resources or access to professional IT Consultants.

Download and Install SharePoint 2013 Prerequisites on Windows Server 2012

These PowerShell scripts will automate downloading and installing the SharePoint 2013 Prerequisites on Windows Server 2012. The scripts will assist those who need to install SharePoint 2013 ‚offline‘ or wish to manually install its Prerequisites on Windows Server 2012.

Modern UI – SharePoint 2010 Master Page

Modern UI Master Page and Styles for SharePoint 2010. This will give the Metro/Modern UI styling of SharePoint 2013 to your SharePoint 2010 team sites. Features include quick launch styling, global nav and drop-down styling, search box styling and layout change, web part header styling and  Segoe UI font.