Tag Info

Hot answers tagged

8

Subsites are incredibly useful in all the following scenarios This site has a different function from the main site. Assuming you are talking about an internal portal, generally you would want your helpdesk and your social committees to have their own subsite each. Because their information will almost never be relevant to each other, and they are both ...


6

Yes, sitemanager.aspx looks more SP2007-like, but you cannot specify the default master page because it does not use a master page at all. If you look at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\SiteManager.aspx you will see no master page in the Page directive and no ContentPlaceHolders on the page.


6

The Site Definitions are not examined when rendering a page but during provisioning. For a detailed explanation of the rendering see the link provided by @Moss Farmer, but let me give a shorter version here. Application pages (from _layouts) Application pages are just ordinary ASP.NET pages which are rendered from a virtual directory. Site pages The site ...


5

Ok, consider we have this environment: We have farm-level WSP file (this also could be sandboxed in this situation, but for clarity, let's consider it is a farm one). This WSP contains some lists and libraries definitions/instances, and also some visual webparts. Also, WSP file contains at least one feature in it. This WSP is added into your farm, deployed ...


5

Expanding on what others have written above, in SharePoint 2010 and 2013 it depends on the type of authentication you've setup your Web Application with. For classic mode you only have windows authentication so NT AUTHORITY\authenticated users will grant access to anyone that can authenticate with a valid windows credential. For claims mode you'll have at ...


5

Web web = clientContext.Web; var subWebInfo = new WebCreationInformation { Description = "", Language = 1033, Title = "Sub Site", Url = "subsite", UseSamePermissionsAsParentSite = true, WebTemplate = "STS#0" }; Web subWeb = web.Webs.Add(subWebInfo); clientContext.Load(subWeb); clientContext.ExecuteQuery(); Works also without ...


4

I just created a fresh site collection with a standard team site template (that has a Shared Documents library by default ). I used the following code and got the results listed below: $web = Get-SPWeb http://spdevsp01/sites/test $lists = $web.lists foreach ($list in $lists) { if ( $list.BaseType -eq 'DocumentLibrary') { write-host $list.title ...


4

You can find the correct template and use it in code like this (templateName is the title of your saved template, locale is the locale ID of the template): // Find correct template SPWebTemplateCollection templates = SPContext.Current.Site.GetWebTemplates(Convert.ToUInt32(locale)); // or GetAvailableWebTemplates or GetCustomWebTemplates SPWebTemplate ...


4

From a technical point they're exactly the same. The only difference is the way users think of site collections beneath each of them. So it's common to use "/teams/" for site collections for individual teams and "/sites/" for everything else (in SharePoint Online, On-Premises often create their own) "/sites/" and "/teams/" is what is called managed paths in ...


3

To clarify SharePoint's permission behaviour: Sites collections contain the people (users, AD groups) and groups (SharePoint groups) that are available for all sites within the site collection. The idea is a site collection contains sites that have some overlap in user membership or business function. They are a collection of like-minded sites (in some ...


3

The OOTB master page uses the ~site token as the URL to surround the site logo, just change this to ~sitecollection/ (the trailing slash is necessary) or even / depending on your particular requirements. In v4.master the section to change is at line 297 and should wind up looking something like: <SharePoint:SPLinkButton runat="server" ...


3

SPSite.RootWeb is the object you're after, in server side code ( http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.rootweb.aspx). SP.Site.get_rootWeb() in client object model code ( http://msdn.microsoft.com/en-us/library/ee552834.aspx).


3

There is no easy way to do it :) First, take the back up your SharePoint Content database (which contains the site) and restore it to my SharePoint 2010 DB server. But, before you take db back up, your MOSS 2007 must be on SP2 1) Find the content Database; These are listed under Central Admin->Application Management->Site Collection List 2) Backup the ...


3

Try using Check Permissions in Permissions Management Page at List level and Item Level. Try checking the two users and another who can see the items to ensure they all have the same permissions. You can also look what values has the list item-level permissions at List Configuration -> Advanced settings.


3

Not really, if the user is going to be creating and managing permissions, then that comes with the territory. Full Control grants this right so being listed as such gives them the trust that the permissions changes they are doing are desirable. If you're really that concerned, then give her Contribute or Design rights on the site and manage the security ...


3

The LCID number is wrong (the fourth parameter), it should be one of this list instead than 123: http://msdn.microsoft.com/es-es/goglobal/bb964664.aspx The US-English is 1033. Remember also that if you try to create sites with a non administrator user you should use RunWithElevatedPrivileges method.


3

Instead of "Sfera.wsp", it should be the name of the Template. Now, the name of the Template is in the following format: "{FeatureID}#TemplateTitle" Where FeatureID is the Id of the feature which is deploying your site template and TemplateTitle is the specified Title of the Template. Example: SPWeb newSite = site.AllWebs.Add("RELATIVE", "TITOLO", ...


3

You need to create manifest.xml: <?xml version="1.0"?> <Solution SolutionId="876a627d-7944-4c3e-a17f-d347e9234517" xmlns="http://schemas.microsoft.com/sharepoint/"> <SiteDefinitionManifests> <SiteDefinitionManifest Location="MySiteDef"> <WebTempFile Location="1033\XML\webtempMySiteDef.xml" /> ...


3

For a single site (SPWeb) try using the content migration APIs. http://msdn.microsoft.com/en-us/library/ms453426.aspx SPExportObject exportObject = new SPExportObject(); and i've been successful with these settings: SPExportSettings settings = new SPExportSettings(); settings.FileCompression = false; ...


3

The answer depends on what you mean by having a site collection within another site collection. The main purpose of site collections are they are completely separate, which be definition means that one cannot be inside another. BUT thats from SharePoints point of view. You can set up managed paths such that you can create site collections which from an ...


3

If you really really want to duplicate your SharePoint data twice then you can do something like this, private IEnumerable<SPFile> AddDocuments() { using(SPSite site = new site(URL Of Your Parent Site goes here)) using(SPWeb web = site.OpenWeb()) { foreach(SPWeb subweb in web.Webs) { foreach(SPList oList in ...


3

If you want to have a specific user be able to delete users posts then you will need to give them Manage Social Data permissions on your User Profile Service application. Go to Service Applications - highlight the user profile service and click Administrators from the ribbon. Add a user account and select Manage Social Data from the permissions list. The ...


2

Open the feature that includes the project item and expand the files node on the project item to verify the files that are included with the item. I suspect that your elements file will not be displayed. You need open the properties for the elements file (open the file and click F4), and make sure that the type on the file is set to "ElementManifest".


2

It's definitely an "it depends" question. I will say the numbers you are throwing out are well within (...by several orders of magnitude) the boundary guidelines provided by Microsoft: http://technet.microsoft.com/en-us/library/cc262787.aspx If you're concerned about sprawl put some sort of site provisioning/de-provisioning capability in place. It could ...


2

You can set the site collection to Read-Only from CA, so it is possible that someone did this: CA > Application Management > Site Collections section > Configure Quotas and Locks > Select site collection > check if it is set to Read Only I think its default that site collections are set to read only during backup, so maybe you have a failed backup ...


2

Here are some popular blog posts I wrote in the past: SharePoint Site Topology Planning Site Topology Planing and Taxonomies I believe they are still helpful and relevant.


2

I don't think it's possible. You could create a webcontrol which shows the date like you want it. In case of a date in a list, you should use a content query webpart with a custom xsl If you want to show the date like you want it in a list: Create a Date column(Call Date1), leave it on the default view Then create another column for your text version date ...


2

The OOB way to do this is to lock the site through Central Administration > Site Collections > Configure Quotas and Locks > Site Lock Information Here you can either Not locked to unlock the site collection and make it available to users. Adding content prevented to prevent users from adding new content to the site collection. Updates and deletions are ...


2

I think you should specify if "by site" you mean actually a sub-site as in SPWeb or a site collection, as in SPSite. If a Site Collection, simply Lock-it by setting it to Read Only, which shall be valid across the whole site Collection (no edits though, for Site Collection Admin neither). If you are more in the 2nd situation, where a business need requires ...


2

I've managed to make this work by using the InfoPath userName() function then passing the value back to my workflow with the extended properties of the task the opened form is associated to. Not sure if this is the best (only?) way, but it works. Just one thing to be aware of. Some fields in the external properties are GUIDs so you might need the ...



Only top voted, non community-wiki answers of a minimum length are eligible