Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

i can't get my content query webpart to save when i put a dynamic filter in it.

1) create a docset and customize the Welcome Page 2) add Content Query Web Part and set it up as per this image:

enter image description here

3) attempt to save the webpart.

RESULTS: get the error here:

enter image description here

Scrolling down the webpart information there is nothing that points to an error except there is red text in the Presentation area under Feed:

Feeds are only available on publishing pages.

MORE INFO: i hard coded in a PALTitle value to see if it works that way and it works fine. it is when i set FilterValue1="[PageFieldValue:Title]" that doesn't work.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

i finally after about 4 hours of troubleshooting (i'm not a developer) got this working.

1) when opening the webpart properties in sharepoint designer i found the GUIDs of the list and datamapping references pointed to the wrong list altogether even though i'd selected them correctly using the UI. so i had to edit them by finding the guid of the correct list (using this method: http://nickgrattan.wordpress.com/2008/04/29/finding-the-id-guid-for-a-sharepoint-list/)

2) i had an example of a webpart that was put together correctly that i used as my template, and i edited it to replace the correct datamapping properties like so:

{}

the ones i replaced were:

  • DataMappingViewFields
  • DataMappings

after i did that, and it STILL didn't work, i adjusted the "Title" field to show in my document set, and discovered that the Title field was not what i'd expected. I'd created the Document Set programattically using Sharepoint Designer Workflow and found out that the "Path and Name" property doesn't actually set the Title. The Title was being set to be the same Title as the originating workflow's list item.

so what i did to accomodate was change the filter value in the above block as you see:

FilterValue1="[PageFieldValue:Name]"

this resulted finally in the query working. here's an image of the query on the left in the embedded document set instance - where the bold is the Name field (which matches the PALTitle field of the Initiation Items list) and the highlighted is the Title field that was created that matches the initiation item Title.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.