none
Folders and subfolders in Document Library

    Question

  • I have documnet library whilch has folders and subfolders in it.I have created two columns called folder NAme and subfolder NAme and grouped this library by folder and subfolder column. I get the output in which folders are grouped by folder name and subfolder name(If they have it).

    Few of folders doesn't have any subfolders still they are grouped by subfolders name,and when i expand it,it's empty which is expected behaviour.Is there any way to get around this problem so that i can see folders annd its subfolders in library structure when i group it by.

    Thanks

    Monday, November 19, 2012 3:04 PM

Answers

  • No, although the folder functionality exists as its familiar for users, the idea is to add enough metadata to the list so (column data) so that you can set views/filters etc to find what you are after quickly and easily without having to navigate down and up through folders.


    Sergio Giusti

    Monday, November 19, 2012 3:38 PM

All replies

  • No, although the folder functionality exists as its familiar for users, the idea is to add enough metadata to the list so (column data) so that you can set views/filters etc to find what you are after quickly and easily without having to navigate down and up through folders.


    Sergio Giusti

    Monday, November 19, 2012 3:38 PM
  • Hi i need to compare SharePoint MOSS Folder structure / Document Library / lists with SP2010.

    I need to compare only by their names.No need to validate the contents residing in Files. Iam new to sharepoint application .Kindly help me out.

    Thanks

    Monday, June 24, 2013 7:47 AM
  • I disparately need your help this is consuming all my time and I'm failing at my project.  
    I just can't seem to figure it out. I do not have any scripting experience my company drop SharePoint 2010 
    on my team without any support or training my apologies if my questions seem trivial. 
    What I'm trying to accomplish is a SharePoint Metro Style web part the lists all of the Document Libraries 
    on a subsite. I was able to get the code below from blog but it show all Sites and not Document libraries
    Any Help would be greatly appreciated. 
    Lost User in SharePoint Webpart  
    Melissa

    Please Help

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt2="urn:frontpage:internal" >
      <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" />
      <xsl:param name="CreateLabel"></xsl:param>
      <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[not(@__spHidden = 'true') and not(contains(@__spDefaultViewUrl, '_catalogs'))]" />
      <!-- Could use and __spOnQuickLaunch="True" -->
      <xsl:variable name="RowCount" select="count($Rows)" />
      <xsl:variable name="IsEmpty" select="$RowCount = 0" />
    
      <xsl:template match="/" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">
    	<xsl:choose>
    		<xsl:when test="$IsEmpty">
    		</xsl:when>
    		<xsl:otherwise>
    
    <style>
    #place {
        border: 0 none;
        margin: 0;
        padding: 0;
        text-decoration: none;
        font-size: 1em;
        font-family: sans-serif;
        font-style: normal;
        font-weight: 300;
        height: 560px;
        margin: 0;
        ;
    }
    #wrapper1 {
        height: 480px;
        ;
        top: 10px;
        left: 10px;
        width: 975px;
    }
    
    .micon {
        cursor: pointer;
        margin: 0 !important;
        ;
        right: 3px;
        top: 3px;
        width: auto;
    }
    .title {
        cursor: pointer;
        text-decoration: none;
        bottom: 10px;
        color: #FFFFFF;
        left: 5px;
        line-height: 100%;
        ;
        text-align: left !important;
    }
    .title:hover {
        cursor: pointer;
        text-decoration: none;
        border: 0 none !important;
        box-shadow: none !important;
        margin: 3px !important;
    }
    .subtitle {
        cursor: pointer;
        text-decoration: none;
        line-height: 14px;
        font-size:11px;
        ;
        top: 4px;
        color: #FFFFFF;
        left: 5px;
    }
    .listcnt
    {
        cursor: pointer;
        text-decoration: none;
        line-height: 14px;
        font-size:12px;
        ;
        bottom: 10px;
        color: #FFFFFF;
        right: 5px;
    }
    #tile-7 {
        background: #54A7AE repeat scroll 0 0;
        height: 103px;
        left: 0;
        line-height: 103px;
        ;
        top: 0;
        width: 215px;
    }
    #tile-7 img {
        max-height: 103px;
        max-width: 215px;
    }
    #tile-7 .title {
        font-size: 26px;
    }
    #tile-8 {
        background: #5A5BAF repeat scroll 0 0;
        height: 102px;
        left: 0;
        line-height: 102px;
        ;
        top: 113px;
        width: 215px;
    }
    #tile-8 img {
        max-height: 102px;
        max-width: 215px;
    }
    #tile-8 .title  {
        font-size: 25px;
    }
    #tile-11 {
        background: #D35A47 repeat scroll 0 0;
        height: 65px;
        left: 225px;
        line-height: 65px;
        ;
        top: 0;
        width: 140px;
    }
    #tile-11 img {
        max-height: 65px;
        max-width: 140px;
    }
    #tile-11 .title {
        font-size: 16px;
    }
    #tile-12 {
        background: #DB881B repeat scroll 0 0;
        height: 65px;
        left: 375px;
        line-height: 65px;
        ;
        top: 0;
        width: 140px;
    }
    #tile-12 img {
        max-height: 65px;
        max-width: 140px;
    }
    #tile-12 .title {
        font-size: 16px;
    }
    #tile-4 {
        background: #89A83E repeat scroll 0 0;
        height: 140px;
        left: 225px;
        line-height: 140px;
        ;
        top: 75px;
        width: 290px;
    }
    #tile-4 img  {
        max-height: 140px;
        max-width: 290px;
    }
    #tile-4 .title {
        font-size: 35px;
    }
    #tile-2  {
        background: #723CA2 repeat scroll 0 0;
        height: 215px;
        left: 525px;
        line-height: 215px;
        ;
        top: 0;
        width: 440px;
    }
    #tile-2 img {
        max-height: 215px;
        max-width: 440px;
    }
    #tile-2 .title {
        font-size: 54px;
    }
    #tile-3 {
        background: #753069 repeat scroll 0 0;
        height: 160px;
        left: 0;
        line-height: 160px;
        ;
        top: 225px;
        width: 330px;
    }
    #tile-3 img {
        max-height: 160px;
        max-width: 330px;
    }
    #tile-3 .title {
        font-size: 40px;
    }
    #tile-9 {
        background: #5DABB2 repeat scroll 0 0;
        height: 75px;
        left: 0;
        line-height: 75px;
        ;
        top: 395px;
        width: 160px;
    }
    #tile-9 img {
        max-height: 75px;
        max-width: 160px;
    }
    #tile-9 .title {
        font-size: 19px;
    }
    #tile-10 {
        background: #7FA02E repeat scroll 0 0;
        height: 75px;
        left: 170px;
        line-height: 75px;
        ;
        top: 395px;
        width: 160px;
    }
    #tile-10 img {
        max-height: 75px;
        max-width: 160px;
    }
    #tile-10 .title {
        font-size: 19px;
    }
    #tile-1  {
        background: #1E5588 repeat scroll 0 0;
        height: 245px;
        left: 340px;
        line-height: 215px;
        ;
        top: 225px;
        width: 420px;
    }
    #tile-1 img  {
        max-height: 245px;
        max-width: 420px;
    }
    #tile-1 .title  {
        font-size: 51px;
    }
    #tile-5  {
        background: #52A6AD repeat scroll 0 0;
        height: 123px;
        left: 770px;
        line-height: 123px;
        ;
        top: 225px;
        width: 195px;
    }
    #tile-5 img  {
        max-height: 123px;
        max-width: 195px;
    }
    #tile-5 .title  {
        font-size: 25px;
    }
    #tile-6 {
        background: #DC8E27 repeat scroll 0 0;
        height: 112px;
        left: 770px;
        line-height: 112px;
        ;
        top: 358px;
        width: 195px;
    }
    #tile-6 img  {
        max-height: 112px;
        max-width: 195px;
    }
    #tile-6 .title {
        font-size: 24px;
    }
    </style> 
    <div id="place" style="left: 0px; top: 0px">
    <div id="wrapper1">
    <xsl:for-each select="$Rows">
    <xsl:sort select="@__spRootFolderUrl" order="ascending" />
    <xsl:if test="position() &lt; 13">
    		<!-- order by __spDefaultViewUrl __spTitle __spImageUrl __spSchemaXml -->
    
    					<div id="{concat('tile-', position())}" >
    					   <img src="{@__spImageUrl}" class="micon" />
    					   <a href="{@__spDefaultViewUrl}">
    					   	<xsl:attribute name="title">
    					   		<xsl:choose>
    					   			<xsl:when test="@__spDescription and string-length(@__spDescription) &gt; 0"><xsl:value-of select="@__spDescription" /></xsl:when>
    					   			<xsl:otherwise><xsl:value-of select="@__spTitle" /></xsl:otherwise>
    					   		</xsl:choose>
    					   </xsl:attribute>
    					   <div class="title"><xsl:value-of select="@__spTitle" /></div>
    									   </a>
    					</div>
    					
    					<xsl:if test="position() = last() and not(position() = 12)" >
    		                <xsl:call-template name="filler">
    		                    <xsl:with-param name="from" select="position() + 1" />
    		                    <xsl:with-param name="until" select="13"/>
    		                </xsl:call-template>
    					
    					</xsl:if>
    
                    </xsl:if>
    
                    
    			</xsl:for-each>
    			
    		    			</div>
    		</div>							
    		</xsl:otherwise>
    	</xsl:choose>
          
      </xsl:template>
     
      <xsl:template name="filler">
            <xsl:param name="from"/>
            <xsl:param name="until"/>
            <xsl:choose>
                <xsl:when test="$from &lt; $until">
    				<div id="{concat('tile-', $from)}" style="background-color:#ddd"><img src="/_layouts/images/createcontent.gif" class="micon" /><a href="/_layouts/create.aspx" title="{$CreateLabel}"><div class="title"><xsl:value-of select="$CreateLabel" /></div></a></div>
                    <xsl:call-template name="filler">
                        <xsl:with-param name="from" select="$from + 1" />
                        <xsl:with-param name="until" select="$until"/>
                    </xsl:call-template>
                </xsl:when>
            </xsl:choose>
        </xsl:template>
    
    	
    </xsl:stylesheet>
    Wednesday, October 30, 2013 6:40 PM