The content query webpart in sharepoint 2013 fetches only Title. I am pointing to a Content type using it. Even though it contains many columns still Content Query displays only Title.
How can I customize it to point to some columns in that content type?
Also is there any other alternative to get data of columns of a particular content type?
Yes. You need to modify the itemstyle.xsl in the style library, and add a new template that can pull through the columns of your items.
Related
Guys!
I have a Sharepoint List, and I'm struggling to customize the webpart to include a new Item.
The need is to create a Dropbox that changes values based in another field in same webform.
Here in this list, I select the Coordinator list, but the problem is I really don't know how to show in Analyst field just the analysts from the coordinator I just choose.
Note: We are using a workspace in Sharepoint 2013, and due adm restrictions we can only use the regular settings, so we can't create custom HTML webparts for example.
Is there any good reference to change Content Query Webpart formatting. I would like to display results in two columns for a specific CQWP without changing the XSL file.
You will have to change XSLT.
see e.g.:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns
Please check the below link
http://pholpar.wordpress.com/2010/01/21/displaying-results-in-multiple-columns-using-the-content-query-web-part/
Other option is you ca use Dataview webpart to show the list details from one site to other site
http://www.learningsharepoint.com/2012/08/12/sharepoint-2013-add-dataview-webpart-with-sharepoint-designer-2013/
http://sharepointgeorge.com/2009/display-sharepoint-list-site-data-view-web-part/
I resolved the issue by using SPServices, JQuery.
I have a simple list where I am entering a name, a timeframe, and a tag. I'd like to create a custom view of this data where timeframe becomes column heading and tag is the row definition and the name is displayed in grid. What's the simplest way to accomplish this?
Use a Content Query Web Part to display the list.
You can add a custom item template to the ITEMSTYLE.XSL file in Style Library/XSL Style Sheets directory. With a simple structure like you are describing you can easily pivot and format the data.
For general syntax and an overview take a look at Heather Solomon's post: http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx
Another good link with relevant info:
http://kyleschaeffer.com/sharepoint/sharepoint-2010-item-styles-and-ddwrt/
When i try to create a custom InfoPath form on my Orders List I get the following error:
The SharePoint list form can't be customized with InfoPath because fields of an unsupported data type are marked as required, or because fields are corrupted. In SharePoint, try deleting the columns or editing the column properties to remove the required attribute. - Product (Lookup)
Additional information:
The Site contains;
Two Site Content types Product and Order. Order does have a lookup field to product, it is a optional field so NOT required.
Two Lists. A Products list with Product as Content Type and an Orders list with Order as Content type.
The Site Collection has the SharePoint Server Enterprise Site Collection features activated. Creating custom InfoPath forms for the Products lists works without any problem.
I tried to delete my List and recreate it but it i still get the same error. Hope someone can help me with this issue.
Thanks
Apperantly this was due to to the Title field in the Content Type being a required value. Changing the lookup to the items ID solved it.
This worked for me. But if you don't want to use the ID field in your views or on the form, here are a couple tips to replace it with the Title (or other column) in your lookup field...
Replacing the IDs in the form:
In InfoPath, create a new data source for the lookup field. Follow through the prompts to find the list to lookup. Once it's added, change the Value to ID. This will now set the dropdown list in the form to display the Title values as well as properly link the IDs in the list.
Use Title (linked to item) in your list view without instead of the ID:
Create a new index in the list you're looking up for the field you want to be linked. Then go back to the main list and change the lookup back to Title (linked to item). Note that this will again break the ability to edit the form in InfoPath. Changing it back to ID will allow InfoPath editing again. Then just change it to Title (linked to item) again when done. There's probably a "right" way to do this but it works for me.
Apperantly this was due to to the Title field in the Content Type being a required value. Changing the lookup to the items ID solved it.
Simple solution to this is, create a lookup field using SharePoint List settings, and then edit the form with infopath for further design related changes. When you creates lookfield using infopath this gives above issue, i could resolve it by creating list column and then editing form with InfoPath.
I am trying to setup a content query web part in MOSS that will display documents on a page based on a choice column that I created. I have created a "Page" column and added it as a core document column for my site. What I would like the CQWP to do is filter the document list that is displayed based on this Page column. However, this column does not show up as a filter in the CQWP on the page. I tried following the instructions in this question: Content Query WebPart - Grouping by custom column? to no avail. Does anyone have any ideas as to how I can accomplish this?
Have you tried CommonViewFields as suggested in the second answer from that other question? You can edit the property in SharePoint Designer or by exporting the web part, changing the CommonViewFields in Notepad, and then re-importing the web part. If CommonViewFields doesn't work, you can always modify the filter property directly in either SPD or using export-Notepad-import. Be sure you are pointing to a Content Type that includes your custom field.