Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This link provided a lot of help in solving this issue:</p> <p><a href="http://social.technet.microsoft.com/Forums/en/sharepoint2010customization/thread/ef0d1d22-47ff-416c-becd-13d48de80e4d" rel="nofollow noreferrer">http://social.technet.microsoft.com/Forums/en/sharepoint2010customization/thread/ef0d1d22-47ff-416c-becd-13d48de80e4d</a></p> <p>Basically, display patterns fields are defined in the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\XSL\fldtypes.xsl file.</p> <p>There is a file called fldtypes_ratings.xsl that you can use as an example of defining your custom field display.</p> <p>You can create your own xsl file (i.e. fldtypes_myfile.xsl) to define your own custom display.</p> <p>Here's a sample of my content:</p> <pre><code>&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result- prefixes="xsl msxsl ddwrt" ns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"&gt; &lt;xsl:template match="FieldRef[@Name='MyCustomField']" mode="Computed_body"&gt; &lt;xsl:param name="thisNode" select="."/&gt; &lt;SPAN class="mystuff-content-item" style="Width:100%;text-align:center"&gt; &lt;SPAN class='mystuff-socialized-status mystuff-socialized-status-unknown'&gt;&lt;/SPAN&gt; &lt;SPAN class="mystuff-content-object-type" style="display:none"&gt; MyContent &lt;/SPAN&gt; &lt;SPAN class="mystuff-content-followed" style="display:none"&gt;0&lt;/SPAN&gt; &lt;SPAN class="mystuff-content-name" style="display:none"&gt;&lt;/SPAN&gt; &lt;SPAN class="mystuff-content-id" style="display:none"&gt; &lt;xsl:value-of select="$List" /&gt; &lt;xsl:text&gt;|&lt;/xsl:text&gt; &lt;xsl:value-of select="$thisNode/@ID" /&gt; &lt;/SPAN&gt; &lt;/SPAN&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>Hope that helps!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload