We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37cf770 commit 92b6889Copy full SHA for 92b6889
1 file changed
src/templates/forms/misc/search_input.txp
@@ -1,3 +1,4 @@
1
+<txp:variable name="compatibility" value='<txp:page_url type="compatibility" />' />
2
<div class="wrapper-inner zebra">
3
<div class="container" itemscope itemtype="https://schema.org/WebSite">
4
<meta itemprop="url" content="<txp:site_url />">
@@ -9,7 +10,7 @@
9
10
<label for="textpattern-target">Textpattern version compatibility</label>
11
<select id="textpattern-target" name="compatibility">
12
<txp:category_list type="file" parent="txp-version" exclude="txp-version" sort="name desc" break="">
- <option><txp:category title /></option>
13
+ <option<txp:if_variable name="compatibility" value='<txp:category title />'> selected</txp:if_variable>><txp:category title /></option>
14
</txp:category_list>
15
</select>
16
</form>
0 commit comments