Posts

Overview of the SharePoint 2013 page model

Image
Introduction to the page model Before you design or brand a SharePoint site, you need a basic understanding of the parts of a SharePoint site and how a SharePoint page is put together. This article gives you a visual overview of the pieces to think about as you plan how to brand your site. This article applies specifically to publishing sites in SharePoint 2013. Master pages, page layouts, and page   SharePoint uses templates to define and render the pages that a site displays. The structure of a SharePoint page includes three main elements: Master pages define the shared framing elements—the chrome—for all pages in your site. Page layouts define the layout for a specific class of pages. Pages are created from a page layout by authors who add content to page fields. Figure 1. Master page, page layout, and page Master pages A master page defines the chrome (the shared framing elements) of your site. These elements may include the header and footer,...

SharePoint 2013 Anonymous access

Image
Step by step instruction how to enable anonymous access for web application based on SharePoint 2013. Central Administration First of all, it's necessary to enable anonymous access for SharePoint 2013 web application. In central administration go to web applications list ( Application Management - Manage web applications ) and select the application you need to enable anonymous access and click Authentication Providers button on the ribbon: On the popup window select zone to set providers for it. In my case there is only one zone - Default: Enable anonymous access for selected zone: Anonymous access is enabled on web application level. In additional you can set policy for anonymous users. The policy may be these: none, deny write and deny all. For set the policy click Anonymous policy button on the ribbon: Site settings Anonymous access is enabled for SharePoint 2013 web application. Now we can set permissions for anonymous users on sites. For this on Site ...
The following problems or alerts might occur when you debug SharePoint solutions by using the Visual Studio debugger. For more information, see Debugging SharePoint Workflow Solutions . This topic contains the following sections. Character Restrictions in Project and Project Item Names Errors When Creating Custom Fields New Non-English Site Definitions Do Not Appear in Site Creation Page After Deployment Error Appears When a Workflow Project Is Deployed on a Clean System User Must Refresh Application Page in Browser While Debugging to View Updated Image Error: The Site Location Is Not Valid Site Deletion Web Event Does Not Occur in Event Receiver Project Deployment Error Appears After the Name of an Identifier in a Business Data Connectivity Model Project Is Changed An Error Appears When You Try to View a Visual Web Part in SharePoint Error Appears When an Imported Reusable Workflow That Contains a Task Form Field Is Run Error Appears When a Renamed Imported List ...

Missing site templates in SharePoint 2010

Image
            today i want to create "record center" sub site, then i go to new site and check templates, i am wonder there are two site templates are available. and i check with enterprise feature, is enabled. i confuse how to enable all site templates.                       finally i find the way to enable site templates. In SharePoint 2010, you have to ‘enable’ the other site templates first.  To do so, go to Site Settings –> ‘Page layouts and site templates’ under ‘Look and Feel’ section.  On the ‘Page Layout and Site Template Settings’ page, you can specify which site templates will be available for creating subsites in this site collection (eg. Blog, Records Center)

Sharepoint Solution & Feature depoyment

Working with Solutions the following stsadm command could be used to add a SharePoint solution to SharePoint: stsadm –o addsolution –filename “ D:\Deploy\MySharePointSolution.wsp “ We used the following command to deploy the solution once installed to a specific web application: stsadm –o deploysolution –name MySharePointSolution.wsp –url http://myspwebappp –allowgacdeployment –immediate If we would upgrade an existing solution, we would use the following: stsadm –o upgradesolution –name MySharePointSolution.wsp –filename “ D:\Deploy\MySharePointSolution.wsp ” -immediate And finally, we used the following commands to retract and delete a specific solution from the web application: stsadm –o retractsolution –name MySharePointSolution.wsp –url http://myspwebapp –immediate stsadm –o deletesolution –name MySharePointSolution.wsp Now, let us see how we could do above operations with PowerShell. For this, we use the following PowerShell...

Sharepoint 2010 fixed width master page design

Image
 i usually post solution here that i tested well and it suitable for sharepoint 2010 world. i find so many drawbacks to design fixed width master page and finally i found below solution is best. Open up your master Page and remove scroll="no" from the body. If you do not do this there will be no scroll bars on long pop up modal windows In the Master Page search for “s4-workspace” remove this whole DIV tag and its close Div tag at the bottom of the master page. This ID is tied to a JavaScript file that forces a full width on the page. Now Open up your CSS file and add the following: body { overflow:auto !important; } form   { width:980px; margin: auto; } Your Site Should look something like this: If you wanted to add some background color and borders to enhance the centered design replace it with this: body{ overflow:auto !important; background-color: #21374c; } .s4-widecontentarea{ backgr...

How to set Current User Name to InfoPath Person/Group Picker

Image
This method also use for get User Profile Information such as First Name , Last Name , Office and etc. In generally we can not set a default value to InfoPath Person/Group Picker. On the other hand we can not get Current Username in the InfoPath. (Yeh it is true that we can use userName() function. But this will return the Current User Account ID not the name). So we want to use SharePoint user profile services to do this. First we need to  create a user profile connection. Thus First go to Manage connection and click add connection. Then go to  receive data  option and  SOAP Web service  and specify the  User Profile Service URL . The URL will be something like ( http://sever/sites/site/_vti_bin/UserProfileService.asmx ). This is depends on your site or site collection. if it is a site collection you can omit  /sites/site/  part from your URL. then proceed to next , select  UserProfileByName  and  un se...