jeudi 19 février 2015

mapping columns in CQWP



I have a content query web part, with custom item style template, I defined variables in the templates as :



<xsl:variable name="myfield1">
<xsl:value-of select="@myfield1" />
</xsl:variable>


so later I can use them in my <div class="link-item"> like this:


<span>{$myfield1} </span>


so basically I want to show a field in my list to appear in my style, but now it displays the field in the web part's properties so I can point this property to my field. Is there a way to just add a reference to this field in my xslt? So that a user when he wants to use the same CQWP somewhere else, they don't have to do the mapping? I am new to this, thanks for the help.








0 commentaires:

Enregistrer un commentaire