Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
146 views

Why won't list view display when <xsl:if> element is used?

I have a list of contacts in SharePoint 2010 that I want to display in 3 different tables based on a TablePos attribute using a custom stylesheet. The TablePos attribute can have a value of Left, ...
clk's user avatar
  • 541
1 vote
1 answer
101 views

Sharepoint 2010 XSLT Customization Lost on Save

I have a page with a XsltListViewWebPart. That is displaying a list with People objects (Person, Department, Email, Phone). I am trying to override the Email to be an actual mailto instead of loading ...
Barracksbuilder's user avatar
0 votes
1 answer
58 views

System.BadImageFormatException after adding line to XSLT for a DVWP

I'm getting a peculiar error after adding a line to my XSLT used in my DVWP. I can't paste all my XSL here but let me explain like so: I have an .xslt file with 284 lines My DVWP references it ...
IMTheNachoMan's user avatar
0 votes
1 answer
38 views

differences in the XML returned in a DVWP vs list.asmx webservice for a plain text field with a URL

I'm trying to figure out why the XML returned in a DVWP is different then what is returned with the list.asmx webservice for a plain text field with a URL in it. I have a list with a plain text field....
IMTheNachoMan's user avatar
0 votes
1 answer
2k views

How to get SharePoint ID given only item URL?

Looking for the simplest possible solution, but needs to be JavaScript/jQuery if at all possible. I have an XML document that I am transforming using XSLT to render an HTML page. This XML document ...
Chad Dybdahl's user avatar
1 vote
1 answer
174 views

Date field won't show with ItemStyle.xsl

I'm pretty new user of SharePoint and i work with SharePoint 2010. I try to show the "StartDate" column of a page in my XSL template but it won't show. I put the column in the webpart configuration ...
Mike Boutin's user avatar
0 votes
0 answers
181 views

How can I take some user input (html or markdown), transform with XSLT, and write the resulting file to a library?

Not looking for a solution here, just something to get me started in the right direction. I would like to create a page that takes some user input from a textbox (markdown would be cool, but HTML is ...
Chad Dybdahl's user avatar
0 votes
1 answer
55 views

Need help rendering .prepend text in SharePoint

Folks, I am trying to use the jQuery .prepend method to display some text on the top of a web part page (underneath the main header). Unfortunately, the text is not rendering across the hole page, ...
cpicco's user avatar
  • 7
0 votes
1 answer
196 views

Remove line break from text in JavaScript (variable value from XSLT)

I need get a variable value from XSLT in search result in SharePoint 2010. But this value is muti-lines text. When I add this variable value in JavaScript, the JS code cannot work, because the line ...
AnnaCICI's user avatar
  • 533
1 vote
1 answer
167 views

Show more/less in search result with JavaScript and XSLT

I have a metadata with the name "productiondescription", in my advanced search, I want to display this "productiondescription" in the search results. And I had changed srch-Description2 in the code ...
AnnaCICI's user avatar
  • 533
0 votes
1 answer
108 views

Does adding a web part to a page make a copy of the web part definition?

The setup: - Custom Summary Link web part - Custom SummaryLinkMain.xsl - Custom ItemStyle.xsl - JavaScript file that the SummaryLinkMain calls from a separate site collection (an internal CDN) and ...
SharePoint Dude's user avatar
0 votes
1 answer
348 views

Summarize text data in a field using XSLT

I'm trying to work out a way that several items in a list could be summarized in a single item if they have a keyword in common. For example, given the items: Sounds: a Sounds: b Vocab: word Vocab: ...
steam23's user avatar
  • 72
1 vote
1 answer
101 views

Add new announcement link viewable by permissions

I created a Content query web part on my home page which is from an announcement list from a sub site. I wanted to add the "Add new Announcement" link below it, but only viewable to those who have ...
Rick's user avatar
  • 441
0 votes
0 answers
458 views

Search Result Core Webpart, sort/filter enabled column is not sorting

I am using sp 2010. I have a search core result webpart on a page. I have modify the xslt in sharepoint designer by a dataview webpart. I have make all columns sort/filter enabled. Filtering is ...
Ola's user avatar
  • 4,385
2 votes
0 answers
376 views

XSLT, regex and RenditionID

I'm sort of new in XSLT, and i need some clues, if you're willing to give me some... What i want: In a CQWP, i want to display items' images, with a certain rendition ID. But, when retrieving the ...
Gaelle's user avatar
  • 592
1 vote
0 answers
534 views

redirect search results to different page

I have one list and search custom search scope is defined for that list. so that it will search only in that list. so the search results will be nothing but the list items! Now My requirement is, ...
Rajeev K's user avatar
  • 331
0 votes
1 answer
3k views

Using xsl stylesheet with List View Web Part to display custom text

I am using a custom xsl stylesheet in Sharepoint 2013 listview webpart using the "XSL Link" property. The list view shows some items based on a filter. I want to display custom text such as "No ...
Aparna Sarkar's user avatar
0 votes
2 answers
5k views

Converting text field to hyperlink via xslt

In my list I have a field for just a regular old text field - all default. It's just a plain, default text field named [TextLink]. And in my fldtypes_custom.xsl file I have included some lines to ...
bgmCoder's user avatar
  • 3,581
0 votes
1 answer
22k views

How to check if variable is not empty in xslt?

I am using sp 2010. I have a custom search result in xslt. I would like to check if "srportalurl" is not empty before show a ahref. If variable "srportalurl" is empty I would like show only the ...
Ola's user avatar
  • 4,385
0 votes
1 answer
615 views

How can you move up the paging buttons

The default location of the Paging buttons is all the way down(see picture below). Is there a way to move them over all the way UP, so that users don't need to scroll down every time they want to ...
Luis Carvalho's user avatar
0 votes
1 answer
140 views

Removing "<pdf:Producer>" from HitHighlighting results in Sharepoint with Foxit PDF IFilter

In my search results, I am getting something like this included in the HitHighlight section of the result item in the "Search Core Results" web part: <pdf:Producer>Microsoft® Word 2010 This ...
trueimage's user avatar
  • 101
0 votes
1 answer
346 views

SP2013 CQWP and slider give me blank slides

I have a big issue and a question about CQWP and slider. I have an image library which will serve as a news library. I've set a CQWP on my homepage which will display Image, title and comments columns,...
Gaelle's user avatar
  • 592
0 votes
1 answer
372 views

Itemstyle.xsl custom template

I have a custom template that I use for a CQWP with announcements. I have it set to truncate the announcement at 750 characters, then show a link with the text [Full Announcement]. The issue is when ...
Jim's user avatar
  • 23
0 votes
1 answer
895 views

Xslt truncate text in field and add link

Hi I have a DataForm Webpart and editing in SPD. I need to truncate a column so I've replaced this line <xsl:value-of select="@AboutUsDetailedIntroduction" disable-output-escaping="yes" /> ...
Orange Juice Jones's user avatar
0 votes
1 answer
78 views

XSLT Image Source Duplication

I have an XSLT file where I output the image source using an attribute. It works fine or should I say it was working fine until I realised that it's outputting two values the same that are now ...
Yanayaya's user avatar
  • 225
0 votes
1 answer
45 views

Showing Items of Custom List

I created a new custom list then I created new web-part with custom list. I added xsl code for the web-part. I want to five item appears on homepage. If users click on "All Items", they redirect to ...
zengel's user avatar
  • 539
0 votes
1 answer
504 views

How to get the unique values in DVWP using XSLT

My requirement is to get the unique values from the list in DVWP Web Part using XSL. Let's say i have following values in my list (10,10,20,30) and i need to show as (10,20,30). Any help would be ...
Swapnil Jadhav's user avatar
0 votes
1 answer
813 views

XSL for CQWP to display Link List items

I am attempting to use the following solution from Marc D Anderson's blog to display LinkList data in a Content Query Web Part: http://sympmarc.com/2011/02/15/displaying-links-lists-urls-in-a-content-...
Kolten's user avatar
  • 760
1 vote
2 answers
417 views

Hours and Minutes calculation in Dataview webpart

I have a DataView Webpart, to display XML data using XML File connection. I use the below formula to calculate the day difference between 2 dates: "(number(ddwrt:DateTimeTick(ddwrt:GenDisplayName(...
George's user avatar
  • 1,522
1 vote
0 answers
553 views

Search Results XSLT add filename property and render document link

I'm attempting to configure the custom XSL for core results search web-part in 2010. The goal here is: Include File name property as a search target Display Link directly to the file I've ...
Jesus Shelby's user avatar
  • 10.9k
0 votes
1 answer
69 views

XSLT or .NET in a webpart

Now I do a webpart with XSLT when only show data, but no know if is better make it with code .Net. for Example in XSLT: XSLT and SharePoint – Part 1 XSLT and SharePoint – Part 2 what is the ...
Andres Williams's user avatar
2 votes
0 answers
416 views

How to Add External xsl Stylesheet to DispForm.aspx

It isn't too difficult to use xsl to modify the display of items in a list (via a custom fldtypes.xsl file), but can the fldtypes.xsl file also be used to change the display on the `dispform.aspx' ? ...
bgmCoder's user avatar
  • 3,581
0 votes
1 answer
438 views

How to refresh after edits to fldtypes.xsl?

After I make an edit to my custom \LAYOUTS\XSL\fldtypes.xsl file, such as these, how do I make the system immediately load the new file? I know I can get it loaded immediately with an iisreset. I ...
bgmCoder's user avatar
  • 3,581
1 vote
1 answer
725 views

XSL Handle on PercentComplete column

In my sharepoint task list there is a field with a display name of % Completed with a name of PercentCompleted. I am trying to get an XSL handle on this column so I can add a css class. I have put ...
bgmCoder's user avatar
  • 3,581
0 votes
1 answer
3k views

Redirect to Display Form page after new item created

I have created a custom New Item Form, and customized the Save button to redirect to the Display Form after submission. I asked a similar question, and it was gratefully answer by @Amal (here). The ...
cubanGuy's user avatar
  • 518
1 vote
2 answers
2k views

Redirect after form submission to a display form page

I have a Item Form to which I would like to add a redirect feature after submission. <button class="btn btn-default" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={https:my-...
cubanGuy's user avatar
  • 518
1 vote
0 answers
453 views

Can you make an XSLT group by itself through lookup?

Recently I figured out this nice grouping template that I will paste below. Now I am wondering: my list is really simple: Title Parent (= lookup to Title of this list) I would like to this list to ...
JJD's user avatar
  • 11
0 votes
2 answers
72 views

List Validation

In attached sharepoint list column "Status" Data Type is "Number", Column type is "Calculated", Formula :- =IF(NOT([Balance Qty]=0),"OPEN","CLOSED"). Here the requirment is if "PO Date" is not ...
user3760253's user avatar
0 votes
2 answers
939 views

My first row keeps repeating - <xsl:template match="Row">

I am getting data from a list with xsl and creating a nice print preview of that data. The table I am creating is correct except my first row keeps repeating (it has the column name and it is only ...
ABB's user avatar
  • 1
1 vote
1 answer
1k views

Display count of items in each group by in the header using a data view

I am doing a group by in my data view web part and would like to be able to show the item count of each group in the header. There is an option you can use from the data view Sort & Group options ...
Jordan's user avatar
  • 2,814
0 votes
0 answers
97 views

Why does (XSLT-Function) generate-id() not work in SharePoint 2013 Content by Search WebPart?

Is there a reason that some XSL 1.0 functions do not work in SharePoint 2013 Content by Search Web Part? I recently came across the problem that a nested <xsl:for-each> does not work and neither ...
superschaf's user avatar
1 vote
3 answers
2k views

CQWP: How to count rows per category

I have a CQWP that returns all draft items in a single library, grouped by "Modified by." I would like to display a count of draft items next to each user's name. I know how to edit Header.xsl, and ...
Chad Dybdahl's user avatar
0 votes
1 answer
49 views

What is the meaning of this XSLT?

I want to know the meaning of this following XSLT Code shown below... <xsl:choose> <xsl:when test="(substring-before(substring-after(@Department,'=*&quot;&gt;'),'&lt;')) = 'IT-...
Pranav Bilurkar's user avatar
0 votes
1 answer
2k views

Alternate List Row Color in WebPart Content Query

XSL File : Created Custom Template Style <xsl:template name="Custom" match="Row[@Style='Custom']" mode="itemstyle"> <xsl:variable name="SafeLinkUrl"> <xsl:call-...
Pranav Bilurkar's user avatar
0 votes
2 answers
125 views

how to deploy a page with XML in Visual Studio that having Friendly Url?

how to deploy a page with XML in Visual Studio that having Friendly Url? Does anyone knows how can I do that? example what not have Friendly Url <File Path="Home.aspx" Url="Home.aspx" Type="...
Andres Williams's user avatar
0 votes
0 answers
156 views

CQWP blog roll Item Style for blog posts how to put a field in bold in xsl? or format others?

I followed this popular guide to do a CQWP of one or more blogs. http://erikswenson.blogspot.co.uk/2010/03/sharepoint-2010-content-query-for-blog.html Everything works, except I would like to know ...
susan's user avatar
  • 2,678
2 votes
3 answers
7k views

XSLT: Set the background colour of cell when the task is overdue

I currently have this XSLT added to my list (snippet): ... <xsl:param name="Today">CurrentDate</xsl:param> <xsl:template name="FieldRef_printTableCell_EcbAllowed.Due_x0020_Date0" match=...
kei's user avatar
  • 586
6 votes
3 answers
4k views

Current user login name in XSLT

I'm trying to define a display template for one of my site columns by using XSLT. One of the things I would need is the loginname (DOMAIN\user) of the currently logged in user. There's one way ...
Kenneth Van Coppenolle's user avatar
2 votes
0 answers
176 views

get the current lang in xslt

I'm new with XSLT and have a WebPart refiner. In the XSLT, i've the param at the beginning: CurrentLcid <xsl:param name="CurrentLcid"></xsl:param> When i test the value, the value is ...
user1898765's user avatar
1 vote
1 answer
153 views

CQWP ItemStyle Divs are being nested

In short, sibling divs coded in my custom ItemStyle for use with a CQWP are being nested into each other. Stripped down to the essential structure I have <xsl:template name="...
Matthew Cornish's user avatar

1 2
3
4 5
10