Page 1 of 1

How to open TFM to a specified folder location

Posted: Thu Sep 18, 2025 5:13 pm
by Paul
I'd like to open TFM to a specified folder location.

For example:
/nubuilder2/uploads

I am using the onclick event:

nuVendorLogin('TFM');

How would I modify this to open in the desired location?

Re: How to open TFM to a specified folder location

Posted: Thu Sep 18, 2025 5:50 pm
by Paul
Looking further into this, I see the Config.php file for TFM contains the following:

// Root path for file manager
// use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder'
//make sure update $root_url in next section
$root_path = $_SERVER['DOCUMENT_ROOT'];

// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'
// Will not working if $root_path will be outside of server document root
$root_url = '';

I would need to modify something here, correct?

Re: How to open TFM to a specified folder location

Posted: Thu Sep 18, 2025 7:11 pm
by Paul
I figured it out:

I edited TFM Config.php as follows:

// Root path for file manager
// Use an absolute path (e.g., '/var/www/my_folder')
// or relative to the document root (e.g., $_SERVER['DOCUMENT_ROOT'] . '/my_folder')
$root_path = $_SERVER['DOCUMENT_ROOT'].'/nuBuilder2/Uploads';