View Single Post
Old 12-13-2004, 04:02 AM   #2
blueyed
Green Mole
 
Join Date: Sep 2004
Posts: 19
updated to 1.8.5

Merged the file with version 1.8.5

I have not thoroughly tested the new functionality of path and excludepath.

It would be nice if this makes it into the next release. Probably the search.php (and form functions) need adjustments (to serialize the array in hidden fields etc).

We use it here from our customized search.php file like this:

Code:
$path_exclude = array();
if( X )
{
	$path = 'XXX/%';
}
elseif( Y )
{
	$path = 'YYY/%';
}
else
{
	$path_exclude = array( 'XXX/%', 'YYY/%' );
}
and call phpdigSearch then.

This way we exclude certain paths when we are not in that subpage and only use the special path for this subpages when we are in them.
Attached Files
File Type: txt search_function.php.txt (29.8 KB, 33 views)

Last edited by blueyed; 12-13-2004 at 04:13 AM.
blueyed is offline   Reply With Quote