VF DSL 468x60

Swap the selectbox items in Standard Search

Submitting your vote...
Rating: 4.0 of 5. 3 vote(s).
Click the rating bar to rate this item.

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



Comments


Sander, 24-09-07 14:06:
Doesn't work as supposed to, it just removes the Headers & keywords entry..

Sander.
Peter, 20-11-07 20:50:
It doesn't work, because of a line got mixed up. It's supposed to look like this:

# 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
Florian, 11-02-09 06:52:
Hi,

is there a way to search in both categories (title & keyword and content) at the same time?

Florian

Add comment

* - required field

*



*
*

Top 10 Updates

Creating a simple Infocenter using TYPO3 geändert am  17-Nov-2009 11:12:52
Making the Section Menu work correctly with TemplaVoila geändert am  05-May-2009 10:27:17
Show pages with type "Not in Menu" in a sitemap geändert am  05-May-2009 10:11:17
Implementation of the DHTML menu from brainjar.com  geändert am  01-Feb-2009 13:02:48
Sample DHTML menu geändert am  01-Feb-2009 12:51:25
A introduction to the CONTENT object geändert am  26-Jan-2009 12:20:39
Sample for dynamic image masks geändert am  16-Dec-2008 15:42:32
Useful Links geändert am  11-Dec-2008 10:06:17
Using Transparent PNG's in IE5/6 without JavaScript geändert am  04-Oct-2008 12:27:15
Using lightbox without extension geändert am  13-Jun-2008 14:20:51

Latest comments

23-Feb-2010 04:40:25
Janna schrieb: what about the css? I am still not clear how to link typoscript with the css. Kindly...
Text menu
05-Feb-2010 18:38:50
Martin Terber schrieb: Didn't work for me neither. I will try in TMENU now.
Alternativ sorting for menu items
27-Jan-2010 23:41:31
romx schrieb: U know its dob't work apply to Tmenu))
Alternativ sorting for menu items
Deutsch
Search: