0

I have list that contains two columns

Name: Single Line of Text

URL: Hyperlink or picture

Using XSLT I have shown Name columns value on my home page by using below custom style in Itemstyle.xsl file.

Custom style to show Link in PopUp window   itemstyle.xsl

  1. <xsl:template name=”OpenApplicationPagePopUp” match=”Row[@Style=’OpenApplicationPagePopUp‘]” mode=”itemstyle”>
  2. <xsl:variable name=”SafeLinkUrl”>
  3. <xsl:call-template name=”OuterTemplate.GetSafeLink”>
  4. <xsl:with-param name=”UrlColumnName” select=”‘LinkUrl'”/>
  5. </xsl:call-template>
  6. </xsl:variable>
  7. <xsl:variable name=”DisplayTitle”>
  8. <xsl:call-template name=”OuterTemplate.GetTitle”>
  9. <xsl:with-param name=”Title” select=”@Title”/>
  10. <xsl:with-param name=”UrlColumnName” select=”‘LinkUrl'”/>
  11. </xsl:call-template>
  12. </xsl:variable>
  13. <div class=”item link-item”>
  14. <xsl:call-template name=”OuterTemplate.CallPresenceStatusIconTemplate”/>
  15. <a href=”{$SafeLinkUrl}” onclick=”ShowPopupDialog(GetGotoLinkUrl(this));return false;”>
  16. <xsl:if test=”$ItemsHaveStreams = ‘True'”>
  17. <xsl:attribute name=”onclick”>
  18. <xsl:value-of select=”@OnClickForWebRendering”/>
  19. </xsl:attribute>
  20. </xsl:if>
  21. <xsl:if test=”$ItemsHaveStreams != ‘True’ and @OpenInNewWindow = ‘True'”>
  22. <xsl:attribute name=”onclick”>
  23. <xsl:value-of disable-output-escaping=”yes” select=”$OnClickTargetAttribute”/>
  24. </xsl:attribute>
  25. </xsl:if>
  26. <xsl:value-of select=”$DisplayTitle”/>
  27. </a>
  28. </div>
  29. </xsl:template>

My Requirement to show only Suggestion Box in Popup window Other Links Should be open in new Tab So please suggest me what can change in above xslt…

Thanks

Deepak Chauhan

(Visited 364 times, 1 visits today)
Add a Comment