XSL and Querystring RRS feed

  • Question

  • I need to change "Add new Item" button on List web part. I need to insert parameter into querystring. 

    I try to modify xsl code in SPD:

    pID is my parameter.

    <xsl:value-of select="$ENCODED_FORM_NEW"/>&amp;pID=<xsl:value-of select="$pID" />

    or another variant

    <a class="ms-addnew" id="idHomePageNewDocument" href="{$Url}&amp;pID={$pID}" onc lick="javascript:NewItem2(event, &quot;{$Url}&amp;pID={$pID};RootFolder=&quot;);javascript:return false;" target="_self">Add new</a>

    In both variants I have correct Url link with pID in the end. But when i go to the link, there is no pID in Url. 

    What did I forget?

    • Edited by kamax70 Tuesday, February 7, 2012 6:05 PM
    • Moved by Pengyu Zhao Wednesday, February 8, 2012 2:28 AM (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
    Tuesday, February 7, 2012 4:26 PM

All replies