- Posts: 75
COMMUNITY FORUM
Search results optimizing
- gaker
-
Topic Author
- Offline
- Senior Member
I am using classic sef urls in Joomla 3.3.0 and K2 v2.6.8
I have two problems with serach results from K2 tools module.
1. I am searching the specific categories,but there is a lot of them selected, and my link is veeeeery long as each id is present in link. It is only one search module and one function in frontend, is it possible to short this link in any way ?
I always will use only this module only for search thru lot of categories ( its product catalog with multi[pe categories plugin )
2. Is there any possibility to put any specific class to the search results? Temporarily I have done it with creating empty link "K2 Category" which became parrent of the search results, but I would like to know if there is any proper/better option.
Hope to hear you
Thank you
regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
1. You can turn the form method from "GET" to "POST". However if you do so there will be no links to search results. It will be just a link to the search page.
2. Yes you can completely customize the output of K2. Just read getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates to learn how you can do it.
Please Log in or Create an account to join the conversation.
- gaker
-
Topic Author
- Offline
- Senior Member
- Posts: 75
Lefteris Kavadas wrote: Hi. Regarding your questions:
1. You can turn the form method from "GET" to "POST". However if you do so there will be no links to search results. It will be just a link to the search page.
2. Yes you can completely customize the output of K2. Just read getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates to learn how you can do it.
Regarding 1. - how it can be done? Sorry for my lack knowloedge.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
... method="post" ...
Please Log in or Create an account to join the conversation.
- jeffrey liu
-
- Offline
- New Member
- Posts: 16
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
- Offline
- Platinum Member
- Posts: 529
it works, but …: in URL is shown "…component/k2/…". i appended search-Menue to an hidden one like read in this Forum – same Result.
So ist a better Solution than before;-)
Regards
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
- Offline
- Platinum Member
- Posts: 529
10 Months later i come to this Question again*g.
To make it short: I use k2Tool-Searchbox, use a Menu and Override like said in www.joomlaworks.net/blog/item/196-enhancing-your-k2-site-part-1-better-search-results. Only Problem still "component/k2/" in Url.
How can i get "component/k2/" don't shown?
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This way all orphan tags users and search results will render through that menu item.
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
- Offline
- Platinum Member
- Posts: 529
it works and now i understand your often read Answer*g
Thanks for helping and best Wishes on your Way to k3;-)
Regards
p.s. If someone want's like me to order Search-Resultlist by ie. Date – not possible (see www.joomlaworks.net/forum/k2-en/40645-search-ordering#141967)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Unfortunately by default the search results' ordering cannot be changed without hacking core files.
Please Log in or Create an account to join the conversation.