hi i would like to add an attribute to my calss to have the count of file into the folder... i added 'nbre' in the config.php
$config['ResourceType'][] = Array(
'name' => $rowfolder["FolderName"],
'url' => $baseUrl.$rowfolder["FolderName"],
'directory' => $baseDir.$rowfolder["FolderName"],
'maxSize' => 0,
'allowedExtensions' => '',
'deniedExtensions' => '',
'nbre' => $filecount);
i added de var to the class CKFinder_Connector_Core_ResourceTypeConfig
var nbre = 0;
i added the attribute to the function buildXml()
$_oResourceType[$i]->addAttribute("nbre", $_resourceTypeName);
and now im trying to get the value of 'nbre' in my jquery at line 3900
function (p) {
p.resourceTypes = [];
p.on('connectorInitialized', function (q) {
var r = q.data.xml.selectNodes('Connector/ResourceTypes/ResourceType');
for (var s = 0; s < r.length; s++) {
var t = r[s].attributes;
p.resourceTypes.push(new a.aL.ResourceType(p, t.getNamedItem('name').value, t.getNamedItem('url').value, t.getNamedItem('hasChildren').value, t.getNamedItem('allowedExtensions').value, t.getNamedItem('deniedExtensions').value, 'Thumbnails', t.getNamedItem('acl').value, t.getNamedItem('hash').value));
//alert(t.getNamedItem('nbre').value);
but im not able to get it could some one help me with that?