Questions tagged [content-query-web-part]

27 questions
3
votes
2 answers

XSL / XSLT - Adding a value-of as a style attribute for a DIV

I'm using SharePoint 2010 and the Content Query Web Part to output a list of dates from a SharePoint list. The display of this list is controlled by an XSL stylesheet called ItemStyle.xsl I have made progress with the general appearance but would…
2
votes
0 answers

JSOM Update web part properties doesn't always work

Here is a code snippet (there is applicable code to get to this point, of course): var properties = oWebPart.get_properties(); properties.set_item("FilterDisplayValue1", "M"); properties.set_item("TitleUrl",…
2
votes
2 answers

Adding a WebPart to a SharePoint 2013 Master Page

Have looked on here plenty but this is the first time I've asked a question, so please bear with me. Within my SharePoint site collection, I have a list of links to other systems within the business - this list is hidden to all users apart from…
2
votes
0 answers

Content query web part not updating

I built a content by query web part programmatically. The problem is that when I deploy the solution, the web part doesn't update the items automatically. I must go to "edit webpart" and just push ok, nothing more. Then it updates and I can see my…
2
votes
1 answer

muenchian grouping in ContentQueryMain.xsl

I'm Newbie in Sharepoint 2010 ,and I had to deal with ContentQueryMain.xsl which I hardly understand what going on there and what part goes where . I need to group result by Category , then sort them by category and quetion . I succeed doing that…
2
votes
2 answers

How can I specify a background image for a content query Webpart in SharePoint 2010?

How can I style the background of a content query webpart in SharePoint 2010? I have been having a look around, and can't seem to figure it out. I am able to edit the individual item styles using the ItemStyle.xsl file in SharePoint designer, but I…
Jamlow
  • 99
  • 10
1
vote
1 answer

Get both ID and Name from a User type field in a cqwp

I'm building a Content Query Web Part that is supposed to show a link to a user page. I get the user name from a custom list containing a column named 'Member' of the type 'Person or Group'. To build the link in the ItemStyle.xsl, I need both the…
1
vote
0 answers

Display textbox for ItemStyle and MainContentQuery customization

I have the requirement to display a textbox on the content query webpart editor pane in which a user can type the path to a custom ItemStyle.xsl and MainContentQuery.xsl and the webpart will use the provided xsl's. How can i do this? I've seen…
mnatan.brito
  • 883
  • 5
  • 18
  • 32
1
vote
0 answers

SharePoint 2007 public override ToolPart[] GetToolParts() bug?

In this Custom Content Query Web Part the following code works. I'm able to change the Web Part title and the ToolPart Title: public class CustomWebPart1 : ContentByQueryWebPart { public override ToolPart[] GetToolParts() { …
Juan Carlos Puerto
  • 2,632
  • 1
  • 26
  • 22
1
vote
2 answers

sharepoint content query webpart: hide empty column with jquery

I want to hide a list column in editform.aspx It works. But now I want to hide it, if there is no value.…
0
votes
0 answers

Sharepoint Online - CAML query in CSOM Script issue with date range

I need to run in a javascript webpart (CSOM) a CAML query between 2 dates. CAML query returns nothing if I define date criteria with correct format ISO8601 (yyyy-MM-ddTHH:mm:ssZ). var cQuery = new SP.CamlQuery(); var camlXML =…
Francois
  • 147
  • 1
  • 1
  • 13
0
votes
2 answers

SPFX Content Query [Handlebars] Unable to get a valid URL from list Hyperlink column

I am using the Content Query webpart for sharepoint online and try to query a hyperlink column from a list. I am query my "URL" column for the bing address. But this…
0
votes
2 answers

Sharepoint script webpart in Gantt not working

i couldn't understand why, but i built gantt chart from ms project on sharepoint, with many subtask, and I would like to hide subtasks by default. Unfortunately, any script that i put above my gantt chart doesn't work and produce anything... i…
0
votes
1 answer

SharePoint content editor web part is missing the url to HTML file in edit mode

This is a weird one, but I am not sure if I am missing something here. There used to be a location for the link to HTML files in content editor web parts. I cannot find the url now! I want to know which HTML file the web part is showing at the…
Efron A.
  • 353
  • 3
  • 10
  • 19
0
votes
1 answer

Callback function not reachable when changing queryTemplate on CSWP

I'm working with Content Search Web Parts, I need to run code when the queryTemplate process is done. So, I'm sending the query through a function function sendQuery(myQuery) { setQuery2(myQuery, function() { console.log('Process done for…
Carlos M
  • 27
  • 7
1
2