Keyword

Search results optimizing

  • gaker
  • gaker's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 3 months ago #129169 by gaker
Search results optimizing was created by gaker
Hello,

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.

More
10 years 3 months ago #129170 by Lefteris
Replied by Lefteris on topic Re: Search results optimizing
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • gaker
  • gaker's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 3 months ago #129171 by gaker
Replied by gaker on topic Re: Search results optimizing

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.

More
10 years 3 months ago #129172 by Lefteris
Replied by Lefteris on topic Re: Search results optimizing
Read docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core to see how you can override any module output in Joomla! . Then create an override for the search.php layout of K2 tools module. Then in the code set the form method to "post" around line 21 :
... method="post" ...

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #129173 by jeffrey liu

Please Log in or Create an account to join the conversation.

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129174 by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Re: Search results optimizing
Hy,

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
  • Franz Wohlkönig's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #143075 by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Search results optimizing
Hi,

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #143115 by Krikor Boghossian
Replied by Krikor Boghossian on topic Search results optimizing
Create a new K2 category menu item and leave the category selection empty. You can call it eg: content.

This way all orphan tags users and search results will render through that menu item.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago - 9 years 5 months ago #143143 by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Search results optimizing
Hi Krikor,

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)
Last edit: 9 years 5 months ago by Franz Wohlkönig. Reason: Information about Search-Resultlist

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #143155 by Krikor Boghossian
Replied by Krikor Boghossian on topic Search results optimizing
Thank you Franz :)
Unfortunately by default the search results' ordering cannot be changed without hacking core files.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum