Keyword

Customise search results screen!

  • Liam McGarry
  • Liam McGarry's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #95789 by Liam McGarry
Customise search results screen! was created by Liam McGarry
Hi All,

 

I'm new to Joomla! and have been messing about with templates, extensions etc and have found something that I'd like to change!

 



 

If possible, i'd like to remove everything from this screenshot except Newest First!

 

Is this possible?

 

Many thanks,

 

Liam

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

  • Liam McGarry
  • Liam McGarry's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #95790 by Liam McGarry
Replied by Liam McGarry on topic Customise search results screen!
For anyone that wants to see what I mean on my site:

 

www.wottodo.org/bu/index.php?searchword=custom+search&ordering=&searchphrase=all&areas[0]=jak2_filter&option=com_search

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 5 months ago #95791 by Yiota
Replied by Yiota on topic Customise search results screen!
This is the com_search of joomla. You can override the components files, and edit them in order to remove what you do not need.

 

To override the files, just copy the folder from components/com_search/views/search and paste it in templates/your_template/html/com_search/. Then you will have to move the files default.php, etc. from the subfolder tmpl to the search folder. You will have to also erase the files metadata.xml and view.html.php. All these changes have to be made in your template files and not the core files. Once done your file structure should be like this:

 

html

-com_search

--search

---default_error.php

---default_form.php

---default_results.php

---default.php

---index.html

-index.html

 

All of these in case the override does not exist in your template already. OK?

 

Now, to change the part you are referring to you will have to edit the default_form.php file.

 

 

 

 

 

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


Powered by Kunena Forum