search_title_node_processing()

Description

Convert node searches into a friendly syntax. Used by search_title_processing.php

Parameters

ColumnTypeDefaultDescription
$string string Search string

Return

string

Location

include/search_functions.php lines 3299 to 3310

Definition

 
function search_title_node_processing($string)
{
    if (
substr(ltrim($string), 02) == NODE_TOKEN_PREFIX) {
        
# convert to shortname:value
        
$node_id substr(ltrim($string), 2);
        
$node_data = array();
        
get_node($node_id$node_data);
        
$field_title ps_value("select name value from resource_type_field where ref=?", array("i",$node_data['resource_type_field']), '''schema');
        return 
$field_title ":" $node_data['name'];
    }
    return 
$string;
}

This article was last updated 25th April 2025 11:05 Europe/London time based on the source file dated 17th April 2025 18:30 Europe/London time.