Block-Document Library ** File Folder ** Load Edit

Permalink
I have gone to…
concrete/blocks/document_library/edit.php

To edit the… *** File Folder *** and how it loads

~~~~~~~~~~~ EDIT this Code - Start ~~~~~~~~~~~~~
<div class="ccm-tab-content" id="ccm-tab-content-sources">
<div class="form-group">
<?=$form->label('folderID', t('File Folder'))?>
<?php
$folders = [0 => '* Any folder'] + iterator_to_array($folders);
echo $form->select('folderID', $folders, empty($folderID) ? 0 : $folderID);
?>
</div>
~~~~~~~~~~~ EDIT this Code - End ~~~~~~~~~~~~~~~

I need to NOT USE the… Database Table = TreeNodes
That the Block is using now to load the Path to the… File Folder

I need the page - Block to load the… File Folder - Path
From the page - Block itself
Path =
'/MCO/'.$gName.'/'.$uName;

I have created Folders in the… File Manager
/MCO/groupName1/userName1
/MCO/groupName1/userName2
/MCO/groupName2/userName3
/MCO/groupName3/userName4
Etc

I need each logged in… User
To see ONLY the files in their… $uName

~~~~~~~~~~~~~~~ This Works - Start ~~~~~~~~~~~~~
$u = new User();
$me = $u->getUserID();
$ui = UserInfo::getByID($me);
$uName = $ui->getUserName();
// echo $uName;

$u = new \Concrete\Core\User\User();
$groups = $u->getUserGroupObjects();
if(count($groups)) {
foreach($groups as $group) {
$gID = $group->getGroupID();
$gName = $group->getGroupName();
}
}
// echo $gName;

The above code works - inserting… '.$gName.'/'.$uName;
Path = '/MCO/'.$gName.'/'.$uName;
~~~~~~~~~~~~~~~ This Works - End ~~~~~~~~~~~~~~~

Can anyone… Please HELP…???

nightlog