SlideShare a Scribd company logo
Introduction to
Content Search
Web Part
Haaron Gonzalez
Lead Solution Architect
Hershey Technologies
Show dynamic content
 Content Query Web Part
 Introduced in MOSS 2007 as part of the ECM functionality
 Aggregates and displays list items within a site hierarchy
 Features
 Provide caching and query optimizations
 No coding
 Cross Web query
 Security trimming
 Customizable
 Include style templates for display the data
 Enhance in SharePoint 2010 with more features like:
 Filtering support
 Query String
 Metadata
 Property Mapping
• XSLT
• CSS
• HTML
• JQuery
http://msdn.microsoft.com/en-us/library/ff650512.
Site Collection A
Content Query
Web Part
Site Collection B
Site Collection C
Site Collection
Show dynamic content
 Content Search Web Part
 Introduced in SharePoint 2013 Enterprise
 Leverages search infrastructure to present information
 Already available in Office 365
 Features
 No coding
 Cross Web and Site Collection query
 Security trimming
 Customizable
 Include Display Template for display the results (easy to use)
 Property Mapping
• HTML
• JavaScript
• JQuery
• Build in functions
Site Collection A
SearchSearch
Crawl
Content Search
Web Part
Site Collection B
Site Collection C
Site Collection D
Content Search 30,000 ft. view
Query Builder: Connecting you to results
Create queries Preview Results
Full screen
query builder to
create/test
queries
Fully integrated
with result
sources and
query rules
Query variables
are substituted
at query time
Content Search in Action
Query Builder
Introduction to Content Search Web Part
What a display template does
Displays them using
HTML and
JavaScript instead
of XSL
Retrieves managed
properties
File Extension Title Preview Image
Document Summary
Path
Layers for
display templates
Control Item
Also:
Filter, Group
and Hover Panel
Display Templates available
 Display Templates
 List
 List with Paging
 Slideshow
 Item Templates
 Large Picture
 Picture on left 3 lines on right
 Picture on top 3 lines on bottom
 To lines
 Video
Using OOO Display Templates
Review the available display templates
Create your own Display Template
 Use SharePoint Designer 2013
 Publishing Feature needs to be activated
 Copy and paste a display template “.html”;
 Change the title
 Edit existing HTML or create new from scratch
 Use functions to load Scripts, CSS, etc.
 $includeScript(this.url, "~sitecollection/_catalogs/masterpage/Display
Templates/Finished/Control_jShowOff_Script.js");
 $includeCSS(this.url, "~sitecollection/_catalogs/masterpage/Display
Templates/Finished/Item_SlidingDetails_Styles.css");
 <mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link
URL}:'Path'</mso:ManagedPropertyMapping>
 var pictureMarkup = Srch.ContentBySearch.getPictureMarkup(pictureURL, 135, 135,
ctx.CurrentItem, "cbs-sliding-details-thumbnail", line1, pictureId);
Customizing Display Templates
Change the size of a slideshow
Create your own Item Display Template
 Use SharePoint Designer 2013
 Publishing Feature needs to be activated
 Copy and paste a item display template
 Change the title
 Edit existing HTML or create new from scratch
 Use functions to load Scripts, CSS, etc.
 $includeScript(this.url, "~sitecollection/_catalogs/masterpage/Display
Templates/Finished/Control_jShowOff_Script.js");
 $includeCSS(this.url, "~sitecollection/_catalogs/masterpage/Display
Templates/Finished/Item_SlidingDetails_Styles.css");
 <mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link
URL}:'Path'</mso:ManagedPropertyMapping>
 var pictureMarkup = Srch.ContentBySearch.getPictureMarkup(pictureURL, 135, 135,
ctx.CurrentItem, "cbs-sliding-details-thumbnail", line1, pictureId);
Customizing Item Display Templates
Add the modified date to two lines item view
Questions
Content Search Web
Part
Haaron Gonzalez
Lead Solution Architect
Hershey Technologies

More Related Content

What's hot (20)

PPTX
SharePoint 2010 Managed Metadata Service Application
Mohamed Abdeen
 
PPTX
SPSTCDC - Managed Metadata and Taxonomies in SharePoint 2010 - Playing Tag
Knowledge Management Associates, LLC
 
PPSX
Share point 2010 Fundamentals
balraj_s
 
KEY
SharePoint Document Management
LearnNowOnline
 
PPTX
SharePoint 2010 Document Management
Agnes Molnar
 
PPTX
SharePoint Overview 1/2 - Iran SharePoint Academy
Saman Coliaie
 
PPTX
Mastering the Art of SharePoint DMS
Oliver Wirkus
 
PPTX
SharePoint 2010 Managed Metadata
Nick Hobbs
 
PPTX
KMA Deck -C. McNulty discusses ecm wcm-upgrades2010 - nyc
Knowledge Management Associates, LLC
 
PPTX
Managing metadata in_share_point_2010
LiquidHub
 
PPSX
Microsoft SharePoint 2010 Overview Session 1
Sourav Nayyar
 
PPT
Easy Learning Presentation Moss 2007 Usman
Usman Zafar Malik
 
PPSX
Share Point Presentation Introduction To Sharepoint
rpeterson1
 
PPT
Enterprise Collaboration and Employee Engagement with Microsoft SharePoint My...
rwuhrman
 
PDF
Beginners SharePoint introduction
Melick Baranasooriya
 
PDF
First look at SharePoint 2013
Adis Jugo
 
PPTX
KMA Webinar: Managed Metadata Services in SharePoint 2010
Knowledge Management Associates, LLC
 
PPTX
Leveraging User Profiles and MySites
Derek Cash-Peterson
 
PPTX
Upgrade webcast avoid the mess id
guestb60c891
 
PPTX
SharePoint 2010 Managed Metadata vs SQL 2012 Master Data Services
Henry Ong
 
SharePoint 2010 Managed Metadata Service Application
Mohamed Abdeen
 
SPSTCDC - Managed Metadata and Taxonomies in SharePoint 2010 - Playing Tag
Knowledge Management Associates, LLC
 
Share point 2010 Fundamentals
balraj_s
 
SharePoint Document Management
LearnNowOnline
 
SharePoint 2010 Document Management
Agnes Molnar
 
SharePoint Overview 1/2 - Iran SharePoint Academy
Saman Coliaie
 
Mastering the Art of SharePoint DMS
Oliver Wirkus
 
SharePoint 2010 Managed Metadata
Nick Hobbs
 
KMA Deck -C. McNulty discusses ecm wcm-upgrades2010 - nyc
Knowledge Management Associates, LLC
 
Managing metadata in_share_point_2010
LiquidHub
 
Microsoft SharePoint 2010 Overview Session 1
Sourav Nayyar
 
Easy Learning Presentation Moss 2007 Usman
Usman Zafar Malik
 
Share Point Presentation Introduction To Sharepoint
rpeterson1
 
Enterprise Collaboration and Employee Engagement with Microsoft SharePoint My...
rwuhrman
 
Beginners SharePoint introduction
Melick Baranasooriya
 
First look at SharePoint 2013
Adis Jugo
 
KMA Webinar: Managed Metadata Services in SharePoint 2010
Knowledge Management Associates, LLC
 
Leveraging User Profiles and MySites
Derek Cash-Peterson
 
Upgrade webcast avoid the mess id
guestb60c891
 
SharePoint 2010 Managed Metadata vs SQL 2012 Master Data Services
Henry Ong
 

Similar to Introduction to Content Search Web Part (20)

PPTX
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Chris O'Brien
 
PPTX
Share point 2013 WCM for Developers
Suhas R Satish
 
PPTX
Image Slider with SharePoint 2013 Search Results Web Part
GSoft
 
PPT
Iw411 migrating content by search from 2010 into 2013 - minified
Paul Hunt
 
PPTX
SharePoint Fest Chicago Web Content Management in SharePoint 2013
Patrick Tucker
 
PDF
What's new in SharePoint 2013 - Discover it
Benjamin Niaulin
 
PDF
Spca2014 search workshop niaulin
NCCOMMS
 
PDF
Discover SharePoint 2013
Benjamin Niaulin
 
PPTX
TechFuse 2013 - Break down the walls SharePoint 2013
Avtex
 
PPTX
Sharepoint Display templates
VijaySingh790398
 
PPTX
SPCA2013 - Content Search Web Part
NCCOMMS
 
PDF
Envision IT - SharePoint 2013 Web Content Managment
Envision IT
 
PPTX
Search Driven Solutions
April Dunnam
 
PPTX
Branding share point 2013
Khoa Quach
 
PPTX
SharePoint 2010 Basics for newbies
Sachchin Annam
 
PPTX
Farewell XSL, Welcome Display Templates SPSNL
Elio Struyf
 
PPTX
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
SPTechCon
 
PPTX
SPS Twin Cities - Congratulations You Inherited a SharePoint Site
Don Donais
 
PPTX
Your Intranet, Your Way
D'arce Hess
 
PPTX
Help! I've got a share point site! Now What?
Becky Bertram
 
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Chris O'Brien
 
Share point 2013 WCM for Developers
Suhas R Satish
 
Image Slider with SharePoint 2013 Search Results Web Part
GSoft
 
Iw411 migrating content by search from 2010 into 2013 - minified
Paul Hunt
 
SharePoint Fest Chicago Web Content Management in SharePoint 2013
Patrick Tucker
 
What's new in SharePoint 2013 - Discover it
Benjamin Niaulin
 
Spca2014 search workshop niaulin
NCCOMMS
 
Discover SharePoint 2013
Benjamin Niaulin
 
TechFuse 2013 - Break down the walls SharePoint 2013
Avtex
 
Sharepoint Display templates
VijaySingh790398
 
SPCA2013 - Content Search Web Part
NCCOMMS
 
Envision IT - SharePoint 2013 Web Content Managment
Envision IT
 
Search Driven Solutions
April Dunnam
 
Branding share point 2013
Khoa Quach
 
SharePoint 2010 Basics for newbies
Sachchin Annam
 
Farewell XSL, Welcome Display Templates SPSNL
Elio Struyf
 
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
SPTechCon
 
SPS Twin Cities - Congratulations You Inherited a SharePoint Site
Don Donais
 
Your Intranet, Your Way
D'arce Hess
 
Help! I've got a share point site! Now What?
Becky Bertram
 
Ad

More from Haaron Gonzalez (20)

PPTX
Introducción a SharePoint Framework
Haaron Gonzalez
 
PPTX
Introducción a SharePoint Framework
Haaron Gonzalez
 
PPTX
Introducción a SharePoint Framework
Haaron Gonzalez
 
PPTX
Microsoft 365, la herramienta moderna para la oficina moderna
Haaron Gonzalez
 
PPTX
Target SharePoint and Teams with SharePoint Framework
Haaron Gonzalez
 
PPTX
Target SharePoint and Teams with SharePoint Framework
Haaron Gonzalez
 
PPTX
SharePoint as Development Platform for the Modern Intranet
Haaron Gonzalez
 
PPTX
Introduction to Office Development Topics
Haaron Gonzalez
 
PPTX
SharePoint Framework, paso a paso
Haaron Gonzalez
 
PPTX
SharePoint Framework at a glance
Haaron Gonzalez
 
PPTX
Futuro de Desarrollo en SharePoint
Haaron Gonzalez
 
PPTX
Introducción a SharePoint Framework
Haaron Gonzalez
 
PPTX
Soluciones de flujo de trabajo basada en formularios con nintex
Haaron Gonzalez
 
PPTX
La oficina moderna y el surgimiento de equipos dinamicos
Haaron Gonzalez
 
PPTX
Enhance the way people collaborate with documents in SharePoint
Haaron Gonzalez
 
PPTX
Enhance the way people collaborate with documents in share point
Haaron Gonzalez
 
PPTX
Planeación de Intranet con SharePoint
Haaron Gonzalez
 
PPTX
Introduction to Intranet Planning
Haaron Gonzalez
 
PPTX
Effective SharePoint Tools for Consultants
Haaron Gonzalez
 
PPTX
Iniciándose en el desarrollo de aplicaciones para share point 2013
Haaron Gonzalez
 
Introducción a SharePoint Framework
Haaron Gonzalez
 
Introducción a SharePoint Framework
Haaron Gonzalez
 
Introducción a SharePoint Framework
Haaron Gonzalez
 
Microsoft 365, la herramienta moderna para la oficina moderna
Haaron Gonzalez
 
Target SharePoint and Teams with SharePoint Framework
Haaron Gonzalez
 
Target SharePoint and Teams with SharePoint Framework
Haaron Gonzalez
 
SharePoint as Development Platform for the Modern Intranet
Haaron Gonzalez
 
Introduction to Office Development Topics
Haaron Gonzalez
 
SharePoint Framework, paso a paso
Haaron Gonzalez
 
SharePoint Framework at a glance
Haaron Gonzalez
 
Futuro de Desarrollo en SharePoint
Haaron Gonzalez
 
Introducción a SharePoint Framework
Haaron Gonzalez
 
Soluciones de flujo de trabajo basada en formularios con nintex
Haaron Gonzalez
 
La oficina moderna y el surgimiento de equipos dinamicos
Haaron Gonzalez
 
Enhance the way people collaborate with documents in SharePoint
Haaron Gonzalez
 
Enhance the way people collaborate with documents in share point
Haaron Gonzalez
 
Planeación de Intranet con SharePoint
Haaron Gonzalez
 
Introduction to Intranet Planning
Haaron Gonzalez
 
Effective SharePoint Tools for Consultants
Haaron Gonzalez
 
Iniciándose en el desarrollo de aplicaciones para share point 2013
Haaron Gonzalez
 
Ad

Recently uploaded (15)

PDF
Generalization predition MOOCs - Conference presentation - eMOOCs 2025
pmmorenom01
 
PPTX
Pastor Bob Stewart Acts 21 07 09 2025.pptx
FamilyWorshipCenterD
 
PPTX
Food_and_Drink_Bahasa_Inggris_Kelas_5.pptx
debbystevani36
 
PPTX
some leadership theories MBA management.pptx
rkseo19
 
PPTX
2025-07-13 Abraham 07 (shared slides).pptx
Dale Wells
 
PDF
The Family Secret (essence of loveliness)
Favour Biodun
 
PPTX
AI presentation for everyone in every fields
dodinhkhai1
 
PPTX
Presentationexpressions You are student leader and have just come from a stud...
BENSTARBEATZ
 
PDF
Cloud Computing Service Availability.pdf
chakrirocky1
 
PPTX
Inspired by VeinSense: Supercharge Your Hackathon with Agentic AI
ShubhamSharma2528
 
PDF
Leveraging the Power of Jira Dashboard.pdf
siddharthshukla742740
 
PPTX
STURGEON BAY WI AG PPT JULY 6 2025.pptx
FamilyWorshipCenterD
 
PDF
The Impact of Game Live Streaming on In-Game Purchases of Chinese Young Game ...
Shibaura Institute of Technology
 
PPTX
presentation on legal and regulatory action
raoharsh4122001
 
PPTX
BARRIERS TO EFFECTIVE COMMUNICATION.pptx
shraddham25
 
Generalization predition MOOCs - Conference presentation - eMOOCs 2025
pmmorenom01
 
Pastor Bob Stewart Acts 21 07 09 2025.pptx
FamilyWorshipCenterD
 
Food_and_Drink_Bahasa_Inggris_Kelas_5.pptx
debbystevani36
 
some leadership theories MBA management.pptx
rkseo19
 
2025-07-13 Abraham 07 (shared slides).pptx
Dale Wells
 
The Family Secret (essence of loveliness)
Favour Biodun
 
AI presentation for everyone in every fields
dodinhkhai1
 
Presentationexpressions You are student leader and have just come from a stud...
BENSTARBEATZ
 
Cloud Computing Service Availability.pdf
chakrirocky1
 
Inspired by VeinSense: Supercharge Your Hackathon with Agentic AI
ShubhamSharma2528
 
Leveraging the Power of Jira Dashboard.pdf
siddharthshukla742740
 
STURGEON BAY WI AG PPT JULY 6 2025.pptx
FamilyWorshipCenterD
 
The Impact of Game Live Streaming on In-Game Purchases of Chinese Young Game ...
Shibaura Institute of Technology
 
presentation on legal and regulatory action
raoharsh4122001
 
BARRIERS TO EFFECTIVE COMMUNICATION.pptx
shraddham25
 

Introduction to Content Search Web Part

  • 1. Introduction to Content Search Web Part Haaron Gonzalez Lead Solution Architect Hershey Technologies
  • 2. Show dynamic content  Content Query Web Part  Introduced in MOSS 2007 as part of the ECM functionality  Aggregates and displays list items within a site hierarchy  Features  Provide caching and query optimizations  No coding  Cross Web query  Security trimming  Customizable  Include style templates for display the data  Enhance in SharePoint 2010 with more features like:  Filtering support  Query String  Metadata  Property Mapping • XSLT • CSS • HTML • JQuery http://msdn.microsoft.com/en-us/library/ff650512.
  • 3. Site Collection A Content Query Web Part Site Collection B Site Collection C Site Collection
  • 4. Show dynamic content  Content Search Web Part  Introduced in SharePoint 2013 Enterprise  Leverages search infrastructure to present information  Already available in Office 365  Features  No coding  Cross Web and Site Collection query  Security trimming  Customizable  Include Display Template for display the results (easy to use)  Property Mapping • HTML • JavaScript • JQuery • Build in functions
  • 5. Site Collection A SearchSearch Crawl Content Search Web Part Site Collection B Site Collection C Site Collection D
  • 7. Query Builder: Connecting you to results Create queries Preview Results Full screen query builder to create/test queries Fully integrated with result sources and query rules Query variables are substituted at query time
  • 8. Content Search in Action Query Builder
  • 10. What a display template does Displays them using HTML and JavaScript instead of XSL Retrieves managed properties File Extension Title Preview Image Document Summary Path
  • 11. Layers for display templates Control Item Also: Filter, Group and Hover Panel
  • 12. Display Templates available  Display Templates  List  List with Paging  Slideshow  Item Templates  Large Picture  Picture on left 3 lines on right  Picture on top 3 lines on bottom  To lines  Video
  • 13. Using OOO Display Templates Review the available display templates
  • 14. Create your own Display Template  Use SharePoint Designer 2013  Publishing Feature needs to be activated  Copy and paste a display template “.html”;  Change the title  Edit existing HTML or create new from scratch  Use functions to load Scripts, CSS, etc.  $includeScript(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Finished/Control_jShowOff_Script.js");  $includeCSS(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Finished/Item_SlidingDetails_Styles.css");  <mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link URL}:'Path'</mso:ManagedPropertyMapping>  var pictureMarkup = Srch.ContentBySearch.getPictureMarkup(pictureURL, 135, 135, ctx.CurrentItem, "cbs-sliding-details-thumbnail", line1, pictureId);
  • 15. Customizing Display Templates Change the size of a slideshow
  • 16. Create your own Item Display Template  Use SharePoint Designer 2013  Publishing Feature needs to be activated  Copy and paste a item display template  Change the title  Edit existing HTML or create new from scratch  Use functions to load Scripts, CSS, etc.  $includeScript(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Finished/Control_jShowOff_Script.js");  $includeCSS(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Finished/Item_SlidingDetails_Styles.css");  <mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link URL}:'Path'</mso:ManagedPropertyMapping>  var pictureMarkup = Srch.ContentBySearch.getPictureMarkup(pictureURL, 135, 135, ctx.CurrentItem, "cbs-sliding-details-thumbnail", line1, pictureId);
  • 17. Customizing Item Display Templates Add the modified date to two lines item view
  • 19. Content Search Web Part Haaron Gonzalez Lead Solution Architect Hershey Technologies

Editor's Notes

  • #17: Change the title &lt;title&gt;PEIWC Slideshow&lt;/title&gt; Locate cbs-SlideShow and change the style &lt;div class=&quot;cbs-Slideshow&quot; id=&quot;_#= encodedId =#_&quot; data-displaytemplate=&quot;ControlSlideshow&quot; style=&quot;max-height:400px; display:inline-block;position:relative;background-color:#000000;color:#FFFFFF; width:800px !important;&quot;&gt;
  • #19: Change the title &lt;title&gt;My Pre Demo Display&lt;/title&gt;Add the mapping &lt;mso:ManagedPropertyMappingmsdt:dt=&quot;string&quot;&gt;&apos;ModifiedDate&apos;:&apos;LastModifiedTime;Created&apos;,&amp;#39;Link URL&amp;#39;{Link URL}:&amp;#39;Path&amp;#39;,&amp;#39;Line 1&amp;#39;{Line 1}:&amp;#39;Title&amp;#39;,&amp;#39;Line 2&amp;#39;{Line 2}:&amp;#39;&amp;#39;,&amp;#39;FileExtension&amp;#39;,&amp;#39;SecondaryFileExtension&amp;#39;&lt;/mso:ManagedPropertyMapping&gt;Add javascrpit code varmodifieddate = $getItemValue(ctx,&quot;ModifiedDate&quot;);Add HTML code&lt;div class=&quot;cbs-Line2 ms-noWrap&quot;&gt;_#= modifieddate =#_ &lt;/div&gt;Add more javascriptif(new Date(modifieddate) &gt; new Date(“11/1/2012”)) { modifieddate = “&lt;b&gt;NEW! &lt;/b&gt;” + modifieddate;