AnsweredAssumed Answered

Folder Hide

Question asked by noenoe on Aug 23, 2012
Latest reply on Aug 23, 2012 by amandaluniz_z
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

Outcomes