[tubepress output="searchInput"]
How should I pre-pend the search input for the search feature so that the search will have my keywords automatically added before whatever is typed into the search box (in my case I'd like to pre-pend with 'travel videos')?
Thanks for your reply,
Buschka
Pre-pend Search Input
Started by
Buschka Northern
, Jan 28 2012 04:44 PM
1 reply to this topic
#1
Posted 28 January 2012 - 04:44 PM
#2
Posted 29 January 2012 - 12:19 AM
Hi Buschka,
This is possible with a bit of modification to TubePress. You'll want to change this line from
This is possible with a bit of modification to TubePress. You'll want to change this line from
$searchTerms = org_tubepress_impl_util_StringUtils::cleanForSearch($rawSearchTerms);to
$searchTerms = 'travel videos ' . org_tubepress_impl_util_StringUtils::cleanForSearch($rawSearchTerms);Give that a try and let us know how it works for you. Thanks!