Tag Info

New answers tagged

0

You can filter Content Query WebPart using Query String (in your case post_id) For that Edit the webpart and in the Additional Filters section. Add a filter which says "ID" is equal to [PageQueryString: post_id] Save and stop editing the page


0

You can do below rule to check that <xsl:if test="count(preceding-sibling::*)= 0"> <!-- First Item = Apply your style --> </xsl:if>


1

You can find it in the site's recycle bin, just restore it from there.


0

I guess you can populate Content Query web part in gallery again. Go to Web part gallery click on New Document in ribbon, click new and select Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart from Gallery and populate it.


1

You can use following code in the display template <div title="_#= $htmlEncode(line4.defaultValueRenderer(line4)) =#_" id="_#= line4Id =#_"> _#=STSHtmlDecode(line4.value)=#_ </div> Source - https://ingessharepointnotes.wordpress.com/2014/03/04/sharepoint-display-templates-display-enhanced-rich-text-field/ Another example var desc = ...


0

Try this <xsl:template name="NewsAnnounStyle" match="Row[@Style='NewsAnnounStyle']" mode="itemstyle"> <xsl:variable name="SafeLinkUrl"> <xsl:call-template name="OuterTemplate.GetSafeLink"> <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/> </xsl:call-template> </xsl:variable> ...


0

You can export the webpart as a .webpart file. Then Create a SharePoint Solution Add a new webpart into the solution Replace the newly created .webpart file with the exported file Delete the .cs file Now open the elements.xml file and set the required properties Package and deploy the solution



Top 50 recent answers are included