

The standard search has a selectbox, whichs default value is set to search in "Headers & keywords" instead of "Sitecontent", what most time is preferred.
This snippet swaps the two selectbox items, so the default value is searching in "Sitecontent"
# Swap the selectbox items in Standard Search temp.temp < tt_content.search.30.dataArray.20.valueArray.10 tt_content.search.30.dataArray.20.valueArray.10 > tt_content.search.30.dataArray.20.valueArray.10 < tt_content.search.30.dataArray.20.valueArray.20 tt_content.search.30.dataArray.20.valueArray.20 > tt_content.search.30.dataArray.20.valueArray.20 < temp.temp
This snippet was submitted by Peter Klein




Sander.
# Swap the selectbox items in Standard Search
temp.temp < tt_content.search.30.dataArray.20.valueArray.10
tt_content.search.30.dataArray.20.valueArray.10 >
tt_content.search.30.dataArray.20.valueArray.10 < tt_content.search.30.dataArray.20.valueArray.20
tt_content.search.30.dataArray.20.valueArray.20 >
tt_content.search.30.dataArray.20.valueArray.20 < temp.temp
is there a way to search in both categories (title & keyword and content) at the same time?
Florian
Add comment