Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

render_fixedlist_as_pills()

Parameters

ColumnTypeDefaultDescription
{ $nodes:string ""; if count$nodes > 0

Location

include/render_functions.php lines 4399 to 4413

Definition

 
function render_fixedlist_as_pills($nodes):string 

    global 
$baseurl;
    
$display_html "";
    if (
count($nodes) > 0) {
        foreach (
$nodes as $nodedata) {
            
$search_url generateURL($baseurl '/pages/search.php', ['search' => NODE_TOKEN_PREFIX $nodedata['ref']]);
            
$display_html .= "<a href=\"{$search_url}\" onclick=\"CentralSpaceLoad(this)\"</a>";
            
$display_html .= "<div class=\"categorytreenode\">" escape($nodedata["name"]) . "</div>";
            
$display_html .= "</a>";
        }
        return 
"<div>" $display_html "</div>";
    }
    return 
'';
}

This article was last updated 14th October 2024 09:35 Europe/London time based on the source file dated 11th October 2024 13:30 Europe/London time.