Keyword

Customize Search Results page

  • Mihir Patel
  • Mihir Patel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #97218 by Mihir Patel
Customize Search Results page was created by Mihir Patel
after searching in a category property of K2 i get the results as default joomla com_search result page

 

I want that the search should display results like category view of category only. so either i will hv to get access to all the fields of the searched property. Can anyone tell me is there any easy way to display the search results just like the category view of items of k2 ???

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 3 months ago #97219 by Yiota
Replied by Yiota on topic Customize Search Results page
You want to customize com_search to show the list of results with similar styling as you have in your category lists in K2, right?

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

  • Mihir Patel
  • Mihir Patel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #97220 by Mihir Patel
Replied by Mihir Patel on topic Customize Search Results page
Yes ... exactly.... Right it behaves like a default joomla search with just the item title coming being populated in search result......

 

Any way ?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 3 months ago #97221 by Yiota
Replied by Yiota on topic Customize Search Results page
All you have to do is to create a template override of com_search (Copy the folder search in components/com_search/views/search and paste it in templates/Your Template/html/com_k2/search) and customize the pages default_results.php, default_form.php, default.php.

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

  • Mihir Patel
  • Mihir Patel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #97222 by Mihir Patel
Replied by Mihir Patel on topic Customize Search Results page
Hmmm...well that sounds worth trying....I will get back as soon as i give it a shot.....Thanks a lot for the reply....

Between one more question I hope you won't mind?? when the K2 item is opened from backend by administrator then the creater ie the author changes to administrator..... Would be great if you can help me out with that as well.... :)

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 3 months ago #97223 by Yiota
Replied by Yiota on topic Customize Search Results page
The author should not belong to Registered users because the registered users cannot have any rights to edit items, so they are not included in the author lists in the backend.

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

  • Mihir Patel
  • Mihir Patel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #97224 by Mihir Patel
Replied by Mihir Patel on topic Customize Search Results page
So it means I will have to change the registration type of joomla user ie user should register as type Author/Editior/Publisher.......I hope by changing that editing will not be affected from front end ???

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 3 months ago #97225 by Yiota
Replied by Yiota on topic Customize Search Results page
Just Author group will suffice. It won't change anything in your frontend, no.

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

  • Mihir Patel
  • Mihir Patel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #97226 by Mihir Patel
Replied by Mihir Patel on topic Customize Search Results page
That was awesome......This two were hurdles to me in further development of my work... Thanks a lot...:)

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

  • Mihir Patel
  • Mihir Patel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #97227 by Mihir Patel
Replied by Mihir Patel on topic Customize Search Results page
I copied search folder from components/com_search/views/search to templates/Your Template/html/com_k2/search.....

Note:- There was no com_k2 folder within html....

 

Still i copied it...but what changes shall i do in the files you mentioned......Can you guide me more...Thnx

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


Powered by Kunena Forum