cancel
Showing results for 
Search instead for 
Did you mean: 

Folder Hide

noenoe
Champ in-the-making
Champ in-the-making
I want to see only User Home and Public Home at repository page.So i need to hide unnecessary folders at repository page where as i can't delete them permanently.What i mean is that it is necessary to work as background because of others supporting cases.How do i make?

I made filtering at documentlist.js's datatable definition
for example->fnRenderCellStatus: function DL_fnRenderCellStatus()
      {
         var scope = this;

         /**
          * Status custom datacell formatter
          *
          * @method renderCellStatus
          * @param elCell {object}
          * @param oRecord {object}
          * @param oColumn {object}
          * @param oData {object|string}
          */
         return function DL_renderCellStatus(elCell, oRecord, oColumn, oData)
         {
            Dom.setStyle(elCell, "width", oColumn.width + "px");
            Dom.setStyle(elCell.parentNode, "width", oColumn.width + "px");

            var record = oRecord.getData(),
               node = record.jsNode,
               indicators = record.indicators,
               indicator, label, desc = "";
            if(record.fileName != "Data Dictionary" && record.fileName != "Guest Home" && record.fileName != "Sites" && record.fileName != "Company Home")
            {
               //This can true filtering Condition
               //Enter this(type by alert)
            if (indicators && indicators.length > 0)
            {
              //Enter DMS folder's subfolders and indicators length is 1
               for (var i = 0, ii = indicators.length; i < ii; i++)
               {
                  indicator = indicators;//Enter Object parameter
                  // Note: deliberate bypass of scope.msg() function
                  label = Alfresco.util.message(indicator.label, scope.name, indicator.labelParams);
                  /*
                  label = YAHOO.lang.substitute(label, record, function DL_renderCellStatus_label(p_key, p_value, p_meta)
                  {
                     return Alfresco.util.findValueByDotNotation(record, p_key);
                  });
                  */
                  label = Alfresco.util.substituteDotNotation(label, record);

                  desc += '<div class="status"><img src="' + Alfresco.constants.URL_RESCONTEXT + 'components/documentlibrary/indicators/' + indicator.icon + '" title="' + label + '" alt="' + indicator.id + '" /></div>';
                  //Enter to SubFolder
               }
            }           
            elCell.innerHTML = desc;
            //Start to enter Repository folder
            }
         };
      }, but the spaces remain and there is no appear inside subfolders where the name are the same of filltering condition. Please help me
1 REPLY 1

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
You could just change the permissions in the other spaces so they don't inherit permissions. By default everyone has access to data dictionary, etc, you can avoid that by changing permissions.

It's easier than coding it…

Regards,
Adei