How can I change the default settings for which content types to search?
|
Posted
#70724
(In Topic #14939)
|
|
|---|---|
|
Community saint |
Thanks for your help. Bob |
|
Posted
|
|
|
Community saint |
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
What I really wanted to know is how to make some of the entries "checked" by default. SOme already are, but I want to add some others as well. Thanks for any help. Bob |
|
Posted
|
|
|
Community saint |
The default checkbox behaviour appears to be drawn from files located in sources/hooks/modules/search. For each item in the search list there is a corresponding file. In each file is a line Code
$info['default']=EITHER_TRUE_or_FALSE;
Code
function info()
Checked: Code
$info['default']=true;
Unchecked: Code
$info['default']=false;
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
|
Community saint |
I'll get to modding the files but it sure would be nice to be able to choose the default status when choosing the items to display on a per-item basis. Bob |
|
Posted
|
|
|
Community saint |
I was hunting this one down when 'she who must be obeyed' decreed that, "Dinner is served." At which point I scurried away from the computer …
Take my advice. I'm not using it!
View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal |
|
Posted
|
|
|
Community saint |
One question: How do you remove "Galleries and Images from the list? This is the block code: Code
[block title="Search JulianRitterCentral" input_fields="content=Search for" limit_to="ocf_within_topic,news,calendar,ocf_posts,catalogue_entries,polls,comcode_pages,iotds,catalogue_categories" zone="_SEARCH" sort="relevance" days="-1" direction="DESC" only_titles="0" only_search_meta="0" boolean_search="0" conjunctive_operator="AND"]main_search[/block]
Galleries and Images are not listed in the limit_to parameter. I suspect Chris or someone from ocPortal needs to weigh in on this one. Thanks for the help. Bob |
1 guests and 0 members have just viewed this: None
Control functions:






