Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vgrem
Last active December 21, 2015 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrem/6238983 to your computer and use it in GitHub Desktop.
Save vgrem/6238983 to your computer and use it in GitHub Desktop.
Passing SPList.NavigateForFormsPages property into XSL in XLV web part
/// <summary>
/// Partial implementation of XsltListViewWebPart.ModifyXsltArgumentList method
/// The remaining code is omitted for clarity here
/// </summary>
protected override void ModifyXsltArgumentList(ArgumentClassWrapper argList)
{
argList.AddParameter("NavigateForFormsPages", string.Empty, this.SPList.NavigateForFormsPages ? (object) BaseXsltListWebPart.XslOneString : (object) BaseXsltListWebPart.XslZeroString);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment