Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 3322 to 3334

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 19th March 2024 09:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.