OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

VehicleManager component support

Go to bottom Favoured: 0

Redirect on no search results

ackio (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
redirect on no search results 10 Years, 2 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.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:redirect on no search results 10 Years, 2 Months ago
Karma: 101  
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.
ackio (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:redirect on no search results 10 Years, 2 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
»