|
44 | 44 | <txp:variable name="homepage" value="1" /> |
45 | 45 | </txp:if_category> |
46 | 46 | </txp:if_search> |
47 | | - <txp:variable name="min-txp-version-unverified" value='<txp:category_list type="file" parent="txp-version" exclude="txp-version" limit="1"><txp:category title /></txp:category_list>' /> |
48 | | - <txp:variable name="max-txp-version-unverified" value='<txp:category_list type="file" parent="txp-version" exclude="txp-version" limit="1" sort="name desc"><txp:category title /></txp:category_list>' /> |
| 47 | + <txp:variable name="min-txp-version-unverified" value='<txp:category_list type="file" parent="txp-version" exclude="txp-version,any" limit="1"><txp:category title /></txp:category_list>' /> |
| 48 | + <txp:variable name="max-txp-version-unverified" value='<txp:category_list type="file" parent="txp-version" exclude="txp-version,any" limit="1" sort="name desc"><txp:category title /></txp:category_list>' /> |
49 | 49 | </head> |
50 | 50 | <txp:if_variable name="homepage"> |
51 | 51 | <body itemscope itemtype="https://schema.org/WebPage"> |
|
104 | 104 | </main> |
105 | 105 | <txp:else /> |
106 | 106 | <txp:if_search> |
107 | | - <txp:article min-txp-version-verified='%%<txp:page_url type="compatibility" />' max-txp-version-verified='<txp:page_url type="compatibility" />%%' pgonly limit="12" /> |
| 107 | + <txp:variable name="compatibility" value='<txp:page_url type="compatibility" />' /> |
| 108 | + <txp:if_variable name="compatibility"> |
| 109 | + <txp:if_variable name="compatibility" value="Any"> |
| 110 | + <txp:article pgonly limit="12" /> |
| 111 | + <txp:else /> |
| 112 | + <txp:article min-txp-version-verified='%%<txp:page_url type="compatibility" />' max-txp-version-verified='<txp:page_url type="compatibility" />%%' pgonly limit="12" /> |
| 113 | + </txp:if_variable> |
| 114 | + <txp:else /> |
| 115 | + <txp:article pgonly limit="12" /> |
| 116 | + </txp:if_variable> |
108 | 117 | <body itemscope itemtype="https://schema.org/SearchResultsPage"> |
109 | 118 | <txp:output_form form="body_header" /> |
110 | 119 | <main aria-label="Main content"> |
|
116 | 125 | <div class="article-description" itemprop="description"> |
117 | 126 | <p><txp:search_result_count text="article(s) found" /> matching your search request <q><txp:search_term /></q>.</p> |
118 | 127 | </div> |
119 | | - <txp:article min-txp-version-verified='%%<txp:page_url type="compatibility" />' max-txp-version-verified='<txp:page_url type="compatibility" />%%' searchform="article_listing" limit="12" wraptag="div" class="layout-container" /> |
| 128 | + <txp:if_variable name="compatibility"> |
| 129 | + <txp:if_variable name="compatibility" value="Any"> |
| 130 | + <txp:article searchform="article_listing" limit="12" wraptag="div" class="layout-container" /> |
| 131 | + <txp:else /> |
| 132 | + <txp:article min-txp-version-verified='%%<txp:page_url type="compatibility" />' max-txp-version-verified='<txp:page_url type="compatibility" />%%' searchform="article_listing" limit="12" wraptag="div" class="layout-container" /> |
| 133 | + </txp:if_variable> |
| 134 | + <txp:else /> |
| 135 | + <txp:article searchform="article_listing" limit="12" wraptag="div" class="layout-container" /> |
| 136 | + </txp:if_variable> |
120 | 137 | <txp:output_form form="pagination" /> |
121 | 138 | <txp:else /> |
122 | 139 | <div class="article-description" itemprop="description"> |
|
0 commit comments