Blog Joomla Customize Search If No Result Found

Customize Search If No Result Found

There is something maybe not suitable to your need when you search on Joomla Component, and it turns to blank page. It because Joomla Engine didn't find any content that suitable to your search keywords. But shouldn't it show some text or sentences that remind us that this search process is turns to no result? How to customize that search page on Joomla if it turns to no result found?

  1. Create a folder in your template folder called "html" (if it doesn't exists)
  2. Create a folder in that html folder called "com_search" (if it doesn't exists)
  3. Create a folder in that com_search folder called "search" (if it doesn't exists)
  4. Copy the file .../components/com_search/views/search/tmpl/default_error.php - to .../templates/[your-template]/html/com_search/search
  5. Edit that file to display whatever you want to see.
  6. Save the file

<?php echo $this->escape($this->error); ?>

You may change that line 6 above on default_error.php on your templates/[your-template]/html/com_search/search to something like "Your search is turns to no result! Please try to use another words..."

 


blog comments powered by Disqus

Hello!

Yofie Setiawan

My name is Yofie, I manage a solid team of web designers and web developers based in Jakarta, Indonesia. We are experts in building websites with Joomla CMS and are able to build websites using Responsive Web Design technology. If you are interested in hiring us for a project, Contact Us!