Home Blog Joomla Customize Search If No Result Found
Customize Search If No Result Found
Joomla

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..."

 


AddThis
blog comments powered by Disqus
 

About Me

My name is Yofie Setiawan, i am a fulltime freelance web designer and web developer that lived in Jakarta, Indonesia. I already done many web design projects. Do you have any projects for me? Contact Me!