8 years ago
4
Topic

The message for 'no results' after a search is very limited.

Would it be possible to add the or to add a redirection URL for the case of no results?

Thanks for any hints to solve my problem.
Heinz

Get a VIP membership
1283 Posts
Bucklash
8 years ago
3
Level 1

Hi Heinz

Check out this forum post:

redirect-after-no-result

Bucklash

8 years ago
2
Level 2

Thanks Bucklash

I processed some tests but without success. Have to test more and more. Will keep you up to date.

Heinz

8 years ago
1
Level 3

Sorry but I'm really not able to solve my problem. Maybe I'm understanding something wrong.

Would you please check my understanding? Thank you very much!

1) I'm looking up the template name of the list within List & Search Type Manager (it is seb_table)
2) I'm creating a subfolder with my search_type name (?What is the search_type?) within .../templates/seb_table/includes
3) I'm copying the file no_result.php from seb_table/includes to the newly created folder
4) I'm implementing the script
    <code>// joomla 2.5 $app = JFactory::getApplication(); $link = 'http://www.domain.com/'; $msg = 'You have been redirected to domain.com'; $app->redirect($link, $msg, $msgType='message');</code>

Would that be correct?

Thanks for you help!

8 years ago
0
Level 4

It works on the template level (.../templates/seb_table/includes) using the no_result.php file.

But I didn't understand the structure to implement the individual no-result functionality for only one search-type. What is the subfolder name within includes which I have to use for the search-type? Should it be the title (where I have a two word naming) or the optional alias which will end in
.../templates/seb_table/includes/vakanzensuchen
?

Thank you for any feedback.
Heinz

Get a Book for SEBLOD