Tag Info

New answers tagged

0

You'd want to wrap that in an if, something along the lines of this: <xsl:if test="string-length(@MyDesc) &gt; 400"> <xsl:value-of disable-output-escaping="yes" select="substring(@MyDesc,1,400)" /> - <a href="{$SafeLinkUrl}">[Full Announcement]</a><br /> </xsl:if>


0

Create new style in ItemStyle.xsl xsl:template name="MyNewStyleName" match="Row[@Style='LoanerRequestCustomStyleTwo']" mode="itemstyle" /xsl:templet In ContentQueryMain.xsl In " xsl:template name="OuterTemplate.CallHeaderTemplate"> " Tag Search for xsl:value-of disable-output-escaping="yes" select="$BeginListItem" / Usually can be found on ...


1

Svet, as was pointed in the original answer, there are two options how to customize List View via XSLT: Inline editing of xsl using SharePoint Designer as described in article Create a custom list view using SharePoint Designer create a custom xsl template for a List View and apply it via XSL Link property of XLV web part (i usually prefer this method) ...


1

Have you considered doing the following: <xsl:choose> <xsl:when test="color='yellow'"> <xsl:attribute name="style">background-color:yellow</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="style">background-color:lightgreen</xsl:attribute> </xsl:otherwise> ...


0

I had a similar problem with getting the LCID within an event receiver. Finally I addressed it like this System.Globalization.CultureInfo.CurrentUICulture.LCID or System.Globalization.CultureInfo.CurrentUICulture.Name It worked for me. Hope it helps.


0

To achieve the output of all comment versions I found a solution on Marc D Anderson's Blog. In order to get this to work I had to switch from using a CQWP to a DVWP, but this wasn't a struggle. For those looking for a quick copy and paste the following was used within the xslt: <SharePoint:AppendOnlyHistory FieldName="Comments" runat="server" ...


1

I found a solution that works for me. I doesn't solve the original problem (getting both Name and ID) - it proposes another solution. Instead of trying to get both Name and ID (I thought I needed the ID to build the URL to the member's page), I used the following to look up the URL of the member: <xsl:variable name="SafeLinkUrl"> ...


0

Technically the People Picker column values are a span with a BUNCH of attributes stuck to it. Here is normally how I get the two main basics from it: ID => <xsl:value-of select="substring-before(substring-after(@PickerColumn, 'ID='), '&amp;')" /> Display Name => <xsl:value-of select="substring-before(substring-after(@PickerColumn, ...



Top 50 recent answers are included