If anyone is interested, it is currently possibly to do auto searches in ExpressionEngine with a little bit of know how. Observe this on my own weblog for various topics:
All it takes is a well designed template using the advanced search form with most fields preset and the keywords field set by segment. Then, submit the form on load.
I can’t seem to get the above code to work with categories. I have a list of categories on my homepage (based on the categories in my ‘article’ weblog) that I want to be links to search results for that category.
I’m using a generic word as a keyword that I know will appear in every article (that’s the only way I’ve been able to figure out how to search for ‘all’ within that category.
Just click one of the links in the green box on the right. (By the way, the regular search works fine).
By the way, the reason I’m not doing it as Paul did it in his example is that the titles of our categories will rarely turn up in the actual articles as keywords.
Well, if you notice, your links look like ‘C73’, which is the category ID with a C on the front. So, basically, the search expects only the ID and not the ‘C’ on the front. If you simply want to display all the entries in a category, you can just do that exact same manner of link to a page showing Weblog Entries and EE will see the URL and display all of the entries in that category.
Thanks Paul. Actually, I was trying to get the articles to show up as search results, because our articles can be pretty long and it just seems less weblog-like to do it this way (among other reasons). Also, once I have all the articles published, they will be in the hundreds.
I got it working with a combination of your suggestion above (removing the ‘C’ from the URL) and another post, here:
I’ve made so many adjustments and changes over the last two days, and read so many forum posts, that I’m not really sure this is the best way to do this, but here is the code I’m using, just in case it’s useful to somebody else, or in case you have any suggestions for making it more efficient, etc. Now that it’s working, I’m afraid to even open the templates!!
I tried the same word, but the same problem, maybe is something with the html on that auto page
http://www.zooshopamazona.hr/pretraga/auto/Österreich
here you can try something
and this is the code, maybe I’m missing something
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html > <head>
What browser are you using? What encoding? Looks like ‘ć’ is actually translated into two unprintable characters. I can only assume it’s got to do with your server setup, since it works for me. Sorry, this is really not something we can support :(
What browser are you using? What encoding? Looks like ‘ć’ is actually translated into two unprintable characters. I can only assume it’s got to do with your server setup, since it works for me. Sorry, this is really not something we can support :(
hi
I tried in firefox 3 and safari, utf-8
also tried cleaning cookies, but without help :(
normal searching is working great, but this I dont know why not.
do you know where I can search o what to ask my hosting company to change?
just as a side note… those two strange characters coming up at the end have translated to chinese / japanese characters… not my speciality! Where is the server being hosted????!!!