ProfileManages webcontrol on person.aspx page in SP2013 - sharepoint

I am migrating ProfileManages webcontrol on person.aspx page from MOSS 2007 to 2013. could you please confirm whether this
namespace(Microsoft.SharePoint.Portal.WebControls.ProfileManages)
is existing in SharePoint 2013? Not able to find
Can anyone help? need to add Organizational Hierarchy list to the page.

There is Microsoft.SharePoint.Portal.dll in GAC on SharePoint 2013 server installation and it contains class:
Microsoft.SharePoint.Portal.WebControls.ProfileManages
Path: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.Portal\

Related

Customize a WebPart without "target audiences"

Hy,
I use SharePoint Foundation 2010 and I learned that the "target audiences" are disabled on the Foundation version.
I need to customize a WebPart on a wiki page when A user of a certain group is connected.
Have you an idea ?
Thanks
Sam
Alternatively you can add a new web part page in your SharePoint site
and then add this Documents web part on the page. Once it is done,
Give access to only intended users for this page. Which means control
access at page level.
source
I have found a solution.
I insert JavaScript code in a WebPart in my wiki page from my SharePoint.

Restoring sharepoint 2010 subsite backup in sharepoint 2013 site

I have taken a back up of sharepoint 2010 site using central admin & have .cmp file.
Now I would like to restore the site in a sharepint 2013 site.
ie, I want to import this site to a 2013 subsite.
Is it possible to restore 2010 site back up to 2013 site?
Please share your thoughts.
Regards
Vishnu
please lookup this link as the answer is pointing out, it doesn't work that way. Try to use Move-SPSite to move your site into a seperate database. That way you could upgrade that database to SP2013.
If you're talking about an SPWeb there seems to be an other solution described here.

Custom mini calendar for sharepoint 2010

I need to set up mini calendar for SP 2010. I found this article but it does not work for SP2010. Maybe I've missed something.
I have used a open source web part for SharePoint 2010 mini calendar. See if this works for you.
Url: http://minicalendarwebpart.codeplex.com/

Identify SharePoint Foundation or SharePoint 2010

I've a SharePoint installation in my virtual machine. How do I find whether it is SharePoint Foundation or SharePoint 2010? I've run this command -
Get-SPFarm | Select BuildVersion
and it is giving me the build version as 14.0.4762.1000. How do I identify the version from that?
Okay, should have searched a bit longer. I found it here - https://sharepoint.stackexchange.com/questions/3886/how-to-detect-the-edition-of-sharepoint-2010-installed. We can verify a regedit key to identify the GUID which matches to a SharePoint edition.
There is a page on MSDN http://msdn.microsoft.com/en-us/library/ff721969.aspx using registry access to list installed SharePoint products. However, sometimes you don't have enough permissions to look to the registry, or you want to use SharePoint API only - not to depend on registry paths. (You may need this check in some code that you deploy with a SharePoint solution where the registry access could be an unnecessary requirement.)
Your link to stackexchange above points out also a way using the SPFarm.Products property in PowerShell. This would be a complete code to check the SharePoint Server release in C#:
// B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0 : SharePoint Server 2010 Standard Trial
// 3FDFBCC8-B3E4-4482-91FA-122C6432805C : SharePoint Server 2010 Standard
// 88BED06D-8C6B-4E62-AB01-546D6005FE97 : SharePoint Server 2010 Enterprise Trial
// D5595F62-449B-4061-B0B2-0CBAD410BB51 : SharePoint Server 2010 Enterprise
Guid[] serverGuids = { new Guid("B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0"),
new Guid("3FDFBCC8-B3E4-4482-91FA-122C6432805C"),
new Guid("88BED06D-8C6B-4E62-AB01-546D6005FE97"),
new Guid("D5595F62-449B-4061-B0B2-0CBAD410BB51") };
// If a Server ID cannot be detected we are running on Foundation.
bool isServer = SPFarm.Local.Products.Any(productGuid =>
serverGuids.Contains(productGuid));
--- Ferda
For a customer project based on SharePoint 2013 we had the same problem. For this case we developed a simple Helper, which can be easily adapted for SharePoint 2010. More Informationen about the helper and how to use it can be found here:
http://msscorner.de/2014/06/11/identify-which-sharepoint-2013-edition-is-in-use/
If you wanna use this Helper for SharePoint 2010, you only have to change the SharePoint 2013 SKUs with the SharePoint 2010 SKUs, which are listed above.
I hope this will help you!

How to create page layout in sharepoint 2010 wss? please help

How to create page layout in sharepoint 2010 wss? please help
If you really mean WSS, you cannot create page layouts as this is a part of the Publishing feature available only in MOSS

Resources