SlideShare a Scribd company logo
1 of 13
Emmanuel Sotter
Sharepoint 2013
webpart recherche de contenu
Créer un modèle d’affichage
Webpart recherche de contenu
Insérer composant webpart type « recherche de contenu ». Modifier les propriétés de la
webpart et cliquer sur « changer la requête »
Pointer sur l’url de votre bibliothèque d’images
Voici le résultat en utilisant le contrôle « liste », l’ élément «grande image », et en modifiant le
mappage de propriétés comme suit
Nous allons créer un contrôle et élément d’affichage pour avoir un slider
Vue d’ensemble
Master Page
Master Page
Mise en page
Mise en page 1
Contrôle de champ
Contrôle de
champ
webpart
Webpart Recherche de
contenu
Modèle d’affichage
contrôle
Modèle
d’élément
Modèle
d’élément
Mise en page 2
Contrôlede
champ
Webpart Recherche de contenu
Modèle de controle
Modèle d’élément
Modèle d’élément
modèle de contrôle
+
modèle d‘élément
= Modèle d’affichage
Modèle d’élément
Modèle d’élément
Modèle d’affichage contrôle
Fixe le caneva générique de l’affichage des éléments.
Webpart Recherche de contenu
Récupère le résultat et transmet au modèle
L’objectif est d’avoir un affichage type slider, j’ai choisi d’utiliser le script javascript disponible
gratuitement sur http://www.jssor.com/.
Nous allons dans un premier temps, installer un modèle d’affichage que j’ai préparé pour vous.
Sources du modèle d’affichage
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Controle Slider Shareproject</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106601005767008600A3684B8DE8EE696671AA44</mso:ContentTypeId>
<mso:MasterPageDescription msdt:dt="string"></mso:MasterPageDescription>
<mso:TargetControlType msdt:dt="string">;#SearchResults;#SearchHoverPanel;#Content Web Parts;#Refinement;#SearchBox;#Custom;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
<mso:HtmlDesignStatusAndPreview msdt:dt="string">http://srvcollab/_catalogs/masterpage/slide/list-slider.html, La conversion a réussi.</mso:HtmlDesignStatusAndPreview>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
<body style="font-family:Arial, Verdana;background-color:#fff;">
<script>
$includeScript(this.url, "~sitecollection/Style%20Library/js/jquery-1.9.1.min.js");
$includeScript(this.url, "~sitecollection/Style%20Library/js/jssor.slider.mini.js");
</script>
<div ID="list-slider">
<!--#_
jQuery(document).ready(function ($) {
var _CaptionTransitions = [{$Duration:1200,x:-
0.5,y:0.3,$Zoom:1,$Easing:{$Left:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseInWave,$Zoom:$JssorEasing$.$EaseInOutQuad},$Opacity:2,$During:{$Left:[0,0.7],$Top:[0.1,0.7]},$Round:{$Top:0.4}}];
_CaptionTransitions["transition_name1"] ={$Duration:1200,x:-
0.5,y:0.3,$Zoom:1,$Easing:{$Left:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseInWave,$Zoom:$JssorEasing$.$EaseInOutQuad},$Opacity:2,$During:{$Left:[0,0.7],$Top:[0.1,0.7]},$Round:{$Top:0.4}};
_CaptionTransitions["transition_name2"] ={$Duration:1200,y:0.6,$Clip:3,$Easing:$JssorEasing$.$EaseInCubic,$Opacity:2};
var _SlideshowTransitions = [
{$Duration:1800,x:1,y:0.2,$Delay:30,$Cols:10,$Rows:5,$Clip:15,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$Reverse:true,$Formation:$JssorSlideshowFormations$.$FormationStraightStairs,$Easing:{$Left:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseOutWave,$Clip:$JssorEasing$.$EaseIn
OutQuad},$Assembly:2050,$Outside:true,$Round:{$Top:1.3}}
,
{$Duration:1200,x:0.2,y:-
0.1,$Delay:20,$Cols:8,$Rows:4,$Clip:15,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$SlideOut:true,$Formation:$JssorSlideshowFormations$.$FormationZigZag,$Easing:{$Left:$JssorEasing$.$EaseInWave,$Top:$JssorEasing$.$EaseInWave,$Clip:$JssorEasing$.$EaseOutQuad},$Assembly:260,$Round:{
$Left:1.3,$Top:2.5}}
,
{$Duration:1200,$Zoom:11,$Rotate:1,$Easing:{$Zoom:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseOutQuad,$Rotate:$JssorEasing$.$EaseInCubic},$Opacity:2,$Round:{$Rotate:0.7}}
,
{$Duration:1800,x:1,y:0.2,$Delay:30,$Cols:10,$Rows:5,$Clip:15,$During:{$Right:[0.3,0.7],$Top:[0.3,0.7]},$SlideOut:true,$Reverse:true,$Formation:$JssorSlideshowFormations$.$FormationSwirl,$Easing:{$Right:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseOutWave,$Clip:$JssorEasing
$.$EaseInOutQuad},$Assembly:2050,$Outside:true,$Round:{$Top:1.3}}
];
var options = {
$SlideshowOptions: {
$Class: $JssorSlideshowRunner$,
$Transitions: _SlideshowTransitions,
$TransitionsOrder: 1,
$ShowLink: true
},
$CaptionSliderOptions: {
$Class: $JssorCaptionSlider$,
$CaptionTransitions: _CaptionTransitions,
$PlayInMode: 3,
$PlayOutMode: 3
},
$AutoPlay: true, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false
$AutoPlayInterval: 3000, //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000
$PauseOnHover: 0, //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3
pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1
$Loop: 1, //[Optional] Enable loop(circular)of carousel or not, 0: stop, 1: loop, 2 rewind, default value is 1
$ArrowKeyNavigation: true, //[Optional] Allows keyboard (arrow key) navigation or not,
default value is false
$SlideDuration: 500, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
$MinDragOffsetToSlide: 20, //[Optional] Minimum drag offset to trigger slide , default value is 20
//$SlideWidth: 600, //[Optional] Width of every slide in pixels, default value is width of 'slides' container
//$SlideHeight: 300, //[Optional] Height of every slide in pixels, default value is height of 'slides' container
$SlideSpacing: 5, //[Optional] Space between
each slide in pixels, default value is 0
$DisplayPieces: 1, //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1
$ParkingPosition: 0, //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0.
$UISearchMode: 1, //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator
container, arrow navigator container, thumbnail navigator container etc).
$PlayOrientation: 1, //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default
value is 1
$DragOrientation: 3 //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation
should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
};
var jssor_slider1 = new $JssorSlider$('slider1_container', options);
//responsive code begin
//you can remove responsive code if you don't want the slider scales while window resizes
function ScaleSlider() {
var parentWidth = jssor_slider1.$Elmt.parentNode.clientWidth;
if (parentWidth) {
var sliderWidth = parentWidth;
//keep the slider width no more than 810
sliderWidth = Math.min(sliderWidth, 810);
jssor_slider1.$ScaleWidth(sliderWidth);
}
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider();
$(window).bind("load",ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
//responsive code end
});
_#-->
<div id="slider1_container" style="position: relative; top: 0px; left: 0px; width: 600px; height: 300px;">
<div u="loading" style="position: absolute; top: 0px; left: 0px;">
<div style="filter: alpha(opacity=70); opacity:0.7; position: absolute; display: block;
background-color: #000000; top: 0px; left: 0px;width: 100%;height:100%;">
</div>
<div style="position: absolute; display: block; background: url(~sitecollection/Style%20Library/img/loading.gif) no-repeat center center;
top: 0px; left: 0px;width: 100%;height:100%;">
</div>
</div>
<!-- Slides Container-->
<div u="slides" style="cursor: move; position: absolute; overflow: hidden; left: 0px; top: 0px; width: 600px; height: 300px;">
<!--#_
ctx.ListDataJSONGroupsKey = "ResultTables";
if (!$isNull(ctx.ClientControl) && !$isNull(ctx.ClientControl.shouldRenderControl) && !ctx.ClientControl.shouldRenderControl()){return "";}
ctx.ListDataJSONGroupsKey = "ResultTables";
ctx.ListDataJSONItemsKey = "ResultRows";
ctx["CurrentItems"] = ctx.ListData.ResultTables[0].ResultRows;
var siteURL = SP.PageContextInfo.get_siteServerRelativeUrl();
_#-->
_#= ctx.RenderItems(ctx) =#_
</div>
</div>
</div>
</body>
</html>
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Elements Slider Shareproject</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:MasterPageDescription msdt:dt="string">Displays a result tailored for a picture.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
<mso:TargetControlType msdt:dt="string">;#SearchResults;#SearchHoverPanel;#Content Web Parts;#Refinement;#SearchBox;#Custom;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:ManagedPropertyMapping
msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSum
mary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer'
,'SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','PictureHeight':'PictureHeight','PictureWidth':'PictureWidth','ImageDateCreated':'ImageDateCreated','PictureThumbnailURL':'PictureT
humbnailURL','PictureURL':'PictureURL'</mso:ManagedPropertyMapping>
<mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
<mso:HtmlDesignStatusAndPreview msdt:dt="string">http://srvcollab/_catalogs/masterpage/slide/element-slider.html, La conversion a réussi.</mso:HtmlDesignStatusAndPreview>
<mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
<mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
<body>
<div id="Item_SlideImage" >
<!--#_
if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)) {
var title = ctx.CurrentItem.Title;
var path = ctx.CurrentItem.Path;
var encodedId = $htmlEncode(ctx.ClientControl.get_nextUniqueId() + "_shareprojectNC");
var siteURL = SP.PageContextInfo.get_siteServerRelativeUrl();
var linkURL = $getItemValue(ctx, "Path");
linkURL.overrideValueRenderer($urlHtmlEncode);
var title = $getItemValue(ctx, "Title");
var description = $getItemValue(ctx, "Description");
var pictureURL = $getItemValue(ctx, "PictureURL");
_#-->
<div id="_#= encodedId =#_" data-displaytemplate="ItemSlideList">
<a href="_#= linkURL =#_" title="_#= $htmlEncode(title) =#_" target="_blank"><img u="image" src="_#= pictureURL =#_" /></a>
<div u="caption" t="transition_name2" t2="transition_name1" style="position: absolute; top: 250px; left: 30px; min-width:100px;
height: 25px; background:orange;">
<p><a href="_#= linkURL =#_" title="_#= $htmlEncode(title) =#_" target="_blank">_#= $htmlEncode(title) =#_ </a></p>
</div>
</div>
<!--#_
}
_#-->
</div>
</body>
</html>
contrôle-slider-list.html
element-slider-list.html
Et télécharger les sources de www.jssor.com
Déposer dans le répertoire « js » de votre bibliothèque de
style les fichiers:
• Jquery-1-9-1.js, ou utiliser jquery de v1 à v2
• Jssor.js
• Jssor.slider.mini.js
Via Webdav ou sharepoint, Créer un répertoire à l’adresse
http://monserveur/_catalogs/masterpage/ , dans la galerie des
master page
Déposer les fichiers contrôle-slider-list.html et element-slider-
list.html
contrôle
Aller dans la galerie des master page, modifier les propriétés de
control-list-image.html
Permet de générer un fichier .JS complet qu’utilise SP
Content Web Parts suffit…il s’agit de la liste des contrôles
De recherche sur lesquels ce modèle pourra être appliqué
Elément
Aller dans la galerie des master page, modifier les propriétés de
Element-list-image.html
Archiver puis Publier les pages html : le modèle est
disponible dans les paramètres de la webpart.
On remarque les .js générés
Application du modèle d’affichage
Ouvrir la page contenant la webpart de recherche de contenu, modifier, et paramètres de la webpart.
Dans les propriétés de la webpart recherche de contenu, mettre
les options de contrôle et élément comme suit:
Emmanuel Sotter
Merci, oleti,
malo,maruru,thanks
Et voilà!
Copier les fichiers javascript « slides.min.jquery » et « jquery-1.8.3.min » dans le répertoire « js » de style library
Copier les fichiers CSS « global » dans le répertoire « slider/css/ » de style library.
Copier les fichiers html fourni dans _catalogs/masterpage/Display Templates/Search
Ouvrir le gestionnaire de conception, menu 5 modifier les modèles.
Vous apercevez vos fichiers html convertis avec succès.
Modifiez les propriétés de html pour lui donner les types de contrôles cibles et publiez.
Un autre Modèle d’affichage

More Related Content

What's hot

Node meetup feb_20_12
Node meetup feb_20_12Node meetup feb_20_12
Node meetup feb_20_12jafar104
 
Node Access in Drupal 7 (and Drupal 8)
Node Access in Drupal 7 (and Drupal 8)Node Access in Drupal 7 (and Drupal 8)
Node Access in Drupal 7 (and Drupal 8)nyccamp
 
JQuery In Rails
JQuery In RailsJQuery In Rails
JQuery In RailsLouie Zhao
 
Xamarin: Introduction to iOS 8
Xamarin: Introduction to iOS 8Xamarin: Introduction to iOS 8
Xamarin: Introduction to iOS 8Xamarin
 
Patterns / Antipatterns with NoSQL
Patterns / Antipatterns with NoSQLPatterns / Antipatterns with NoSQL
Patterns / Antipatterns with NoSQLLuca Bonmassar
 
Business News, Personal Finance and Money News
Business News, Personal Finance and Money NewsBusiness News, Personal Finance and Money News
Business News, Personal Finance and Money Newseminentoomph4388
 
Юрий Буянов «Squeryl — ORM с человеческим лицом»
Юрий Буянов «Squeryl — ORM с человеческим лицом»Юрий Буянов «Squeryl — ORM с человеческим лицом»
Юрий Буянов «Squeryl — ORM с человеческим лицом»e-Legion
 
Arquitetando seu app Android com Jetpack
Arquitetando seu app Android com JetpackArquitetando seu app Android com Jetpack
Arquitetando seu app Android com JetpackNelson Glauber Leal
 
Smooth scrolling in UITableView and UICollectionView
Smooth scrolling in UITableView and UICollectionViewSmooth scrolling in UITableView and UICollectionView
Smooth scrolling in UITableView and UICollectionViewAndrea Prearo
 

What's hot (14)

Node meetup feb_20_12
Node meetup feb_20_12Node meetup feb_20_12
Node meetup feb_20_12
 
Node Access in Drupal 7 (and Drupal 8)
Node Access in Drupal 7 (and Drupal 8)Node Access in Drupal 7 (and Drupal 8)
Node Access in Drupal 7 (and Drupal 8)
 
Phonegap for Android
Phonegap for AndroidPhonegap for Android
Phonegap for Android
 
JQuery In Rails
JQuery In RailsJQuery In Rails
JQuery In Rails
 
Xamarin: Introduction to iOS 8
Xamarin: Introduction to iOS 8Xamarin: Introduction to iOS 8
Xamarin: Introduction to iOS 8
 
Patterns / Antipatterns with NoSQL
Patterns / Antipatterns with NoSQLPatterns / Antipatterns with NoSQL
Patterns / Antipatterns with NoSQL
 
Business News, Personal Finance and Money News
Business News, Personal Finance and Money NewsBusiness News, Personal Finance and Money News
Business News, Personal Finance and Money News
 
PhoneGap: Local Storage
PhoneGap: Local StoragePhoneGap: Local Storage
PhoneGap: Local Storage
 
занятие6
занятие6занятие6
занятие6
 
Юрий Буянов «Squeryl — ORM с человеческим лицом»
Юрий Буянов «Squeryl — ORM с человеческим лицом»Юрий Буянов «Squeryl — ORM с человеческим лицом»
Юрий Буянов «Squeryl — ORM с человеческим лицом»
 
Arquitetando seu app Android com Jetpack
Arquitetando seu app Android com JetpackArquitetando seu app Android com Jetpack
Arquitetando seu app Android com Jetpack
 
Flappy bird
Flappy birdFlappy bird
Flappy bird
 
004
004004
004
 
Smooth scrolling in UITableView and UICollectionView
Smooth scrolling in UITableView and UICollectionViewSmooth scrolling in UITableView and UICollectionView
Smooth scrolling in UITableView and UICollectionView
 

Viewers also liked

May 2013 MPUG SharePoint and Project Management
May 2013 MPUG SharePoint and Project ManagementMay 2013 MPUG SharePoint and Project Management
May 2013 MPUG SharePoint and Project ManagementDon Donais
 
Sharepoint 2010 ! Key Improvements from MOSS
Sharepoint 2010 ! Key Improvements from MOSSSharepoint 2010 ! Key Improvements from MOSS
Sharepoint 2010 ! Key Improvements from MOSSSushant Agarwal
 
Social Messaging Vendor Study - Management Summary
Social Messaging Vendor Study - Management SummarySocial Messaging Vendor Study - Management Summary
Social Messaging Vendor Study - Management SummaryAIIM International
 
How to Manage Projects in SharePoint Using Out of the Box Features
How to Manage Projects in SharePoint Using Out of the Box FeaturesHow to Manage Projects in SharePoint Using Out of the Box Features
How to Manage Projects in SharePoint Using Out of the Box FeaturesGregory Zelfond
 
SharePoint 2013 as a BPM & Workflow Management System
SharePoint 2013 as a BPM & Workflow Management SystemSharePoint 2013 as a BPM & Workflow Management System
SharePoint 2013 as a BPM & Workflow Management SystemAndreas Aschauer
 
10 Reasons to Avoid Folders in SharePoint 2013/2010
10 Reasons to Avoid Folders in SharePoint 2013/201010 Reasons to Avoid Folders in SharePoint 2013/2010
10 Reasons to Avoid Folders in SharePoint 2013/2010Bobby Chang
 
Document Management in SharePoint without folders - Introduction to Metadata
Document Management in SharePoint without folders - Introduction to MetadataDocument Management in SharePoint without folders - Introduction to Metadata
Document Management in SharePoint without folders - Introduction to MetadataGregory Zelfond
 
Utilizing SharePoint for Project Management
Utilizing SharePoint for Project ManagementUtilizing SharePoint for Project Management
Utilizing SharePoint for Project ManagementGregory Zelfond
 

Viewers also liked (8)

May 2013 MPUG SharePoint and Project Management
May 2013 MPUG SharePoint and Project ManagementMay 2013 MPUG SharePoint and Project Management
May 2013 MPUG SharePoint and Project Management
 
Sharepoint 2010 ! Key Improvements from MOSS
Sharepoint 2010 ! Key Improvements from MOSSSharepoint 2010 ! Key Improvements from MOSS
Sharepoint 2010 ! Key Improvements from MOSS
 
Social Messaging Vendor Study - Management Summary
Social Messaging Vendor Study - Management SummarySocial Messaging Vendor Study - Management Summary
Social Messaging Vendor Study - Management Summary
 
How to Manage Projects in SharePoint Using Out of the Box Features
How to Manage Projects in SharePoint Using Out of the Box FeaturesHow to Manage Projects in SharePoint Using Out of the Box Features
How to Manage Projects in SharePoint Using Out of the Box Features
 
SharePoint 2013 as a BPM & Workflow Management System
SharePoint 2013 as a BPM & Workflow Management SystemSharePoint 2013 as a BPM & Workflow Management System
SharePoint 2013 as a BPM & Workflow Management System
 
10 Reasons to Avoid Folders in SharePoint 2013/2010
10 Reasons to Avoid Folders in SharePoint 2013/201010 Reasons to Avoid Folders in SharePoint 2013/2010
10 Reasons to Avoid Folders in SharePoint 2013/2010
 
Document Management in SharePoint without folders - Introduction to Metadata
Document Management in SharePoint without folders - Introduction to MetadataDocument Management in SharePoint without folders - Introduction to Metadata
Document Management in SharePoint without folders - Introduction to Metadata
 
Utilizing SharePoint for Project Management
Utilizing SharePoint for Project ManagementUtilizing SharePoint for Project Management
Utilizing SharePoint for Project Management
 

Similar to Sharepoint 2013 - un slider JSSOR sur bib Images

Kick start with j query
Kick start with j queryKick start with j query
Kick start with j queryMd. Ziaul Haq
 
Enhancing UI/UX using Java animations
Enhancing UI/UX using Java animationsEnhancing UI/UX using Java animations
Enhancing UI/UX using Java animationsNaman Dwivedi
 
Getting Started With Material Design
Getting Started With Material DesignGetting Started With Material Design
Getting Started With Material DesignYasin Yildirim
 
New text documentfsdfs
New text documentfsdfsNew text documentfsdfs
New text documentfsdfsAh Lom
 
Javascript Memory leaks and Performance & Angular
Javascript Memory leaks and Performance & AngularJavascript Memory leaks and Performance & Angular
Javascript Memory leaks and Performance & AngularErik Guzman
 
SharePoint Cincy 2012 - jQuery essentials
SharePoint Cincy 2012 - jQuery essentialsSharePoint Cincy 2012 - jQuery essentials
SharePoint Cincy 2012 - jQuery essentialsMark Rackley
 
Academy PRO: React native - navigation
Academy PRO: React native - navigationAcademy PRO: React native - navigation
Academy PRO: React native - navigationBinary Studio
 
Integrating Angular js & three.js
Integrating Angular js & three.jsIntegrating Angular js & three.js
Integrating Angular js & three.jsJosh Staples
 
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)Future Insights
 
Макс Грибов — Использование SpriteKit в неигровых приложениях
Макс Грибов — Использование SpriteKit в неигровых приложенияхМакс Грибов — Использование SpriteKit в неигровых приложениях
Макс Грибов — Использование SpriteKit в неигровых приложенияхCocoaHeads
 
How to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQueryHow to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQuerykolkatageeks
 

Similar to Sharepoint 2013 - un slider JSSOR sur bib Images (20)

Kick start with j query
Kick start with j queryKick start with j query
Kick start with j query
 
Enhancing UI/UX using Java animations
Enhancing UI/UX using Java animationsEnhancing UI/UX using Java animations
Enhancing UI/UX using Java animations
 
Getting Started With Material Design
Getting Started With Material DesignGetting Started With Material Design
Getting Started With Material Design
 
New text documentfsdfs
New text documentfsdfsNew text documentfsdfs
New text documentfsdfs
 
Jquery
JqueryJquery
Jquery
 
Jquery
JqueryJquery
Jquery
 
Javascript Memory leaks and Performance & Angular
Javascript Memory leaks and Performance & AngularJavascript Memory leaks and Performance & Angular
Javascript Memory leaks and Performance & Angular
 
Jquery
JqueryJquery
Jquery
 
J query
J queryJ query
J query
 
SharePoint Cincy 2012 - jQuery essentials
SharePoint Cincy 2012 - jQuery essentialsSharePoint Cincy 2012 - jQuery essentials
SharePoint Cincy 2012 - jQuery essentials
 
Android 3
Android 3Android 3
Android 3
 
Academy PRO: React native - navigation
Academy PRO: React native - navigationAcademy PRO: React native - navigation
Academy PRO: React native - navigation
 
Integrating Angular js & three.js
Integrating Angular js & three.jsIntegrating Angular js & three.js
Integrating Angular js & three.js
 
jQuery Effects
jQuery EffectsjQuery Effects
jQuery Effects
 
Day seven
Day sevenDay seven
Day seven
 
Jquery
JqueryJquery
Jquery
 
J queryui
J queryuiJ queryui
J queryui
 
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
 
Макс Грибов — Использование SpriteKit в неигровых приложениях
Макс Грибов — Использование SpriteKit в неигровых приложенияхМакс Грибов — Использование SpriteKit в неигровых приложениях
Макс Грибов — Использование SpriteKit в неигровых приложениях
 
How to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQueryHow to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQuery
 

Recently uploaded

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Recently uploaded (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 

Sharepoint 2013 - un slider JSSOR sur bib Images

  • 1. Emmanuel Sotter Sharepoint 2013 webpart recherche de contenu Créer un modèle d’affichage
  • 2. Webpart recherche de contenu Insérer composant webpart type « recherche de contenu ». Modifier les propriétés de la webpart et cliquer sur « changer la requête » Pointer sur l’url de votre bibliothèque d’images
  • 3. Voici le résultat en utilisant le contrôle « liste », l’ élément «grande image », et en modifiant le mappage de propriétés comme suit Nous allons créer un contrôle et élément d’affichage pour avoir un slider
  • 4. Vue d’ensemble Master Page Master Page Mise en page Mise en page 1 Contrôle de champ Contrôle de champ webpart Webpart Recherche de contenu Modèle d’affichage contrôle Modèle d’élément Modèle d’élément Mise en page 2 Contrôlede champ Webpart Recherche de contenu Modèle de controle Modèle d’élément Modèle d’élément modèle de contrôle + modèle d‘élément = Modèle d’affichage
  • 5. Modèle d’élément Modèle d’élément Modèle d’affichage contrôle Fixe le caneva générique de l’affichage des éléments. Webpart Recherche de contenu Récupère le résultat et transmet au modèle
  • 6. L’objectif est d’avoir un affichage type slider, j’ai choisi d’utiliser le script javascript disponible gratuitement sur http://www.jssor.com/. Nous allons dans un premier temps, installer un modèle d’affichage que j’ai préparé pour vous.
  • 7. Sources du modèle d’affichage <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> <head> <title>Controle Slider Shareproject</title> <!--[if gte mso 9]><xml> <mso:CustomDocumentProperties> <mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile> <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden> <mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl> <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106601005767008600A3684B8DE8EE696671AA44</mso:ContentTypeId> <mso:MasterPageDescription msdt:dt="string"></mso:MasterPageDescription> <mso:TargetControlType msdt:dt="string">;#SearchResults;#SearchHoverPanel;#Content Web Parts;#Refinement;#SearchBox;#Custom;#</mso:TargetControlType> <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated> <mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded> <mso:HtmlDesignStatusAndPreview msdt:dt="string">http://srvcollab/_catalogs/masterpage/slide/list-slider.html, La conversion a réussi.</mso:HtmlDesignStatusAndPreview> </mso:CustomDocumentProperties> </xml><![endif]--> </head> <body style="font-family:Arial, Verdana;background-color:#fff;"> <script> $includeScript(this.url, "~sitecollection/Style%20Library/js/jquery-1.9.1.min.js"); $includeScript(this.url, "~sitecollection/Style%20Library/js/jssor.slider.mini.js"); </script> <div ID="list-slider"> <!--#_ jQuery(document).ready(function ($) { var _CaptionTransitions = [{$Duration:1200,x:- 0.5,y:0.3,$Zoom:1,$Easing:{$Left:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseInWave,$Zoom:$JssorEasing$.$EaseInOutQuad},$Opacity:2,$During:{$Left:[0,0.7],$Top:[0.1,0.7]},$Round:{$Top:0.4}}]; _CaptionTransitions["transition_name1"] ={$Duration:1200,x:- 0.5,y:0.3,$Zoom:1,$Easing:{$Left:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseInWave,$Zoom:$JssorEasing$.$EaseInOutQuad},$Opacity:2,$During:{$Left:[0,0.7],$Top:[0.1,0.7]},$Round:{$Top:0.4}}; _CaptionTransitions["transition_name2"] ={$Duration:1200,y:0.6,$Clip:3,$Easing:$JssorEasing$.$EaseInCubic,$Opacity:2}; var _SlideshowTransitions = [ {$Duration:1800,x:1,y:0.2,$Delay:30,$Cols:10,$Rows:5,$Clip:15,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$Reverse:true,$Formation:$JssorSlideshowFormations$.$FormationStraightStairs,$Easing:{$Left:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseOutWave,$Clip:$JssorEasing$.$EaseIn OutQuad},$Assembly:2050,$Outside:true,$Round:{$Top:1.3}} , {$Duration:1200,x:0.2,y:- 0.1,$Delay:20,$Cols:8,$Rows:4,$Clip:15,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$SlideOut:true,$Formation:$JssorSlideshowFormations$.$FormationZigZag,$Easing:{$Left:$JssorEasing$.$EaseInWave,$Top:$JssorEasing$.$EaseInWave,$Clip:$JssorEasing$.$EaseOutQuad},$Assembly:260,$Round:{ $Left:1.3,$Top:2.5}} , {$Duration:1200,$Zoom:11,$Rotate:1,$Easing:{$Zoom:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseOutQuad,$Rotate:$JssorEasing$.$EaseInCubic},$Opacity:2,$Round:{$Rotate:0.7}} , {$Duration:1800,x:1,y:0.2,$Delay:30,$Cols:10,$Rows:5,$Clip:15,$During:{$Right:[0.3,0.7],$Top:[0.3,0.7]},$SlideOut:true,$Reverse:true,$Formation:$JssorSlideshowFormations$.$FormationSwirl,$Easing:{$Right:$JssorEasing$.$EaseInOutSine,$Top:$JssorEasing$.$EaseOutWave,$Clip:$JssorEasing $.$EaseInOutQuad},$Assembly:2050,$Outside:true,$Round:{$Top:1.3}} ]; var options = { $SlideshowOptions: { $Class: $JssorSlideshowRunner$, $Transitions: _SlideshowTransitions, $TransitionsOrder: 1, $ShowLink: true }, $CaptionSliderOptions: { $Class: $JssorCaptionSlider$, $CaptionTransitions: _CaptionTransitions, $PlayInMode: 3, $PlayOutMode: 3 }, $AutoPlay: true, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false $AutoPlayInterval: 3000, //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000 $PauseOnHover: 0, //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1 $Loop: 1, //[Optional] Enable loop(circular)of carousel or not, 0: stop, 1: loop, 2 rewind, default value is 1 $ArrowKeyNavigation: true, //[Optional] Allows keyboard (arrow key) navigation or not, default value is false $SlideDuration: 500, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500 $MinDragOffsetToSlide: 20, //[Optional] Minimum drag offset to trigger slide , default value is 20 //$SlideWidth: 600, //[Optional] Width of every slide in pixels, default value is width of 'slides' container //$SlideHeight: 300, //[Optional] Height of every slide in pixels, default value is height of 'slides' container $SlideSpacing: 5, //[Optional] Space between each slide in pixels, default value is 0 $DisplayPieces: 1, //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1 $ParkingPosition: 0, //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0. $UISearchMode: 1, //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc). $PlayOrientation: 1, //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1 $DragOrientation: 3 //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0) }; var jssor_slider1 = new $JssorSlider$('slider1_container', options); //responsive code begin //you can remove responsive code if you don't want the slider scales while window resizes function ScaleSlider() { var parentWidth = jssor_slider1.$Elmt.parentNode.clientWidth; if (parentWidth) { var sliderWidth = parentWidth; //keep the slider width no more than 810 sliderWidth = Math.min(sliderWidth, 810); jssor_slider1.$ScaleWidth(sliderWidth); } else window.setTimeout(ScaleSlider, 30); } ScaleSlider(); $(window).bind("load",ScaleSlider); $(window).bind("resize", ScaleSlider); $(window).bind("orientationchange", ScaleSlider); //responsive code end }); _#--> <div id="slider1_container" style="position: relative; top: 0px; left: 0px; width: 600px; height: 300px;"> <div u="loading" style="position: absolute; top: 0px; left: 0px;"> <div style="filter: alpha(opacity=70); opacity:0.7; position: absolute; display: block; background-color: #000000; top: 0px; left: 0px;width: 100%;height:100%;"> </div> <div style="position: absolute; display: block; background: url(~sitecollection/Style%20Library/img/loading.gif) no-repeat center center; top: 0px; left: 0px;width: 100%;height:100%;"> </div> </div> <!-- Slides Container--> <div u="slides" style="cursor: move; position: absolute; overflow: hidden; left: 0px; top: 0px; width: 600px; height: 300px;"> <!--#_ ctx.ListDataJSONGroupsKey = "ResultTables"; if (!$isNull(ctx.ClientControl) && !$isNull(ctx.ClientControl.shouldRenderControl) && !ctx.ClientControl.shouldRenderControl()){return "";} ctx.ListDataJSONGroupsKey = "ResultTables"; ctx.ListDataJSONItemsKey = "ResultRows"; ctx["CurrentItems"] = ctx.ListData.ResultTables[0].ResultRows; var siteURL = SP.PageContextInfo.get_siteServerRelativeUrl(); _#--> _#= ctx.RenderItems(ctx) =#_ </div> </div> </div> </body> </html> <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> <head> <title>Elements Slider Shareproject</title> <!--[if gte mso 9]><xml> <mso:CustomDocumentProperties> <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden> <mso:MasterPageDescription msdt:dt="string">Displays a result tailored for a picture.</mso:MasterPageDescription> <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId> <mso:TargetControlType msdt:dt="string">;#SearchResults;#SearchHoverPanel;#Content Web Parts;#Refinement;#SearchBox;#Custom;#</mso:TargetControlType> <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated> <mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSum mary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer' ,'SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','PictureHeight':'PictureHeight','PictureWidth':'PictureWidth','ImageDateCreated':'ImageDateCreated','PictureThumbnailURL':'PictureT humbnailURL','PictureURL':'PictureURL'</mso:ManagedPropertyMapping> <mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded> <mso:HtmlDesignStatusAndPreview msdt:dt="string">http://srvcollab/_catalogs/masterpage/slide/element-slider.html, La conversion a réussi.</mso:HtmlDesignStatusAndPreview> <mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile> <mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl> </mso:CustomDocumentProperties> </xml><![endif]--> </head> <body> <div id="Item_SlideImage" > <!--#_ if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)) { var title = ctx.CurrentItem.Title; var path = ctx.CurrentItem.Path; var encodedId = $htmlEncode(ctx.ClientControl.get_nextUniqueId() + "_shareprojectNC"); var siteURL = SP.PageContextInfo.get_siteServerRelativeUrl(); var linkURL = $getItemValue(ctx, "Path"); linkURL.overrideValueRenderer($urlHtmlEncode); var title = $getItemValue(ctx, "Title"); var description = $getItemValue(ctx, "Description"); var pictureURL = $getItemValue(ctx, "PictureURL"); _#--> <div id="_#= encodedId =#_" data-displaytemplate="ItemSlideList"> <a href="_#= linkURL =#_" title="_#= $htmlEncode(title) =#_" target="_blank"><img u="image" src="_#= pictureURL =#_" /></a> <div u="caption" t="transition_name2" t2="transition_name1" style="position: absolute; top: 250px; left: 30px; min-width:100px; height: 25px; background:orange;"> <p><a href="_#= linkURL =#_" title="_#= $htmlEncode(title) =#_" target="_blank">_#= $htmlEncode(title) =#_ </a></p> </div> </div> <!--#_ } _#--> </div> </body> </html> contrôle-slider-list.html element-slider-list.html Et télécharger les sources de www.jssor.com
  • 8. Déposer dans le répertoire « js » de votre bibliothèque de style les fichiers: • Jquery-1-9-1.js, ou utiliser jquery de v1 à v2 • Jssor.js • Jssor.slider.mini.js Via Webdav ou sharepoint, Créer un répertoire à l’adresse http://monserveur/_catalogs/masterpage/ , dans la galerie des master page Déposer les fichiers contrôle-slider-list.html et element-slider- list.html
  • 9. contrôle Aller dans la galerie des master page, modifier les propriétés de control-list-image.html Permet de générer un fichier .JS complet qu’utilise SP Content Web Parts suffit…il s’agit de la liste des contrôles De recherche sur lesquels ce modèle pourra être appliqué
  • 10. Elément Aller dans la galerie des master page, modifier les propriétés de Element-list-image.html Archiver puis Publier les pages html : le modèle est disponible dans les paramètres de la webpart. On remarque les .js générés
  • 11. Application du modèle d’affichage Ouvrir la page contenant la webpart de recherche de contenu, modifier, et paramètres de la webpart. Dans les propriétés de la webpart recherche de contenu, mettre les options de contrôle et élément comme suit:
  • 13. Et voilà! Copier les fichiers javascript « slides.min.jquery » et « jquery-1.8.3.min » dans le répertoire « js » de style library Copier les fichiers CSS « global » dans le répertoire « slider/css/ » de style library. Copier les fichiers html fourni dans _catalogs/masterpage/Display Templates/Search Ouvrir le gestionnaire de conception, menu 5 modifier les modèles. Vous apercevez vos fichiers html convertis avec succès. Modifiez les propriétés de html pour lui donner les types de contrôles cibles et publiez. Un autre Modèle d’affichage