Skip to content

Commit 92b6889

Browse files
committed
Keep the version selected in search results
1 parent 37cf770 commit 92b6889

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/templates/forms/misc/search_input.txp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<txp:variable name="compatibility" value='<txp:page_url type="compatibility" />' />
12
<div class="wrapper-inner zebra">
23
<div class="container" itemscope itemtype="https://schema.org/WebSite">
34
<meta itemprop="url" content="<txp:site_url />">
@@ -9,7 +10,7 @@
910
<label for="textpattern-target">Textpattern version compatibility</label>
1011
<select id="textpattern-target" name="compatibility">
1112
<txp:category_list type="file" parent="txp-version" exclude="txp-version" sort="name desc" break="">
12-
<option><txp:category title /></option>
13+
<option<txp:if_variable name="compatibility" value='<txp:category title />'> selected</txp:if_variable>><txp:category title /></option>
1314
</txp:category_list>
1415
</select>
1516
</form>

0 commit comments

Comments
 (0)