ps-team
10/27/2017 - 9:33 AM

These example show passing search parameters either form the query string or a from posted data to a node query

These example show passing search parameters either form the query string or a from posted data to a node query

<control name="News Listing Using Node Query" showInMenu="true" category="Dev Training" viewingGroup="1">
	<properties>
		<nodeQuery name="NewsArticlesQuery" orderby="Property_DatePublished desc">
			<where property="Type" operator="IsEqualTo" value="News" />
          			<and property="Title" operator="Contains" value="@Request.Querystring.Keywords" />
          			<and property="Data.TaxonomyCategories" operator="Contains" value="@Request.Querystring.category" />
			</nodeQuery>
  </properties>
</control>

<control name="News Listing Using Node Query" showInMenu="true" category="Dev Training" viewingGroup="1">
	<properties>
		<nodeQuery name="NewsArticlesQuery" orderby="Property_DatePublished desc">
			<where property="Type" operator="IsEqualTo" value="News" />
          			<and property="Title" operator="Contains" value="@Request.Form.Keywords" />
          			<and property="Data.TaxonomyCategories" operator="Contains" value="@Request.Form. categoryFilter" />
			</nodeQuery>
  </properties>
</control>