Cross-Site Display Web Part in SharePoint 2010

Every document library has its default web part called List view web part. So when we create a Document Library or list on a site, by default a
List View Web Part is created. We can see that when we try to Insert a Web Part on a site. For instance, for
Division Level Financial Records Document Library, the list view web part will be called, “Division Level Financial Records.”
But we will only see this web part when we actually create a library or list on the current site itself.
I would like to learn about Cross-Site Display Web Part. So I can have a document Library in one site and can retrieve, view, and upload records from a different site within the same site collection. I know Bamboo Solutions offers a web part that can
do this. Any other? Any sample code to design a custom web part?
Thanks a lot in advance!
Mayank

Hello Mayank,
If you want to display content within a site collection then you can also use CQWP and dataview webpart but if you want to show content in different site collection then you have to create custom webpart.
You can also try with codeplex webpart:
http://crosssiteviewer.codeplex.com/
For creating own webpart, please look at here:
http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • Way to use Visual Web part in sharepoint 2010 without using/installing third party tools

    I want to know the way to use Visual Web part in sharepoint 2010 without using/installing third party tools.
    Please provide me a link where i can actually know how it is done.

    + to _eNo_,
    Visual Studio 2010 has support for visual webpart, you can find that under Visual C# node in the Installed Templates section (if your preferred language is C#)
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Custom Login Web Part In SharePoint 2010 Forms Based

    Hi ,
    Im trying to make Custom Login Web Part In SharePoint 2010 Forms Based , all membership configration is done . 
    my question is why (Login1.username , Login1.password ) give this error : 
     login1 does not exist in the current context
    protected
    void
    Login1_Authenticate(object
    sender, AuthenticateEventArgs e)
    02        {
    03            string
    membership = "MembershipProvider";
    04            string
    role = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(new
    Uri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if
    (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(new
    Uri(SPContext.Current.Web.Url), membership, role,
    Login1.UserName,
    Login1.Password);

    Error 1 No overload for method 'SecurityTokenForFormsAuthentication' takes 3 arguments
    Error 2 The name Wss doesnot exisit in current context 
    Can anyone give sugeestion please 
    cant recitfy this error 
    protected void Login1_Authenticate(object sender,
    AuthenticateEventArgs e)
    02        {
    03            string membership
    = "MembershipProvider";
    04            string role
    = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(newUri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(newUri(SPContext.Current.Web.Url),
    membership, role,
    Login1.UserName,
    Login1.Password);

  • Embed metatag navigation with API or Web Part in SharePoint 2010 web site or site navigation

    Is it possible to embedd the metadata navigation of a dokument libary via API or webpart flexible and unfolded into SharePoint 2010 site navigation or in an other area of the SharePoint Webseite?

    Hello Mayank,
    If you want to display content within a site collection then you can also use CQWP and dataview webpart but if you want to show content in different site collection then you have to create custom webpart.
    You can also try with codeplex webpart:
    http://crosssiteviewer.codeplex.com/
    For creating own webpart, please look at here:
    http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to display names without file extension in Content Query Web Part in SharePoint 2010

    I try to display names in Content Query Web Part  but it shows file extension. I cannot find a way in CQWP editor that can exclude file extension.  Is there a way to display names excluding file extensions thru settings in the CQWP editor?
    I have to edit the code in SharePoint Designer, right?
    Thanks in advance for any tips!

    In the file ContentQueryMain you have already a function to get the file without extension.
    So we just can use this:
    <xsl:call-template name="OuterTemplate.GetFileNameWithoutExtension">
    <xsl:with-param name="input" select="$DisplayTitle" />
    </xsl:call-template>

  • Duplicate groups in Content Query Web Part in SharePoint 2010

    Hello,
    I'm facing one weird issue in CQWP. I've a document library in SharePoint 2010 site where I have 2 columns - Title and Document Type. The column 'Document Type' is a Single line of Text column and mandatory. Users have entered bunch of documents in this
    library by populating the metadata.
    On one wiki page I have a CQWP where I'm showing the documents of this library grouped by 'Document Type'. The problem I am facing is that some documents are showing in different columns even though their 'Document Type' value is exactly same. Please see
    below screenshot:
    You can see that the documents under 'Industry Group Publications' are showing in 3 different columns, why?
    My CQWP settings are:
    Presentation: Number of columns to be shown: 5 (I've changed it to 3 also, but the same result)
    Group items by: Document Type and sort order is Ascending (I've tried changing sort order as well, same result)
    Limit number of items to display: This checkbox is unchecked (unlimited)
    It's not just one case. I've seen this issue on other sites as well where same 'Group by' column value is being shown in different column rather than under same column while values are EXACTLY same.
    Has anybody else faced this issue? What's the reason and solution to this problem?
    Thanks in advance!
    --Ashish

    Hi Ashish,
    I tried to reproduce the issue in my environment. I created a content query web part displaying one library documents. The library has two columns, title and document type. However, document type is a single text column you need to manually write content
    into.
    I set the web part to group items by document type and left other settings to be by default. It worked as expected. I’d like to know if there is any difference from your situation, especially for the document type column so I can reproduce the issue from
    my side.
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Cannot complete successful installation of Yammer 3.1.4 Web part on SharePoint 2010 Standard

    I have installed Yammer server component successfully.
    I have inserted the Yammer Web Part (Ver 3.1.4) onto a page in SharePoint 2010.
    However, when in view the page the place on the page where the web part should how up has an error:
    System Exception: Unable to load web part.
    When I edit the page and look at the web part, it looks normal, showing the feed types, but when I select a feed, like "Company Feed", I get a popup window that says "To save your change before continuing, click OK. To continue without saving,
    select CANCEL.

    Hi Larry,
    According to your description, the Yammer web part doesn't load when you used it in a page.
    You must configure the web part to point to a network. Edit the page, select the desired feed, and choose a network. Then, Save the page.
    More information, please refer to the links:
    http://blogs.msdn.com/b/spses/archive/2014/07/06/sharepoint-2010-amp-yammer-step-by-step-guide.aspx (common error 4)
    https://about.yammer.com/success/wp-content/uploads/sites/13/Yammer-For-SharePoint-2010-FAQs.pdf
    In the above two articles, there are some another troubleshootings about Yammer Web Part, please check if they are useful.
    Best Regards,
    Wendy
    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]
    Wendy Li
    TechNet Community Support

  • How to Resolve Can not Display Web part error using CQWP and a blog

    I have  a SharePoint 2010 site with a home page that has a  CQWP (content Query Web Part) tied to the most recent blog of blog site with a list of blogs.  Randomly, some clients will experience a "Unable to display
    a web part". Our client machines are set up with Roaming profiles that are PKI enabled.  Some users are always able to see the resulting blog on the home page, while other users, experience sporadic ability to see the blog ----getting a
    "Unable to display web part".  Also a client can be on one machine and get the error and then log on to another machine and not get the error. Its also seems that when a new blog is added to the blog list this is when the
    ability to see the blog on the home page may come up as an error.  Our setup is simple:   show items= list/posts, List type=Posts, Content Type Group= List Content Type, Content type=Posts,  no audience targeting, not additonal filters,
    group items by = None Descending,  #columns =1, sort items by =published -descending   Limit # display items = 1,  Gropup style = Default,  itemstyle= image on left,  yes play media links,  Fields to display = titlt
    and Description (body)
     What kind of things could cause the random behavior?  

    Hi,
    According to your description, my understanding is that the error occurred occasionally with the Content Query web part.
    I tested the same scenario in my environment, and the web part worked fine.
    I recommend to verify the things below:
    Did this issue occur with all the Content Query web part? I recommend to create a new Content Query web part to see if the issue still occurs.
    Did this issue occur with all the users who have permission to view the web part?
    Deactivate the Publish feature and then re-activate it to see if the issue still occurs.
    Check the ULS log for detailed error message.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Status of DataView Web Part in SharePoint 2013

    I hope this is a simple question but I'm stumped. What is the status of the DataView Web Part in SharePoint 2013? I am working on a migration of our site from SP 2010 to SP 2013. We previously had a DataView Web Part which is used widely on our site. It
    is not showing up and the error is "Type type could not be found or it is not registered as safe." When I try to add a new copy of this web part, I get the message "The type Microsoft.SharePoint.WebPartPages.DataViewWebPart....PublicKeyToen=71e9bce111e9429c"
    could not be found or it is not registered as safe.
    I'm not the Farm Admin is this case, so my question is whether the web.config needs to be edited to make this usable, or something else perhaps. Or am I simply out of luck using this in SharePoint 2013.
    Any help is appreciated!

    I suspect you will need to compare the web.config files on the new 2013 system to the ones on the old 2010 system and evaluate the differences.  The safecontrol entry is in my default 2013 environment.  If its not in yours it will need to be added.
     For any web part to work you need three things:
    A safe control entry in the web.config
    A .dll that contains the code that generates the html displayed when the web part is rendered.
    A .dwp or .webpart file in the web part gallery that contains info about what class and .dll to use
    #3 should be in the content database you are migrating.  YOu'll need to verify that #1 & #2 exist.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Move A Site From Moss 2007 To Sharepoint 2010

    i have a site in sharepoint 2007 and i want to move it to a sharepoint 2010 server
    not too sure what is the best method to do this ?
    thanks

    I landed in this thread because I had a similar need to Muthuvel's. I am wanting to bring over just one subsite out of several.  My database in 2007 is around 7GB, and all I really want is just one site out of the many in it. 
    Ahmed's Ammar's steps were just right, and worked well for me in order to get the complete 7GB database over to SharePoint 2010, and later export\import that single site I was looking for.
    For Muthuvel, here are my updated steps, starting with Ahmed's text (sorry for plagiarizing!).  Steps 7 and 9 are for subsites.  See links at the bottom for dealing with site collections.
    1) Find the content Database;  These are listed under Central Admin->Application Management->Site Collection List
    2) Backup the content database. Just doing a backup in SQL Server Management studio.
    3) Restore content database to the new server, I mean the DB server for your SP2010
    Copy the BAK file to new server. Create an empty DB in Management Studio, restore from backup, you may need to change an option in the "options" tab of the restore dialog to get it to work. (Overwrite db).
    4) Create a new Web App on SharePoint 2010
    For Step 4, I created a new Web App, choosing to create it with a suggested port number, such as 4072.  This was a temporary web application that I ended up deleting later.
    5) Remove Content Database from the new web app.
    I didn't find that you neeed to remove the Content Database first.  You can add the content database by Central Admin or by STSADM, or by Powershell. 
    Central Admin would be Application Management > Web Applications > Manage Content DAtabases > Set the web application to your newly created web app > Add Content Database > specify the name of the database you just restored
    STSADM is as Ahmed gave: 
    Now use STSADM to add restored DB to this web app
    c:\program files\common files\microsoft shared\web server extentions\14\bin on new server is where you can find the STSADM.
    run this command from there. Which will upgrade the content db to 2010?
    stsadm -o addcontentdb -url http://yourwebapp:port -databasename yourcontentdb -databaseserver yoursqlserver
    Powershell would be this command below.  Be sure to run the "SharePoint 2010 Management Powershell" console, found under Programs\SharePoint 2010 Products.  If you run just regular powershell this won't work. 
    Mount-SPContentDatabase "MyDatabase" -DatabaseServer "MyServer" -WebApplication
    http://sitename:port
    6) Run ISSRESET from command prompt
    I'm not sure this was necessary, but I did it anyway.
    NOW, the rest of the part about getting that subsite you want. 
    7)  Export the subsite.  I did this with Powershell.
    Export-SPWeb http://sitename:port/sites/subsitename –Path "subsitename.cmp"
    8)  Create a new site for you to import this subsite into, in the Web Application where you want it to go.  This would be done with the regular Site Actions > New Site command.  You can also do it from Powershell, but that requires knowing
    site templates by name, something I'm just learning myself.  The other thing here is that you have to create the subsite using the same template as the site you just exported.  So if that was a Team site, be sure to use a team site when you create
    this new area.
    9)  Import the subsite to where you want it to land permanently. Here I'm saying port 80 because that's the requirement Muthuvel mentioned.
    Import-SPWeb http://sitename:80 –Path "subsitename.cmp" -Overwrite
    10) Even after things say they are done on the server, the site may take an extra minute or two to come up when testing from a client.  Give it a little time. Once it comes up, somehow I found a way to change the visual appearance from the old SharePoint
    2007 to SharePoint 2010, but now that I flipped that switch, I can't find the option again.  So I'm sorry that I am not documenting that here.
    11) Delete that temporary web app you created in step 4.  Again you can do this with Central Admin or Powershell.  Here's the Central Admin way:
    Central Admin would be Application Management > Web Applications > Manage Web Applications, land on the temporary web app, click Delete.  Choose Yes to deleting the content database and the IIS web site. 
    GROAN!! I'm sorry, I just wrote all this out and realized Muthuvel was asking about a site collection, not a subsite.  Then for Steps 7 and 9 you'd want to use
    Backup-SPSite 
    http://technet.microsoft.com/en-us/library/ee748617.aspx
    and
    Restore-SPSite 
    http://technet.microsoft.com/en-us/library/ee748655.aspx
    Good luck, hope someone else finds this as useful as I did!
    Lady_M MCITP SharePoint 2010

  • Displaying Access Data in SharePoint 2010/2013

    We have an old application. The website is designed using Front Page that retrieves data from an Access Database. The web site has a few fields. The user enters the information and hits the Submit Button. The application runs a SQL query and fetches
    data from Access DB. Data then shows up in a Grid.
    I want to create this solution in SharePoint. Still not sure whether the data should reside in SharePoint or in Access.
    What is the best approach?
    I should transfer data into SharePoint from Access. Then prompt the user to enter some data.
    Would InfoPath be a good choice?
    If I leave the data in Access, is Data View Web Part the preferred way to get data?
    Thanks so much!
    Mayank

    Hi Mayank,
    According to your description, my understanding is that you want to dispaly Access Database data in SharePoint.
    If your Access Database is a web database, you can publlish your Access database to SharePoint with the following method:
    http://blogs.technet.com/b/hub/archive/2010/11/08/publish-your-access-database-to-sharepoint.aspx
    https://support.office.com/en-in/article/Edit-or-publish-a-web-database-on-SharePoint-2010-af230551-9801-495d-87b0-75eed01073ac
    If your Access Database is a desktop database, you can publish your Access database to SharePoint with the following method:
    https://www.youtube.com/watch?v=cutjdCTdLQE
    Best Regards,
    Eric
    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]

  • Office Web Apps - Preview Sharepoint 2010 documents in Sharepoint 2013 Search Results...again

    Hi,
    I found a thread in this forum With an answere to a similiar question here:
    http://social.technet.microsoft.com/Forums/en-US/28bc1e27-4a65-4c61-9b3e-cb9dad17f779/office-web-apps-preview-sharepoint-2010-documents-in-sharepoint-2013-search-results?forum=sharepointsearch&prof=required
    ...With the answere:
    "OWA uses an access token to talk to SharePoint 2013.  It cannot use this when talking to 2010.  In order to work with 2010, you have to create a custom display template that converts the file url to an openurl link. "
    BUT...
    may anyone give more information how to do this?
    Links to articles? Links to description and samples?
    jik

    Hi,
    According to your description, my understanding is that you want to preview documents from SharePoint 2010 in search results in SharePoint 2013.
    Per my knowledge, the Office Web Apps is configured to work with SharePoint 2013, so it will not work with documents in SharePoint 2010.
    I recommend to configure Office Web Apps to work with SharePoint 2010
    and make sure that documents can be previewed in SharePoint 2010 using Office Web Apps to see if the documents can be previewed in SharePoint 2013 search result.
    http://technet.microsoft.com/en-us/library/ff431687(v=office.14).aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to Export Team Site Site Pages to .aspx and for subsequent upload to other Team Site and Web Part Customisation included. (Powershell)

    Hi guys,
    Can i please technically know how to export an .aspx file (in Site Pages library of a team site) to local file?
    Basically, SharePoint Designer has this feature "Export File"
    i Need exactly the same feature that can be done in Powershell
    I tried the following
    $web = get-spweb "MY URL"
    $folder = $web.GetFolder("SitePages")
    $files = $folder.files
    #trying to download the first file
    [System.IO.File]::WriteAllBytes("C:\\LocalPath",$files[0].OpenRead(),$true)
    The file exported via this method is Clean HTML without the Web Part Customisation!
    I NEED the web part customisation in the exported files.
    Sample downloaded via above script
    <!-- Cropping -->
    <tr>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:LeftColumn" ID="LeftColumn" FrameType="TitleBarOnly"/> </td>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:MiddleColumn" ID="MiddleColumn" FrameType="TitleBarOnly"/> </td>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:RightColumn" ID="RightColumn" FrameType="TitleBarOnly"/> </td>
    </tr>
    <!-- Cropping -->
    I tried using WebRequest, it returns the  End HTML, which is not working too.
    Please if anyone has done this? Or is there any SharePoint Designer Developer here and is willing to share how to perform the export in SharePoint Designer via Powershell? API available?
    Much Appreciated!
    Cheng

    Hi,
    According to your post, my understanding is that you wanted to export Team Site Site Pages to .aspx and for subsequent uploaded to other Team Site and Web Part Customisation included using Powershell.
    You can export a specific file or object from the Export-SPWeb context.
    Export-SPWeb -identity "http://sharepoint" -ItemUrl "/default.aspx"  -Path "c:\default.aspx"
    Import-SPWeb -identity "http://sharepoint" -Path "C:\default.aspx"
    Here is a similar thread for you to take a look at:
    http://sharepoint.stackexchange.com/questions/56664/how-to-download-a-sharepoint-aspx-page-from-server-using-powershell
    More information:
    http://technet.microsoft.com/en-us/library/ee428301(v=office.14).aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Get the current context of the site where web-part is added in the same site collection

    Hi,
    I'm creating a visual web-part in SharePoint 2013 using server object model (can't user COM as the code will run on the same server) to get all the members of "Members" group of the site/web wherever this web-part
    will be added (in the same site-collection), so it will take the context of the site wherever it is added.
    For Eg: I have a site collection "http://<Server_name>/sites/Finance" OR "http://<Server_name>/sites/Finance/Microsoft" OR some other subsite. I have used SPContext.Current property to get the current context
    , but no success :( . 
    I tried in SPSite: SPContext.Current.Site ; new SPSite(SPContext.Current.Web.URL) and many other combinations with SPSite.
    in SPWeb : site.openweb()
    But I'm always getting the URL as "http://<Server_name>/" and not the context where the web-part is added in the same site collection.
    Vipul Jain

    Hi Bjoern,
    Thanks for the reply. I'm able to get the access of members group through API's. Just wanted to know about the context in SPSite & SPWeb. As you suggested , is there no need to use SPSite ?
    using (SPWeb web = SPContext.Current.Web)
                            SPGroup membersGroup = web.Groups[web.Name + " Members"];                     
                            SPUserCollection lstMembers = web.Groups[web.Name + " Members"].Users;
                            foreach (SPUser member in lstMembers)
                                // add all the group users to the list                            
                                users.Add(member.Name);
    It's not working 
    Vipul Jain

  • Can i use Report viewer web part in SharePoint 2013 app to show SSRS reports?

    Can i use Report viewer web part in SharePoint 2013 app to show SSRS reports?

    SharePoint app you mean a simple sharePoint 2013 application like site, team site etc, or do you mean an App (the new feature like webPart).
    To add a SSRS Report viewver web part follow these steps
    1. Edit the page
    2. Choose insert a webpart
    3.Select SQL server Reporting -> SQL Server Reporting Services Report Viewer webpart
    4. Configure the webpart to show your .rdl files.
    (See the img below. Plz mark as answered if it helps).

Maybe you are looking for

  • How to add new tab screen in transaction BP

    Hi,    Please let me know How to add new tab screen in transaction ukm_BP. Is there any SPRO configuration needed for this? Thanks, Debi.

  • 4 months of iPhotos lost

    I have a 2010 27 inch iMac with I am pretty sure i11. Last night iPhoto would not open, and finally it opened again. However, all photos from April to August 2012 are missing, along with a couple of photo albums I made. Is there any way to find them?

  • PLEASE HELP COMPUTER IDIOT ASAP

    I clicked an adobe update (assuming it was the right thing to do) and NOW MY FLASH PLAYER IS BROKEN. My youtube videos say "plug-in failure". I have tried re-installing Adobe multiple times , with re-starts in between. I even used apptrap to "complet

  • Global Workbook Template

    Hi All How to create a global workbook template. Can anyone give a real time scenario on this..... (version BI 7.0) Regards Naga

  • ORA-01422: -LISTAGG function

    HI, I'm using listagg function in my query which returns only one row if I run the query butwhich i create a procedure with same query and select into statement,it showing error-exact fetch returns more than.. error... Please help me in resolving thi