Redirecting the search function

si sirbevo 02 Mar, 2010
Hello.

I am trying to figure out how to redirect my search results to a page without the main menu. I am using the search code from the "How to add a search to ChronoConnectivity"

Any help would be appreciated. Here is my code.

<?php
$search_array = array('date_0', 'radio0', 'select_5');
$where = array();
foreach ( $search_array as $search ) {
  $value = JRequest::getVar($search, '' , 'post');
  if ( $value ) {
    $where[] = " $search LIKE '%$value%' ";
  }
}
if ( !empty($where) ) {
  echo " WHERE ".implode(' AND ', $where);
}?>

ORDER BY cf_id DESC
Gr GreyHead 03 Mar, 2010
Hi sirbevo,

I'm sorry, I don't understand the question, can you say a bit more please.

Bob
si sirbevo 03 Mar, 2010
Currently the link on my main menu to CC goes to a new page without the websites main menu so more data can be seen across the screen. I did not like how the table was presented when the main menu was showing.

After adding the search function to my table, when the search results are posted, the results are now showing with the main menu. I don't want the main menu showing because of the large amount of data fields.

hope this helps. If not I can take a screenshot to show you.

Michael
Gr GreyHead 03 Mar, 2010
Hi Michael,

I think that the answer is to hide the modules when ChronoConnectivity is showing. I think I solved this for a client a while ago - I'll take a look at the site tomorrow and remind myself what I did.

Bob
Gr GreyHead 04 Mar, 2010
Hi Michael,

What I did was to turn link the ChronoConnectivity page to a menu item and then turn the modules in the left and right columns off for that item.

Bob
si sirbevo 04 Mar, 2010
Yes, that is what I finally did.

Thanks for help!
This topic is locked and no more replies can be posted.