Hello,
i am trying to achieve that on a page where a search returns no items a other search is being performed and showen below the first search.
I have created a page with a search and it shows some text above the items. Now, when there are no items it should show the text (that works).
Below that i put a list module with a slightly different search. That works also...
But i want that module to only show when the first search is empty. Now its always there. And i have to do that not by linking the module to a menu-item or other trick.
What i was trying to do is the following:
create a variable in the view.html.php on the spot where the list-search is empty gets created. So when the result is empty the variable gets created. I'm no php coder so maybe i do something wrong. But this is how i think it could work..
$resultisempty = 1
Then i create a if statement in the template to only show the moduleposition if $resultisempty = 1 (or exists).
The problem is i can't seem to find the right spot to put this variable in view.html.php
Or is this my whole approach wrong? :-)
Thanks for any pointers,
Joris