Created
May 19, 2016 19:44
-
-
Save iOnline247/8c815d49e597cd3962afbcfca0a80dd2 to your computer and use it in GitHub Desktop.
XSL Template to add new button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:output method="html" indent="no"/> | |
<xsl:decimal-format NaN=""/> | |
<xsl:param name="dvt_apos">'</xsl:param> | |
<!-- Define the HttpVDir variable --> | |
<xsl:param name="HttpVDir"/> | |
<!-- | |
Usage: <xsl:call-template name="addnew" /> | |
--> | |
<xsl:template name="addnew"> | |
<xsl:variable name="newFormUrl"> | |
<xsl:value-of select="concat($HttpVDir, '/Lists/Announcements/NewForm.aspx')" /> | |
</xsl:variable> | |
<tr> | |
<td class="ms-addnew" style="padding-bottom: 3px;"> | |
<span style="POSITION: relative; WIDTH: 10px; DISPLAY: inline-block; HEIGHT: 10px; margin-right: 5px; OVERFLOW: hidden" class="s4-clust"> | |
<img style="POSITION: absolute; TOP: -128px !important; LEFT: 0px !important" alt="" src="/_layouts/images/fgimg.png" /> | |
</span> | |
<a class="ms-addnew" onclick='javascript:SP.UI.ModalDialog.ShowPopupDialog("{$newFormUrl}"); return false;' href="{$newFormUrl}" target="_self">Add new announcement</a> | |
</td> | |
</tr> | |
</xsl:template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment