How do I create a link for the rest of the paragraph in an announcement in SharePoint, which displays the word:
I have found that the most obvious is the easiest way to do this, to create a template in ItemStyle.xsl Which selects a substring of the content of the body of the declaration and displays the link given below for the article.
The following items in your ItemStyle.xsl file After adding (go to the 'Style Library / XSL Style Sheets' folder in SharePoint Designer), you can modify the Web Part through the browser, and change the item style (presentation / styles) for 'ReadMoreAnnouncements' The code holds the amount of characters displayed for 190 characters (see $ bodyContent, 1,190 function calls).
& lt; Xsl: template name = "remove markup" & gt; & Lt; Xsl: param name = "string" /> & Lt; Xsl: Select & gt; & Lt; Xsl: when test = "($ string, '& lt;')" & gt; & Lt; Xsl: variable name = "nextString" & gt; & Lt; Xsl: call-template name = "delete markup" & gt; & Lt; With xsl: select param name = "string" = "substring-after ($ string, '& amp; g;')" /> & Lt; / Xls: call-templates & gt; & Lt; / Xsl: variable & gt; & Lt; Xsl: select value = "concat (first letter ($ string, '& lt;' ', next string), / /> & lt; / xsl: when & gt; Xsl: other & gt; & lt; xsl: select value = "$ string" /> gt; & lt; / xsl: otherwise & lt; / xsl: select & gt; & lt; / xsl: templates & gt; ; & Lt; xsl: template name = "read more translations" match = "line [@ style = 'redemory translation']" mode = "itemstyle">
div class = "RMAnnouncementsTitle" & Gt; & lt; xsl: Select Value = "@ Title" /> & lt; xsl: variable name = " BodyContent "& gt; xsl: call-temp Net Name = "Remove Mark Mark"> Select the value = "Substring ($ bodyContent, 1,190)" /> ... ... & lt; a & gt; & lt; Xsl: attribute name = "href" & gt; / list / exploration / disfirm.aspx? Id = & lt; xsl: select value = "@ id" & gt; & Lt; / XSL: Price of & gt; & Lt; / XSL: Specialty & gt; & Lt; Xsl: attribute name = "square" & gt; RMAnnouncementsMoreLink & lt; / Xsl: attribute & gt; Read more & lt; / A & gt; & Lt; / Div & gt; & Lt; / XSL: Templates & gt; It should definitely work, and it is very easy to implement.
Comments
Post a Comment