Sean Squires Program Manager Microsoft Corporation ECMS310.

Slides:



Advertisements
Similar presentations
Creating Page Layouts using SharePoint Designer or Visual Studio Becky Bertram MCSD, MCAD MCTS WSS Development MCTS MOSS Development
Advertisements

Site Collection, Sites and Sub-sites
Eric J. Oszakiewski MCTS: SharePoint Application Development SharePoint Configuration.
Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
The basics and troubleshooting tips
User Profiles: I Didn’t Know I Could Do That? Stacy L. Deere-Strole Focal Point Solutions, LLC.
Run with PC speaker on for narrative Welcome to the Narrated Guided Tour of Cizer.Net Reporting for Microsoft SQL Server Reporting Services
Customizing the MOSS 2007 Search Results November 2007 Rafael Perez.
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
Turners SharePoint Web Site How we did it. 2 Page Anatomy Custom Search Web Part Custom Search Web Part Data Form Web Parts Content Query Web Part HTML.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 6 SharePoint sites share much of the same underlying functionality, and most can be customized using the same techniques. So whether you have a basic.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Tasks and Wizards 3.2 Creating a Frequency Report 3.3 Generating HTML, PDF, and RTF Output.
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
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.
User Profiles: I Didn’t Know I Could Do That!! Stacy L. Deere-Strole Focal Point Solutions, LLC.
Branding SharePoint 2007 March 19, 2008 Lori Neff, SharePoint Designer.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
A GUIDE TO SHAREPOINT 2007 CUSTOMIZATION OPTIONS Heather Solomon, WSS MVP.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
131 Agenda Overview Review Roles Lists Libraries Columns.
Classroom User Training June 29, 2005 Presented by:
Sodexo Tridion CMS Overview. 2 –Country.com Advanced Training v ■ What is Tridion CMS? ■ Websites ■ Inside Tridion CMS ■ How to create a page.
Mindy Gigantelli Rebecca Zdon Gloria Queeno-Chamberlain.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Web Publisher. Rinaldo De Paolis General Manager – Qualitem & Connected Systems.
Core Publisher: Creating Programs & Podcasts. Training 1: Site Administration Training 2: Programs Training 3: Content Tagging Training 4: Creating Posts.
Building Search Portals With SP2013 Search. 2 SharePoint 2013 Search  Introduction  Changes in the Architecture  Result Sources  Query Rules/Result.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
USING METADATA TO REFINE SHAREPOINT SEARCHES SCOTT HICKMAN – IT4E APRIL 15, 2015 Scott Hickman – IT4E
WCM Platform Improvements ECM and Enterprise Metadata Advanced Routing and Document Sets In Place Records Management.
1 SharePoint 2010 “The Art of Possibilities”. 2 Sites.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Definitions Collaboration – working together on team projects and sharing information,
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
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.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Tutorial 3 Adding and Formatting Text with CSS Styles.
WikiPlus Configurations Configure WikiPlus elements to your needs.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Core Publisher: Creating Programs. Creating Programs in Composer Pro.
1 Chapter 7: Customizing and Organizing Project Results 7.1 Combining Results 7.2 Updating Results 7.3 Customizing the Output Style (Self-Study)
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – UI customization.
Microsoft ® Official Course Structuring and Publishing Websites for All Users Microsoft SharePoint 2013 SharePoint Practice.
2004/051 >> Supply Chain Solutions That Deliver Users.
Transportation Agenda 187. Transportation About Web Parts Web parts are reusable “containers” that reside on web pages and interact with lists, libraries.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
Forms Manager. What is Forms Manager? Forms Manager is a completely new online form creation and form data management tool.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Leveraging Web Content Management in SharePoint 2013 Christina Wheeler.
Homepage Layout Management. Note: This is our last Core Publisher training in the series! You will be checking in with your Station Relations Support.
Leveraging SharePoint Search In SharePoint 2013 Jameson Bozeman.
DYNAMIC FAQ AND DOCUMENTATION PAGES IN SHAREPOINT A modern, reusable, and easy-to-use model.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
Benjamin Niaulin Presented at: SharePoint Fest Chicago SharePoint Geek Content Query Web Part – Get it all in one place and style it!
Creating Oracle Business Intelligence Interactive Dashboards
LMEvents SharePoint Portal How-to Guide
Working with NNRP Sites 4.1 SharePoint 2007 Basics
Presentation transcript:

Sean Squires Program Manager Microsoft Corporation ECMS310

Why the CQWP is so cool How we use it Configuring and using with custom data Tips & tricks Custom modifications we’ve done

Highlight why the Content Query Web Part (CQWP) is such a powerful approach for managing content in a SharePoint portal. Discuss (and demo!) some of the common configurations required to display custom field data. Illustrate some creative applications & extensions we’ve done.

Powerful web part for presenting and delivering data to one or more places from one or more places. With careful site design, this roll-up web part facilitates a lot of content scenarios. Use with tagging and targeting scenarios to display relevant data easily on pages throughout the site Allows you to centralize the content in the presentation layer regardless of where it resides Centralize Content Centralize Delivery List 1List 2 List 3List 4 CQWP CQWP 1CQWP 2 CQWP 3CQWP 4 List And combined: rolling up multiple lists across multiple web parts

Microsoft Web (MSW) Company portal Employees use MSW to find information, stay informed and make productive use of the intranet MS Library (MSL) Library portal Employee’s primary access point to business, marketing & technical research resources HRWeb (personnel) LCAWeb (legal) InfoWeb (field sales) ITWeb (IT Help) FinWeb (financial)

Rolling up select items from single/multiple sources

Re-using centralized content: custom queries are used to display updated & filtered views of items stored in libraries and lists w/o having to constantly edit pages Automatically building news archives pages by category and publish date w/o manual intervention

Use defined target and status site columns to enable content filtering and display

Ensuring consistent formatting/presentation across displays Styles are defined according to portal brand guidelines

Use the CQWP RSS feature to emit a category- filtered stream of results from news lists Use the created URL on other pages to have more control over design and placement of RSS icon

Targeting select content to specific audiences, like FTEs: Audiences can be defined by SharePoint or security groups, DLs, or rules-based entities Audience targeting is enabled under the Query tab and defined under the Advanced tab of the tool pane.

The CQWP is part of the publishing features set so this will need to be activated for the web part to be available in the gallery. NOTE: the part is not available in WSS. It can only query against single-value Lookup or Choice fields It cannot query across site collections It doesn’t support server-side pagination Unlike the Data View Web Part (DVWP) it can easily query across lists within the same site collection

Getting the most out of this web part requires consideration and planning of your content management needs up front Design IA Define content organization and navigation needs Plan Content Types Define your schema and filter fields Determine Roll-ups Define scenarios and property tagging Identify Display Fields Define styles

demo

It uses property settings and CAML to construct the query and the SPSiteDataQuery class to query the SharePoint site to gather results. There are a lot of properties available for configuring and customizing the query Fortunately, you don’t need to modify that many of them. To do these more advanced configurations requires modifying the file through file export or SharePoint Designer (SPD). The web part uses three primary XSL files to render aggregated query results. ContentQueryMain, ItemStyle, and Header.xsl NOTE: A fourth XSL file is available for the RSS feed. The default styles can render the following: Title, Description, LinkUrl, and ImageUrl.

Only a few properties are available directly through the tool pane. To modify the additional properties export the.webpart file and modify in editor of choice, and then modify the.webpart file. Once configured, you can re-import or even upload the modified file to the web part gallery Export to Configure Configure Content Type Add CQWP Export and Modify Properties Alternately, edit in SPD Import and Update Style Reference Copy a desired style to use as a template

Additive property used to declare your custom fields when retrieving data. This property uses an internal name, display name syntax: Title,Text;ID,Counter;Editor,User CommonViewFields Used to rename a column after the data has been retrieved and before passing to transform Useful for column name mapping to re-use existing XSL styles. DataColumnRenames There are only a few key properties we typically configure to expose and our custom content type fields. These properties are used for data retrieval expansion

Allows the default query behavior to be overridden. When this is used, the filtering/sorting/grouping functions of the tool pane are dimmed QueryOverride Used to retrieve additional or specific lists. When this property is used the list function of the tool pane is dimmed ListsOverride These properties override default behavior

Used to declare additional fields to be displayed in the filter fields pick list. This also follows the internal name, display name syntax AdditionalFilterFields Used to declare additional group/sort fields to show in the tool pane. AdditionalGroupandSortFields These properties modify the web part UI only, not the behavior.

Demo Export to configure additional properties

ALL XML inside a tag must be enclosed in a block. The default web part queries against all page libraries in a site collection. Suggest either changing default to be opt-in instead of opt-out or ensure your site publishing rules accommodate this. Upload to the web part gallery a pre- configured CQWP. Expose custom fields via AdditionalFilterFields to allow for modification via browser

Use CQWPs on a hidden page to emit RSS feeds whose URLs can be used elsewhere. Use consistent site columns for content filtering. If your content changes frequently keep the Cross List Query Cache Changes setting to check every time. If you need to query against >1000 lists you can add the MaxListLimit attribute to the ListsOverride property. By default this is set to 1000 There is a performance trade-off here

Use QueryOverride property for more complex queries The CAML query can have any number of filter fields and values (tool pane is limited to three) CAML Query Schema Reference: us/library/ms aspxhttp://msdn2.microsoft.com/en- us/library/ms aspx Using OffSetDays attribute to create a “moving window” (toolpane is limited to [Today] or a specified date

Use QueryOverride property for more complex queries You can only have up to two items w/in each in the clause: Home Page Top Story

Use ListsOverride property to query against other list types Only list templates available at the site root are enumerated. You can extract a list GUID from the list settings page (replacing %2D w/ a dash) ]]> When setting properties requiring use of the column’s internal name remember a space is represented as _x0020_ : Project_x0020_Title, Text;Project_x0020_Owner, Text;ProjectNotes, Text Cross list query cannot filter on multi-value lookup or choice fields When filtering on Yes/No data type use the value “1” and not “1”

Add custom styles to existing XSL files to take advantage of built in functions and template structure Careful to verify before publishing to ensure no malformed XSL XSL files need to be published for reader to view changes Use the datacolumnrenames property to re- use styles Eliminates need to create custom transformations for each custom dataset PostBody,Description ]]

To render HTML and not raw tags set the disable-output-escaping attribute to true: NOTE: potential security risk w/ this setting; be sure you trust content. XSL style useful for getting the internal name for a columns P: Referencing a Blog post:    }/mslibraryblog/Lists/Posts/V Other good references: Default Functions: us/library/bb aspxhttp://msdn2.microsoft.com/en- us/library/bb aspx Heather Solomon:

Modifications we’ve made to the OOB CQWP Override Extension: show additional property fields in the tool pane Dynamic Filtering: allowing overriding query w/ querystring parameter Carousel Display: tool pane options to present results in a rotating display. Source code available on CodePlex: px?ProjectName=sptoolbox&ReleaseId= px?ProjectName=sptoolbox&ReleaseId=11150

Created an extended version with more properties exposed Added a query override call to dynamically update same page contents based on URL parameters {vendorname}

Created an extension to support a filmstrip display of returned results. A preliminary release that we’d like to do more with – we’ll keep the community posted.

demo

Office Visual How To: Displaying Custom Fields in CQWP in Office SharePoint Server 2007: Configuring CBQ (ECM blog post, G. Perantatos): ng-and-customizing-the-content-query-web-part.aspx ng-and-customizing-the-content-query-web-part.aspx How to: customize the CQWP by using Custom Properties (MSDN article): Building a News Workbench on MOSS 2007 (ECM blog post, S. Squires): a-news-workbench-on-moss-2007-part-1.aspx a-news-workbench-on-moss-2007-part-1.aspx

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.