Collections functions
General functions
Render functions
Theme permission functions
Resource functions

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 3155 to 3167

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 26th September 2022 14:05 Europe/London time based on the source file dated 13th September 2022 17:55 Europe/London time.