Ok, popatrzyłem trochę w kod i możliwości i jedynym prostym sposobem jest to, co napisałem:
Wyglądałoby to tak:
/**
* Display
*
* @return string
*/
public function render(): string
{
if( isset( \IPS\Request::i()->itemId ) && \IPS\Request::i()->itemId )
{
return 'zonk!';
}
return 'test';
}
Efekt bez itemId:
I z:
W extensions profile nie zastosujemy nowych metod z node, tylko render():
elseif ( mb_substr( $tab, 0, 5 ) == 'node_' )
{
$type = mb_substr( $tab, 5 );
$tabContents = (string) $nodes[ $type ]->render();
}