I need to set the value of this filter based on a querystring. I am using Sharepoint 2013 and this is a portion of code in a Content Editor webpart. I would like to pass the following variable ?type. (ie. Pages/News.aspx?type=[Variable]) The challenge is that the code is getting some options out of a SP list in order to populate the dropdown. Any assistance would be greatly appreciated.
<div class="news-filters">
<select class="document-sort" id="newsType" dcnIndex="0">
<option{{if _xData.NewsCategory==""}} selected="selected"{{/if}} value="all">All Categories</option>
{{:~choice.getSelectOptions(dcn[0], "NewsCategory", _xData["NewsCategory"])}}
</select>
</div>