Display a document library view on a subsite

Hi
I have SharePoint 2013 On-Premise and I would like to display a document library from the top level site in a subsite.  This subsite will then be saved as a template and used to create other subsites.
For example,
I have a site called Site 1.  In Site 1 there is a document library called doclib1.  Site1 also has a subsite called subsiteA.
I would like to display a view from doclib1 in subsiteA.  SubsiteA will then be used as a template to create subsiteB, subsiteC etc.
I have tried a few things but these have not worked or I am not doing it correctly.  Here is what I have tried
Copied doclib1 code from site1 to subsiteA using SPDesigner. I get the error "List does not exist......"
Used a Content Query Webpart.  I get the error "Something went wrong"
Used a Data view web part.  The complete page was displayed.  I only want the view
Although it looks possible, I do not know how to take this forward.  All I need is to display generic documents on each subsite that can be modified from one location.
Marc Collins www.QGate.co.uk

Hi,
To get the custom field in the search filter.  You need to follow these steps.
Go to the Search schema from the  Manage Service Applications -> Search Service Application in Central Administration
Create a Managed property for your field (Category)
Map the crawl property to the Managed property.
Once managed property created, run the full crawl.
Once full crawl executed, you are able to get your filter property in the search filter.
http://blogs.perficient.com/microsoft/2012/07/sp2013-search-quickie-createmap-a-new-managed-property-powershell/
Even though 2010 article, for 2013 steps are same.
http://johnrossjr.wordpress.com/2011/03/18/creating-custom-managed-properties/
Please mark it answered, if your problem resolved or helpful.

Similar Messages

  • Displaying Document Name With The Summary in a Single Column Using Document Library View.

    Hi All,
    I have a question that relates to SharePoint Document Library Views. I want to view the Documents name with the summary in a single column. Below image shows an example of it. I need this within a SharePoint Document Library. Also I want the height of the
    row to be increased more than the default height. I cannot figure it out how to do that? Could you someone help me to do this. I have inserted the Document Library as an App Part to the page. 
    So could you someone help me to solve this matter?
    Thanks and regards,
    Chiranthaka

    HI Chiranthaka,
    You can create DataView webpart using SPD and then modify the display template according to your need.
    http://deannaschneider.wordpress.com/2012/07/10/item-counts-dvwp-sp2010/
    Hope this will help to solve your problem.
    Best Regards,
    Brij K

  • Displaying Document Name & The Summary in a Single Column Using Document Library View

    Hi All,
    I have a question that relates to SharePoint Document Library Views. I want to view the Documents name with the summary in a single column. Below image shows an example of it. I need this within a SharePoint Document Library. Also I want the height of the row
    to be increased more than the default height. I cannot figure it out how to do that? Could you someone help me to do this. I have inserted the Document Library as an App Part to the page. 
    So could you someone help me to solve this matter?
    Thanks and regards,
    Chiranthaka

    HI Chiranthaka,
    You can create DataView webpart using SPD and then modify the display template according to your need.
    http://deannaschneider.wordpress.com/2012/07/10/item-counts-dvwp-sp2010/
    Hope this will help to solve your problem.
    Best Regards,
    Brij K

  • Display a document library from the top site on a subsite

    I want to display a document library located on the top site in a webpart located on a subsite.
    I've found different solutions in 2010 but none of them have been possible to achive in 2013.
    The only way that i've got it working in 2013 is described in
    this Stackexchange-post, however this solution will give the webpart it's own ribbon inside of the webpart-frame. 
    Im wondering whether it's possible to achieve this in 2013 OOTB.
    Kr, Rasmus

    Depends, you could use the content search web part to dipslay the document lbirary, bit in that case the result is limited to what's already indexed.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Sharepoint 2013 Document library view show version history

    Hello everyone,
    I have a document library view with many folders. Each folder is a procedure and have document attached to it.
    When I add a new version, I would like to show version history for each document contained in the folder. For example:
    There is a folder Procedure 123 which has three files ( File1, File2, and File3). After a week the user the user created new revisions for each document.
    I would like to have a document view with the following information
    File Name   version
    ======  ======
    File 01         0
    File 02         0
    File 03         0
    File 01         1
    File 02         1
    File 03         1
    File 01         2
    File 02         2
    File 03         2
    Thanks for your help.
    Jhonny Marcelo

    This is quite simple, you have to modify the current view (Modify this view) of document library and then you can select version column from available column list (make sure version is enabled). please check below picture for detail.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • Images displaying differently in Library view to Develop - also affecting Exports

    I've run in to a strange problem since the 4.1 upgrade.
    When displayed in the Library view, images are not appearing correctly.  In my case, there is a huge amount more noise in the Library view compared to the Develop view.  This is also affecting Exports.
    I have been unable to find any answers online, and only found one other case of this reported via a You Tube video.
    Any ideas?!
    Many thanks
    Rick

    I am assuming you have a correctly calibrated monitor calibrated using a hardware calibrator. Lightroom sometimes shows the aforementioned problems with canned monitor profiles on windows machines. Now that out of the way:
    I am also having this problem - the library view is closer to the printer output - very frustrating! In dev mode the image is lighter - sometimes appears to be too hot, but in library and during print it is just right. This was not a problem in 3 - what's the fix?
    Have you tried seeing what happens when you soft proof for the paper profile in the Develop module?
    It seem the fit views do not match up...the confusion comes in that it seems the fill views sometimes do, and sometimes do not match. when the images appear different, I've the sense in dev the images are brighter and hotter.
    This can happen if your image is very noisy or has a lot of high frequency detail. The sharpening preview in fit view that is applied in Develop tends to brighten images with lots of noise or detail. It also happens when you are applying a lot of color noise reduction and have a lot of colored detail. SInce Lightroom cannot really show you the result of this correctly but for when looking at 1:1, this results in the Fit preview showing more color saturation than there really is.

  • Show custom EditForm from a specific document library view

    Hello,
    I've created a custom EditForm that I would like to show when the user clicks the "<label for="ShouldDisplayEdit">Edit" (link to edit item)</label> icon; however I just want to show this EditForm for a specific view.
    I have a listview webpart (actually an "app") for the library and this specific view set on a page. However, it opens the default edit form instead of the custom one. (StatusEdit.aspx). I don't want to set StatusEdit.aspx as the default, as it
    has fewer fields than the default edit form.
    I am able to hide fields conditionally using SPClientTemplates.TemplateManager.RegisterTemplateOverrides, but it's been a lot of work to try to make it match the requirements I have. I'd really like to have the custom edit form work if it's possible.
    Thank you for your help!
    Best Regards,
    Kevin Worthington

    Hi,
    According to your description, my understanding is that you want to specify the custom EditForm for a specific document library view.
    We can change the link to edit item button url using Jquery to achieve it.
    Here is a code snippet for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    function changeurl()
    $(' ms-itmHoverEnabled ms-itmhover ms-droppable).find('ms-vb-lastCell ms-cellstyle ms-vb-icon ms-vb-lastCell').attr(‘href’,”http://new url”);
    </script>
    Here are some detailed articles for your reference:
    http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery
    http://stackoverflow.com/questions/8729830/jquery-find-td-of-tr-with-class-and-make-changes-for-a-telerik-mvc-grid
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Set Document library view as welcome page

    Hi
    I want to set my Document library view as welcome page of my SharePoint  site 2013.
    How can I achieve this.
    Regards,
    Siva.

    Hi,
    According to your description, my understanding is that you want to change the welcome page to the document library view page in SharePoint 2013 site.
    You can use SharePoint designer to find the view page in “All files” and then set the document library view page as welcome page .
    Here is a detailed article for your reference:
    http://techtrainingnotes.blogspot.com/2011/06/sharepoint-how-to-change-default-home.html            
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Set the horizontal scroll bar for the OOTb document library view

    hi all,
     Am facing an issue in my sp portal.We have designed and developed the portal with OOTB document library views for site columns also. Going to enable the doc lib view. but  we have some  35 columns in eeacha nd every document
    library within our sub site. But if an end user wants to see the last column then he needs to scroll. but, since  then my master page has fixed width, the top corner will be seen as blank. would like to know how can we set horizontal scrolling
    in this doc lib view .
    Das

    Hi,
    According to your description, my understanding is that you want to set the horizontal scroll bar for the document library when the last column postion exceed the fixed width.
    I suggest you can try to use Jquery to set the width attribute of the menu bar dynamically if the document library width exceeded. You can add the Jquery or CSS style using SharePoint Designer under the PlaceHolderMain tag of document
    library page. Also, you need to find the div id in your environment using Internet Explorer.
    More information:
    http://sharepointpromag.com/sharepoint-development/sharepoint-branding-101-branding-master-pages
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Colunms display in document Library

    Hi All,
    Is there any way to add a column to a document library which displays " Last Modified By " (metadata) from MS Office files just like the " Author " (metadata) column?
    I'm trying to add a column to a document library in SP 2010 which would view the " Last Modified By " from " Related People "
    field of MS Office files (Word, Excel, Power Point and Access). The  " Modified By " column in SP 2010 only displays the last person's name who uploaded the file and not neccessary modified it.
    Cheers,
    Brad

    Hi Brad,
    According to your description, my understanding is that you want to add a column in SharePoint library to store the user who last modified the documents.
    Per my knowledge, we cannot add a column to read the Last Modified By of the document by OOB way when uploading the document to SharePoint.
    The Modified By column in SharePoint will store the user who last modifies the document after the document is uploaded to the library. When a user modifies the document which has been uploaded to SharePoint, the value of the Modified By column will change
    to the user.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Is this a bug? Document Library view has the wrong 'Show in Folders' option when created from custom site template.

    I have a site with the default document library.
    I add views to the library, some ask for the items to be shown in folders, some not.
    I create a site template via the SharePoint UI.
    I create a new site.
    In the new site, the library exists, the views exist, but all the views are set to show the items in folders.
    Does anyone else have this problem? Is there a patch or any workaround?

    Hi  ,
    According to your description, my understanding is that view property "show all items without folders" is not preserved in packaging and is lost after we create a site using the saved site template.
    For your issue, I can reproduce your scenario in my environment. It should be caused by the scope attribute is missing. For a workaround, you can try to crack the site template wsp, add the missing scope
    attribute to the View schema in the list schema.xml.
    Also, I recommend you open up a ticket for deep investigation.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Document Library view selection menu missing

    Hi,
    I am encountering a strange issue with the SP2013 document library web part. I included a screenshot (see link) where you can see that the web part of the doc lib doesn't contain a view selector menu at the right side. This is only available after
    you go to the document library system page by clicking on the title of the document library. Does anyone have experience with this issue? Its very frustrating because the customer wants to see all the views at the home page of the site.  Thanks for the
    help.
    http://1drv.ms/1k5rSjk
    Blog: www.jasperoosterveld.com Twitter: @SharePTJasper

    You can still get to those views using the ellipses next to the view name can't you?
    It's probably related to the way that SharePont handles multiple web parts on a page. Rather than handle item references for multiple web parts they've been stripped out.

  • Document library view: Group by a column with multiple values

    I have a document library which has a managed metadata column.
    I would like to create a view which groups the documents by this managed metadata column.
    The managed metadata column can have multiple values.
    I know that this is not possible with SharePoint's group by, since it only accepts those columns which can have only one single value.
    But is this possible to accomplish by some other means, e.g. Content query web part? Or is there perhaps a 3rd party solution to this?
    Is it possible to change the group by settings somehow to allow Group by to function with columns with multiple values? <- this may be far fetched...

    Hi Pekch,
    I'm assuming you have VS2010 to build the custom web part. From there you will need to figure out the following:
    Get a SPList object for the Document Library (See below for code example)
    Loop through all the documents in the SPList object 
    If you have audience targetting enabled, then you'll need to determine if the user has access to the document by checking the "Target_x0020_Audiences" column)
    As you also want to group by metadata, you'll need to populate 2 datatables (one table with a column containing unique metadata values and another table with a metadata column and other document related columns).  Link these two tables via a dataset
    relation.
    Set the dataset as the datasource for a repeater, add in some css and javascript for the group expand/collaspe and it should be close to what you need.
    This will be a time consuming task if you don't know where to start or have problems figuring out how to perform a certain operation.  So you may want to determine if the functionality you want is required or just a "nice to have".  Good
    luck and if I have some spare time, I'll create a blog post outlining how to do all the above.
    I got the below code from a sharepoint blog sometime in the past and you can use it to retrieve a list.
    You can use it like this: GetListByUrl(http://servername/Shared%20Documents/Forms/AllItems.aspx)
    using    Microsoft.SharePoint;
    public SPList GetListByUrl(string listURL)
    SPList list = null;
    try
    using (SPSite site = new SPSite(listURL))
    if (site != null)
    // Strip off the site url, leaving the rest
    // We'll use this to open the web
    string webUrl = listURL.Substring(site.Url.Length);
    // Strip off anything after /forms/
    int formsPos = webUrl.IndexOf("/forms/", 0, StringComparison.InvariantCultureIgnoreCase);
    if (formsPos >= 0)
    webUrl = webUrl.Substring(0, webUrl.LastIndexOf('/', formsPos));
    // Strip off anything after /lists/
    int listPos = webUrl.IndexOf("/lists/", 0, StringComparison.InvariantCultureIgnoreCase);
    if (listPos >= 0)
    // Must be a custom list
    // Strip off anything after /lists/
    webUrl = webUrl.Substring(0, webUrl.LastIndexOf('/', listPos));
    else
    // No lists, must be a document library.
    // Strip off the document library name
    webUrl = webUrl.Substring(0, webUrl.LastIndexOf('/'));
    // Get the web site
    using (SPWeb web = site.OpenWeb(webUrl))
    if (web != null)
    // Initialize the web (avoids COM exceptions)
    string title = web.Title;
    // Strip off the relative list Url
    // Form the full path to the list
    //string relativelistURL = listURL.Substring(web.Url.Length);
    //string url = SPUrlUtility.CombineUrl(web.Url, relativelistURL);
    // Get the list
    list = web.GetList(listURL);
    catch { }
    return list;

  • How to enable more documents link in Document library view on webpart page

    hi,
    I had document library having more then 100 items, I limited the items to display as 5. I added this document library to my web part page. Now i wan to include "More Documents..." link here but I was unable to find any such option in
    web part properties.. Can any one suggest on this. How to enable this option.
    Thanks & Regards, Krishna

    Hi Krishna,
    You can add the following code in the content query template in the ItemStyle.xsl:
    <xsl:if test="count(following-sibling::*)=0">
    <div class="readMore" style="float:right">
    <p>
    <a title="More" href="/Lists/Team%20Caledar/calendar.aspx">More</a></p></div>
                        <xsl:if test="$ItemsHaveStreams = 'True'">
           <xsl:attribute name="onclick">
            <xsl:value-of select="@OnClickForWebRendering"/>
           </xsl:attribute>
          </xsl:if>
    Thanks!

  • How to add folder name to document library view

    Using Project Server 2010.
    We have a set of standard folders on each of our project sites for Requirements, Development, Testing, etc.  Currently, we display this library like you would see in File Explorer - you see a list of folders at the top, double-click on a folder
    to drill down, etc.
    I want to display these same documents as a straight list of all documents - not grouped into folders - but with the folder name displayed next to it (sort of like an attribute).  I can create the list view easily by selecting the "Show all items
    without folders" option in the view settings; however, the containing folder name is not available as a column name.
    Is this possible?

    I do not think there is an out of the box way to do this.
    The immediate solution that comes to mind is using a workflow, that runs everytime  a document is uploaded/item created, which may be too much for your scenario.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

Maybe you are looking for

  • HT4097 itunes has stopped working ipad 2

    something happen suddenly to my ipad2 32gb. the screen is black, but the ipad is on ! i can't see nothing on the screen, the screen is all black i thought that if i will restore it everything will fix. i tried to restore it with itunes, but i can't r

  • CS5 64bit, W7 64 bit, First print not profiled

    When I send a print to my Epson 3800, the first time I try it the print is ugly and looks un- or incorrectly- profiled.  Idf I resend the same image without touching the print dialogue settings (they're the same as the first print) the print looks gr

  • Time zone location services

    On my iPhone 4 running iOS 6, the time does not adjust for the new time zone. I am in Italy but my clock still shows California time. I have location services "on" in settings. What's up?

  • I am unable to use slide to unlock on 4s

    Hi, I am unable to use "slide to unlock" my iphone 4s. Only thing i can use is siri. apart from siri none of the functions can be used. I cant answer any calls. Please help.

  • Accidently deleted music wnat to know how to get it back

    while i was in london i added songs to my ipod nano from my cousins library. it worked fine and when i got home i wanted to add the songs to my library. but i accidently clicked "automatically update all songs and playlists" and lost the recently add