OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: redirect on no search results
#10625
ackio (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
redirect on no search results 2 Years, 10 Months ago Karma: 0  
Hi, it's possible to change the results of search if no find a cars?

Now if the search not find a car, the result is a page with : _VEHICLE_MANAGER_LABEL_SEARCH_NOTHING_FOUND

It's possible to redirect to an other web page? or if not how to put a link after the message?

Exuse for my bad english.

Thanks
Andrea
 
Logged Logged  
  The administrator has disabled public write access.
#10635
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:redirect on no search results 2 Years, 10 Months ago Karma: 61  
Hello,

for replace or update that you need replace code in file:
{site}/component/com_vehiclemanager/vehiclemanager.php

function: searchVehicles

code:

Code:


if(count($vehicles)){
    HTML_vehiclemanager::displayVehicles($vehicles, $currentcat, $params, $tabclass, $catid, null, false, $pageNav);
}
else{
  $doc =& JFactory::getDocument();  
  $doc->addStyleSheet( $mosConfig_live_site.'/administrator/components/com_vehiclemanager/includes/vehiclemanager.css' );
  echo "<h1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"._VEHICLE_MANAGER_LABEL_SEARCH_NOTHING_FOUND."</h1>";




thanks,
Ordasoft team
 
Logged Logged  
  The administrator has disabled public write access.
#10667
ackio (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:redirect on no search results 2 Years, 10 Months ago Karma: 0  
Ok, I can redirect to other page.

Very thanks
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?