search function

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Hi PK

Post by jsw_nz »

From what I understand from running a small set of tests in my local installation, you need to make a distinction between template-based and by-default search functions. The templates are geared for narrowing searches based on the ID param. If however you leave out the template input textarea blank Oliver's code takes care of site-wide searches.

Cheers, jsw
RonDog
Posts: 50
Joined: Fri 10. Sep 2004, 22:02
Location: Germany, Munich
Contact:

search issue

Post by RonDog »

When searching for 2 or more words, it does not matter where they are located (in key words or any text content), but when I use "word1 word2" search has no results, but when I use "word1* word2" it will list the correct articles with "word1" and "word2"!

Any explanation why? :roll:

Hard to explain to any user why to put an '*' after each search word...

Ron
Ron

"Silence is foolish if we are wise, but wise if we are foolish."
yuluma
Posts: 53
Joined: Wed 29. Sep 2004, 04:00
Location: Alkmaar - Netherlands - Europe
Contact:

Not bringin back any results !

Post by yuluma »

I tried to put a search form on the left site of my site. I pasted in the left blok in the template.

Code: Select all

<form action="###search_input_action:7###" method="post"> 
<input type="text" name="###search_input_field###" size="10" maxlength="250" value="###search_input_value###" style="font: normal 11px/11px sans-serif; border: solid 1px #9B0468; background: #314E94; padding: 2px; color: #FFFFFF;"> 
<input type="submit" value="Go" style="font-size:10px;"> 
</form> 
When i look at the source code i see this:

Code: Select all

<form action="" method="post"> 
<input type="text" name="search_input_field" size="10" maxlength="250" value="" style="font: normal 11px/11px sans-serif; border: solid 1px #9B0468; background: #314E94; padding: 2px; color: #FFFFFF;"> 
<input type="submit" value="Go" style="font-size:10px;"> 
</form> 
It seems that the form action is missing.... what did i do wrong....

PS: the search page is on ID 7....
Yuluma Nunbanna - workaholic ad dies vitae
yuluma
Posts: 53
Joined: Wed 29. Sep 2004, 04:00
Location: Alkmaar - Netherlands - Europe
Contact:

Post by yuluma »

Aha, got it, I made a mistake and thought that the cat. ID was ment... but when I use the article ID it works fine !

love this system ! :lol:
Yuluma Nunbanna - workaholic ad dies vitae
Post Reply