What I would like to be able to do is filter these results based on selections made from a number of drop down lists. I have managed to create the lists, populating the data from datatypes but I am unsure how I can apply these selections to a search.
How to filter results using drop down selections
Hi,
I am using the following xslt to return a list of demonstration dates at our shops, which are then ordered into 5 results per page.
What I would like to be able to do is filter these results based on selections made from a number of drop down lists. I have managed to create the lists, populating the data from datatypes but I am unsure how I can apply these selections to a search.
Code for populating lists...
<xsl:variable name="demoType" select="umbraco.library:GetPreValues('6646')"/>
<select>
<xsl:for-each select="$demoType//preValue">
<option value="{@id}">
<xsl:value-of select="current()"/>
</option>
</xsl:for-each>
</select>
<xsl:variable name="demonstrators" select="umbraco.library:GetPreValues('6632')"/>
<select>
<xsl:for-each select="$demonstrators//preValue">
<option value="{@id}">
<xsl:value-of select="current()"/>
</option>
</xsl:for-each>
</select>
<xsl:variable name="demoRegion" select="umbraco.library:GetPreValues('6649')"/>
<select>
<xsl:for-each select="$demoRegion//preValue">
<option value="{@id}">
<xsl:value-of select="current()"/>
</option>
</xsl:for-each>
</select>
Can anyone help me out?
Thanks
/R
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.