Skip to main content

How can I show/access xsltXSLT variable in Content Query web Part pane?

I am using content query web partContent Query WebPart to display one item only on home page from the Posts list.

I need to display the data based on three conditions:

1) if "Display on home page" check box is checked
2) basedBased on Start Date and
3) and onOn End Date

I am using this xsltXSLT code, but it does not show up in the Tool pane of the CQWP.

<xsl:variable name="OnStartDate" select="@StartDate" /> <xsl:variable name="OnEndDate" select="@EndDate" /> <xsl:variable name="DisplayHome" select="@DisplayHome" />

How can I access these fields in Content query web partContent Query WebPart?

How can I show/access xslt variable in Content Query web Part pane?

I am using content query web part to display one item only on home page from the Posts list.

I need to display the data based on three conditions:

1) if "Display on home page" check box is checked
2) based on Start Date
3) and on End Date

I am using this xslt code, but it does not show up in the Tool pane of the CQWP.

<xsl:variable name="OnStartDate" select="@StartDate" /> <xsl:variable name="OnEndDate" select="@EndDate" /> <xsl:variable name="DisplayHome" select="@DisplayHome" />

How can I access these fields in Content query web part?

How can I show/access XSLT variable in Content Query web Part pane?

I am using Content Query WebPart to display one item only on home page from the Posts list.

I need to display the data based on three conditions:

1) if "Display on home page" check box is checked
2) Based on Start Date and
3) On End Date

I am using this XSLT code, but it does not show up in the Tool pane of the CQWP.

<xsl:variable name="OnStartDate" select="@StartDate" /> <xsl:variable name="OnEndDate" select="@EndDate" /> <xsl:variable name="DisplayHome" select="@DisplayHome" />

How can I access these fields in Content Query WebPart?

Source Link
Burre Ifort
  • 1.3k
  • 2
  • 26
  • 59

How can I show/access xslt variable in Content Query web Part pane?

I am using content query web part to display one item only on home page from the Posts list.

I need to display the data based on three conditions:

1) if "Display on home page" check box is checked
2) based on Start Date
3) and on End Date

I am using this xslt code, but it does not show up in the Tool pane of the CQWP.

<xsl:variable name="OnStartDate" select="@StartDate" /> <xsl:variable name="OnEndDate" select="@EndDate" /> <xsl:variable name="DisplayHome" select="@DisplayHome" />

How can I access these fields in Content query web part?