Yeah, I read the documentation how to connect the events with certain actions of the modules... however, the way how to get the functions of the module described in the documentation
(
Code: Select all
global $gCms;
if( !isset( $gCms->modules['TheModuleIWant'] ) || !isset( $gCms->modules['TheModuleIWant']['object'] ) )
{
return;
}
$themoduleiwant = $gCms->modules['TheModuleIWant']['object'];
$themoduleiwant->DoThis($somedata);
$themoduleiwant->DoThat($somemoredata);
Code: Select all
global $gCms;
if( !isset( $gCms->modules['Uploads'] ) || !isset( $gCms->modules['Uploads']['object'] ) )
{
return;
}
$uploads = $gCms->modules['Uploads']['object'];
var_dump($uploads);
Code: Select all
print_r($uploads);
doesn't work for me. Using the var_dump(), the page to which the user defined tag is applied will not appear at all, whereas using the print_r() function leads to spitting out a great amount of content which contains anything, but certainly nothing looking like a function which I could use.
I looked into the Uploads.module.php, too, and could find some functions for deleting categories, but none for adding.
Do I have to write my own function?
Having searched the forum, I ran into this topic,
but the posted solution looks complicated to me, and I do want to add a category for every frontend user.