intro to content query web part power user – level 200 kim frehe – rightpoint consulting

24
INTRO TO CONTENT QUERY WEB PART POWER USER – LEVEL 200 KIM FREHE – RIGHTPOINT CONSULTING

Upload: kasi

Post on 23-Feb-2016

18 views

Category:

Documents


0 download

DESCRIPTION

Intro to Content Query Web Part Power User – Level 200 Kim Frehe – Rightpoint Consulting. Thank you for being a part of the first SharePoint Saturday Austin. Please turn off all electronic devices or set them to vibrate. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

INTRO TO CONTENT QUERY WEB PART

POWER USER – LEVEL 200

KIM FREHE – RIGHTPOINT CONSULTING

Page 2: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

• Please turn off all electronic devices or set them to vibrate.• If you must take a phone call, please do so in the hall so as not

to disturb others.• Open wireless access is available with no password• Feel free to “tweet and blog” during the session• Thanks to our Title Sponsors:

Thank you for being a part of the first SharePoint Saturday Austin

Page 3: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

ABOUT ME• SharePoint Power User since 2001• Graduated with BS in Advertising from

University of Florida• Huge Gator Fan• Chicago• Dog Lover and SharePoint Geek

• Consultant at

• Twitter @chomp1313

Page 4: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

AGENDA• About CQWP• Examples• Anatomy of a CQWP• Samples• Requirements & Recommendations• Tips & Tricks

Page 5: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

INFORMATIONABOUT THE CONTENT QUERY WEB PART

Page 6: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

SITE COLLECTION

Page 7: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

CQWP

Page 8: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting
Page 9: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

USAGE• Announcements / News Rollups• Administrative Dashboard• Calendar Rollups– Recurring calendar items are an issue

• Contracts / RFP’s • Employees / Contacts• Client Profiles– All contacts, contracts, RFP’s, announcements, etc

related to one client or project• User fields – how are they using

Page 10: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

AN FEW EXAMPLESEXAMPLES

Page 11: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting
Page 12: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

ANATOMY OF CQWP• Display information

from all sites in site collection,

• One “parent” with children or just one site

• Can display based on list just one list

Page 13: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting
Page 14: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting
Page 15: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting
Page 16: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting
Page 17: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

DEMO

Page 18: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

• Publishing Feature must be turned on

• Access Level: Must have design access to add web parts to a page

• Set up Content Types at the Parent Site or Content Type Hub

REQUIREMENTS & RECOMMENDATIONS

Page 19: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

TIPS & TRICKS• Format Date: At the top:

xmlns:ddwrt=http://schemas.microsoft.com/WebParts/v2/DataView/runtime

In the Template:<xsl:value-of select="ddwrt:FormatDate(@DueDate, 1033, 1)"/>

• Show Rich Text: disable-output-escaping="yes" – <xsl:value-of select="@Description“ disable-output-

escaping="yes" />

Page 20: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

TIPS & TRICKS• Create custom slot:

<div class=“item”><xsl:value-of select=“@fieldname”/>

</div>

• If “Due Date” does not work, try “Due Date [Core Task and Issue Columns]”

TIPS & TRICKS

Page 21: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

TIPS & TRICKS• For “Yes / No” checkbox: filter by 1 or 0

• Discussion Replies: use “ItemChildCount”– <property name="CommonViewFields"

type="string">ItemChildCount,Lookup</property>

• Expiration date: _dlc.ExpireDate

• Managed Metatdata: CQWP allows single and multiple values for filter, but not grouping.

Page 22: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

TIPS & TRICKS• Quick way to render Names of Fields - 2007<xsl: for-each select=“@*”><xsl: value-of select = “name( )”/></xsl: for-each>

– Add it to the code above “Display Title” variable to see a list of fields being passed to the web part

• Show additional fields - 2007“CommonViewFields”

<property name="CommonViewFields" type="string">Body_x0020_content, RichHTML</property>

Internal names: http://sharepointmalarkey.wordpress.com/2010/10/12/sharepoint-internal-field-names-sharepoint-2010/

Page 23: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

THANKS TO OUR OTHER SPONSORS!Thanks to our Sponsors

Page 24: Intro to  Content Query Web Part Power User – Level  200 Kim Frehe – Rightpoint Consulting

SPECIAL THANKS TO OUR ORGANIZERS!

Jim Bob Howard Matthew Lathrop