I NTRO TO C ONTENT Q UERY W EB P ART P OWER U SER – L EVEL 200 K IM F REHE – R IGHTPOINT C ONSULTING
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
A BOUT M E 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
A GENDA About CQWP Examples Anatomy of a CQWP Samples Requirements & Recommendations Tips & Tricks
I NFORMATION A BOUT THE C ONTENT Q UERY W EB P ART
S ITE C OLLECTION
CQWP
U SAGE 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
A N F EW E XAMPLES E XAMPLES
A NATOMY 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
DEMO
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 R EQUIREMENTS & R ECOMMENDATIONS
T IPS & T RICKS Format Date: At the top: xmlns:ddwrt= In the Template: Show Rich Text: disable-output-escaping="yes" –
T IPS & T RICKS Create custom slot: If “Due Date” does not work, try “Due Date [Core Task and Issue Columns]” T IPS & T RICKS
For “Yes / No” checkbox: filter by 1 or 0 Discussion Replies: use “ItemChildCount” – ItemChildCount,Lookup Expiration date: _dlc.ExpireDate Managed Metatdata: CQWP allows single and multiple values for filter, but not grouping.
T IPS & T RICKS Quick way to render Names of Fields – Add it to the code above “Display Title” variable to see a list of fields being passed to the web part Show additional fields “CommonViewFields” Body_x0020_content, RichHTML Internal names: oint-internal-field-names-sharepoint-2010/
T HANKS TO O UR O THER S PONSORS ! Thanks to our Sponsors
S PECIAL THANKS TO OUR ORGANIZERS ! Jim Bob HowardMatthew Lathrop