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 3299 to 3311

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 28th March 2024 14:05 Europe/London time based on the source file dated 28th March 2024 11:20 Europe/London time.