Benjamin Niaulin Presented at: SharePoint Fest Chicago SharePoint Geek Content Query Web Part – Get it all in one place and style it!

Slides:



Advertisements
Similar presentations
Organizing List and Documents with Site Columns and Content Types Gayan Peiris Principal Consultant
Advertisements

SharePoint Forms All you ever wanted to know about forms but were afraid to ask.
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Sean Squires Program Manager Microsoft Corporation ECMS310.
Anatomy of a Display Template Marc D Anderson. Who Is Marc?
SharePoint 2013 Catalog Sites Brian Culver ● SharePoint Saturday DFW ● March 7, 2015 Build a SharePoint 2013 Search Driven.
How to make SharePoint 2010 not look like SharePoint Branding for Developers By Matt Huber.
Customising SharePoint David Gristwood Developer & Platform Group
Tutorial 11: Connecting to External Data
Definitions Collaboration – working together on team projects and sharing information, often through ad-hoc processes, to accomplish project goals. Document.
1 Agenda Overview Review Roles Lists Libraries Columns.
Philadelphia Area SharePoint User Group Using XSLT with Custom Web Parts Rick Wise RJB Technical Consulting
Branding SharePoint 2007 March 19, 2008 Lori Neff, SharePoint Designer.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
A GUIDE TO SHAREPOINT 2007 CUSTOMIZATION OPTIONS Heather Solomon, WSS MVP.
Microsoft Share Point 2007 Lela Castaneda. Microsoft Office SharePoint Designer 2007 top 10 benefits 1)Be more productive with next-generation Microsoft.
EDUCATION YOU CAN TRUST ® SharePoint Designer 2010 Course Review Review provided by: DNS Computing Services, LLC
131 Agenda Overview Review Roles Lists Libraries Columns.
OSP Forms and Presentations in a Nutshell Tom Kuipers Universiteit van Amsterdam Information Technology Centre.
LATTICE TECHNOLOGY, INC. For Version 10.0 and later XVL Web Master Advanced Tutorial For Version 10.0 and later.
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
Mindy Gigantelli Rebecca Zdon Gloria Queeno-Chamberlain.
Introduction technology XSL. 04/11/2005 Script of the presentation Introduction the XSL The XSL standard Tools for edition of codes XSL Necessary resources.
Creating Page Layouts using SharePoint Designer or Visual Studio Becky Bertram MVP SharePoint Server, MCSD, MCAD
Benjamin Niaulin Presented at: SharePoint Saturday Utah SharePoint Geek Step into the SharePoint Branding World: Tools and Techniques.
DSpace UI Alexey Maslov. DSpace in general A digital library tool useful for storage, maintenance, and retrieval of digital documents Two types of interaction:
SharePoint User Group - Web Parts October Agenda Introduction to Web Parts Benefits WSS vs MOSS vs SPD Shipped Web Parts Free Web Parts Purchasable.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Customization Using SharePoint Designer 2007 Overview Editing look and feel –Master pages.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Artezio LLC Address: 3G Gubkina Str., suite 504, Moscow, Russia, Phone: +7 (495) Fax: +7 (495)
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Office Server Specific Web content management –Page structure, layouts, and controls –Publishing.
Solutions using Microsoft Content Management Server 2002 Connector for SharePoint Technologies Sue Corke Mark Harrison Microsoft UK.
Introduction to Views Stanford Drupal Camp April 6, 2013.
Advanced Technical Writing 2006 Session #4. Today in Class… ► Meet with your editorial team, refine/post deliverables ► Send URL for deliverables to Bill.
WikiPlus Configurations Configure WikiPlus elements to your needs.
1. 2 Google Session 1.About MIT’s Google Search Appliance (GSA) 2.Adding Google search to your web site 3.Customizing search results 4.Tips on improving.
WORKING WITH THE “CALL HTTP WEB SERVICE” WORKFLOW ACTIVITY Derek Nishino Nishino Consulting
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – UI customization.
Reduce, Reuse, Recycle. Housekeeping… Download EventBoard Mobile and remember to fill out session evaluations… Phasers set to stun, mobile devices set.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
Transportation Agenda 165. Transportation About Pages Pages organize and present information Pages are files that end in.aspx 166.
Web Site Development - Process of planning and creating a website.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Leveraging Web Content Management in SharePoint 2013 Christina Wheeler.
TECHVERZE Oracle BI Publisher Online Training. Introduction to Oracle BI Publisher Oracle BI Publisher is the reporting solution to deliver, author, and.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
Leveraging SharePoint Search In SharePoint 2013 Jameson Bozeman.
DYNAMIC FAQ AND DOCUMENTATION PAGES IN SHAREPOINT A modern, reusable, and easy-to-use model.
DEV103 – Web Part Transformers – More than meets the eye By: D’arce Hess.
Introduction to Enterprise Search Corey Roth Blog: Twitter: twitter.com/coreyrothtwitter.com/coreyroth.
The New Design Manager! Louis-Philippe Lavoie SharePoint Specialist / What does it mean for you? November.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
CHAPTER 7 LESSON B Creating Database Reports. Lesson B Objectives  Describe the components of a report  Modify report components  Modify the format.
This is the cover slide..
Exploring Microsoft Office PowerPoint 2000 Chapter 2
Anatomy of a Display Template
Leveraging BI in SharePoint with PowerPivot and Power View
Searching Business Data with MOSS 2007 Enterprise Search
Content Query Web Part March 2013 Peter Serzo SharePoint Fest.
Classic vs. modern SharePoint: What's the difference?
Developing Branding Solutions for 2013
Visual Studio Team Foundation Server
Searching Business Data with MOSS 2007 Enterprise Search
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Search Web Parts Mike Maadarani MCM Consulting.
Project Management in SharePoint
Project Management in SharePoint
Links Launch Outlook Launch Skype Place Skype on Do Not Disturb.
Is a Content Management System in Your Future?
Unit 6 - XML Transformations
Presentation transcript:

Benjamin Niaulin Presented at: SharePoint Fest Chicago SharePoint Geek Content Query Web Part – Get it all in one place and style it!

Description More than once people have customized or developed a solution or web part to accommodate certain needs. Many times, these needs could have been met with a simple Out-of- the-Box Web Part called the Content Query Web Part. In this session we will explore the possibilities of querying the right content as well as changing the style to display these results.

Who is this guy talking? Benjamin Niaulin Speaker, Trainer, Consultant, SCRUM Master Blog bniaulin.wordpress.com Website share-gate.com TWITTER!:

Agenda Introduction The Content Query Web Part DEMO The XSL Files – What is that? What do they do? DEMO Dynamic Filtering DEMO Advanced CQWP Stuff

INTRODUCTION

Problems we face Showing data from multiple lists/libraries at the same time Change the date format in a list/library Dynamic filtering Changing the look of a list/library Showing specific data from lists/libraries to the relevant audience

CONTENT QUERY Web Part - Overview

Content Query Web Part (CQWP) Requires Site Collection Feature: Publishing Infrastructure* Helps create dynamic views based on what the user is looking at Power User can Edit the Query and the Style Aggregate content from the Site Collection Reusable and customizable styles

Web Part Properties - Query Query Source List Type Content Type Audience Targeting Additional Filters

Web Part Properties - Presentation Presentation Grouping and Sorting Sorting Item Limit Styles Fields to display Feed <-- Don’t underestimate!

Examples labs.steveottenad.com/sharepoint xslt-date-formatting/ By Ben Tedder on NBSPNBSP By Yohan Belval from Sharegate

DEMO

XSL FILES – HUH?

Understanding XSLT XSLT: Extensible Stylesheet Language Transformations Basically transforms XML Ref:

Understanding XSLT Debug itemstyle: P: Learn xslt:

Display RAW Data of Query =

XSL Files used by SharePoint There are 3 files used by the CQWP ContentQueryMain.xsl ItemStyle.xsl Header.xsl Files are located in the Style Library at the Root of your Site Collection \Style Library\XSL Style Sheets\

ContentQueryMain.xsl Contains logic that generates the appropriate calls to the Header and Item templates for each item. Contains functions that help designers modify the Item and Header XSLT transforms. Receives all the content, parses it, and sends appropriate pieces to the ItemStyle and Header templates. Maintains the structure of the Content By Query Web Part. Stores data retrieved when querying content in the path /dsQueryResponse/Rows/Row. MSDN Definition MSDN Definition In short….

ContentQueryMain.xsl Think of it as the big container of the WebPart In charge of what isn’t repeated (header, footer, calling CSS or JS to be used in your itemstyle after) It controls the flow of the content it receives Let’s check it out

Header.xsl Contains templates that define how to display a header and ensure the consistency of group headers. Templates specified in Header.xsl receive the next item row to process, usually the first row in a group unless there are multiple columns. If there are multiple columns, the templates receive the first row of the column. You can retrieve data about the next item row by using directive. You can use the $Group parameter that contains the groupby column name and the $GroupType that represents the column type of the groupby column. MSDN Definition MSDN Definition In short….

Header.xsl When you use the CQWP with a GroupBy option the header.xsl is called.

Itemstyle.xsl Contains templates that define how to display an item. These templates receive and process one row of data at a time, ensuring that the style and data in the item rows is consistent. You can retrieve data about a row by using directive. Basically it’s what gets applied to each “item” or row. Location:

Examples

DEMO

DYNAMIC FILTERING

Dynamic Filters PageFieldValue Specify a field on the Page Layout to act as the filter for the Query PageQueryString Takes the value in the URL and applies it as the filter for the Query

Example on MSDN BLog Ref: MSDN BlogMSDN Blog

More

ADVANCED PROPERTIES

Access the Advanced Properties You can easily access advanced properties of the CQWP Edit Web Part Export into.webpart file Open with an XML editor (notepad, etc.) Modify the file Import.webpart back into your site

More Advanced Stuff CommonViewFields Ask for additional fields By default the CQWP does not return all fields automatically QueryOverride When used, all settings for Query in the UI are greyed out Makes it possible to specify the query portion of a cross-list query in CAML.

Still More Advanced Properties… WebsOverride Determines whether the cross-list query should recurse subsites. ListsOverride Specify which lists/library you want to query ]]>

DEMO Filter by File Extension

Q&A

THANK YOU! KEEP IN TOUCH ON TWITTER Benjamin Niaulin