This project is read-only.
1
Vote

BuildViewsNode method needs to change fileUrl for Document and Forms Library

description

the fileUrl string in the BuildViewsNode method should change to "Forms/fileUrl" for Document library and Forms library. This will ensure that all files (template files like newForm.aspx, editform.aspx and the ViewName.aspx views of the library go inside the 'Forms' folder that every document and forms library has). Basically the code should be changed to
 
             fileUrl = urlAttr.Substring(lastIndexOfSlash, urlAttr.Length - lastIndexOfSlash); //just after this statement
            //Check for BOTH Doc Library and Form Library (for infopath forms)
            if (list.BaseTemplate == SPListTemplateType.DocumentLibrary || list.BaseTemplate == SPListTemplateType.XMLForm)
            {
                fileUrl = string.Format("Forms/{0}", fileUrl);
            }

comments

panoone wrote Oct 6, 2011 at 10:40 PM

+1 Currently list views get placed in the library root which seems to cause odd behaviour with Content and Structure moves. Errors basically.

wrote Feb 13, 2013 at 11:18 PM