Friday, July 26, 2019


Content Editor Webpart not showing up in SharePoint Online
--------------------------------------------------------------------------------------------------------------------------

Problem :





Solutions :

1. Go to SharePoint Admin Center -https://XYZCOMPNAY-admin.sharepoint.com
2. Go to Settings --> Click on Can't find the setting you're looking for? Go to the Classic Settings Page.
3. Allow Custom Script 



It will be activated in 24 Hours.

If we want to activate immediate custom script , We have to enable it from Sharepoint Online Management Shell.

Activate Custom script from Sharepoint Online Mangement Shell :

Hope Sharepoint Management Shell already installed in the system.

PS C:\Windows\system32> Connect-SPOService

cmdlet Connect-SPOService at command pipeline position 1
Supply values for the following parameters:
Url: https://XYZCompany-admin.sharepoint.com
PS C:\Windows\system32> Set-SPOSite https://XYZCompany.sharepoint.com/sites/Development -DenyAddAndCustomizePages 0
PS C:\Windows\system32>


Thursday, July 25, 2019

Sharepoint Online Management Shell
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


SharePoint online Management shell is a windows power shell module loaded with the share point libraries for share point online , and hosted on office 365 , it helps administrators to manage users , sites and site collections .

Powershell is highly effective and easy to use for managing SharePoint, Everything that can be done on SharePoint central administration can be done using power shell. 

As SharePoint hosted on office 365 , there have been limited options for SharePoint administrators to use power shell. How ever with the recently released SharePoint online management shell , it will be easy to manage SharePoint online from any remote computer. 

Not every command is available in SharePoint online compared with On-Premises , But it's a certainly a good start.

Install the SharePoint Online Management Shell


After installing the SharePoint Online Management ShellTo open the SharePoint Online Management Shell command prompt, from the Start screen, type sharepoint, and then click SharePoint Online Management Shell.

To connect with a user name and password

1. 1.    Fill in the values for the $adminUPN and $orgName variables (replacing all the text between the quotes), and then run the following commands at the SharePoint Online Management Shell command prompt:

PS C:\Windows\system32>   $adminUPN="sampleuser@xyzcompany.onmicrosoft.com"

PS C:\Windows\system32>  $orgName="xyzcompany"

PS C:\Windows\system32>  $userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."

PS C:\Windows\system32>  Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential

2When prompted with the Windows PowerShell credential request dialog box, type the password for the SharePoint Online SharePoint administrator account.


Ribbon missing in Share point online Pages to add custom web part :
--------------------------------------------------------------------------------------------------------------------------

you can not see the ribbon if you create modern page or site page  in share point online.






















Solution:

Create Webpart page or wiki page to see the the ribbon and Browser/page buttons


Wednesday, December 22, 2010

Getting ImageLink from sharepoint PictureLibrary and displaying in imagecontrol

using (SPWeb web =SPContext.Current.Site.OpenWeb())
{
SPList Projectimages = web.Lists["ProjectPictures"];
SPQuery myQuery = new SPQuery(); //CAML Query to get only images based on WbsId
myQuery.Query = string.Format("" + strWBSId + "");
// Get a collection of Items based on Query
SPListItemCollection Items = Projectimages.GetItems(myQuery);
if (Items.Count > 0)
{
foreach (SPListItem item in Items)
{
imgProjectImage.ImageUrl = string.Concat(web.Url, "/", item.Url.ToString());
imgProjectImage.Attributes.Add("style", "display:block"); //By default image display property was hidden,when the image is there in library then only we are dispalying that image
break;
}
}

}

Disposing SPWeb and SPList(SPObjects)

using (SPWeb web =SPContext.Current.Site.OpenWeb())
{
SPList Projectimages = web.Lists["ProjectPictures"];
SPQuery myQuery = new SPQuery();
SPListItemCollection Items = Projectimages.GetItems(myQuery)
}

If we use Using(){} it will automatically dispose all objects.

We need to declare and use all SPObjects in Using clause

Sunday, September 26, 2010

Master Pages in SharePoint 2010

SharePoint 2010 brings a few new master pages that you may want to know about. There are additional master pages to accommodate both the old and new versions of UI. There are also some simplified pages to take note in.
The first master page we will talk about is v4.master. This is the default team site master page used with version 4 (obviously) of the UI. This will be the master page you typically use. It provides the ribbon bar and all of the other new visual UI changes such as the site actions menu on the left side.
If you did an upgrade to SharePoint 2010 and haven’t transitioned to the new UI yet, the old master page is still in default.master. This looks just like the master page you use in SharePoint v3 today. It doesn’t have the ribbon bar and the site actions menu is still on the right side.
The search pages by default now use minimal.master. This is a really slimmed down master page with next to nothing on it. It doesn’t even have navigation. I’m not sure why they opted to use this page in Search Center, but I think it provides and issue with people trying to leave the search center. The Office Web Applications also use this master page but that makes a little more sense because it provides more screen real estate.

The last page I will mention is simple.master. This page is used for login and error pages. From what I understand, it can’t be customized (I have no idea why), but it can be replaced.
I hope this helps if you were curious about the new master pages. I’ll also remind you again that application pages can also now make use of any branded master pages you might have created. I’ll also point out that the master pages all use properly formed XHTML although I am not sure about default.master. I will check that when I get a chance.

Tuesday, September 21, 2010

Difference between sharepoint foundation and sharepoint server

Regarding “SharePoint Foundation” and “SharePoint Server 2010”, the important thing to understand is that SharePoint Foundation is the foundation, and SharePoint Server is simply an optional add-on package of more advanced features. In fact, you cannot install SharePoint Server by itself, because installing it automatically also installs SharePoint Foundation.

So the question is:

What differs between SharePoint Foundation and SharePoint Server?

What version do you need?

The answer depends on your requirements, and not so much on the size of your organization. For example, if you want a good platform for a basic intranet plus collaboration and project management, then SharePoint Foundation may be just what you need. If you need the best web content management, more advanced document management, or tight integration with Excel, Access, and Visio, then SharePoint Server is what you need.



SharePoint Foundation

Here are some of the more frequently used features and characteristics of SharePoint Foundation:

It’s a web based application running on top of Internet Information Services (IIS)
It’s a free 64 bit only add-on to any edition of Microsoft Windows 2008 Server or
Windows 2008 R2
It requires a 64 bit Windows Server operating system
It stores all its data and information in one or more Microsoft SQL Server databases
It displays information using a web page file, usually containing one or more web parts
It has very good document management features, such as version history, custom metadata, and Microsoft Office integration
It has a number of list types that you can use for storing different types of information, such as documents, contacts and calendar items
It enables you to build workflow solutions; for example, sending an email to a given user
When a document is changed or a list column is set to a specific value
It’s perfect for building basic, but effective, intranet solutions, with its built-in web content management features
It’s ideal for collaboration on project data, meetings, social events, blogs, and such


But there are also important features that SharePoint Foundation does not offer. Here are just a few examples:

No built-in advanced search functionality. SharePoint Foundation offers limited search
functionality, but still it will only allow users to search within the current site and sites below it
No advanced web content management features, such as publishing control, targeted
information, and multilingual support
No advanced document management features, such as global document IDs, document sets, and document policies
No record management of legal and other important documents
No support for displaying InfoPath forms in a web browser
No support for displaying MS Excel spreadsheets as web parts
No support for displaying MS Visio 2010 diagrams as a web part
No support for key performance indicators (KPIs)
This is where SharePoint Server 2010 comes in.



SharePoint Server 2010

SharePoint Server 2010 uses the same types of web sites and features as SharePoint Foundation but adds a lot of functionality. In addition to the previous list, SharePoint Server 2010 also provides the following features:

Use the global search functionality to find any type of information, regardless of type and location, based on content or metadata properties
Use Social Search to find people based on their typical activities and interests
Target displayed information to one or more user groups
Import user properties from AD, and make them searchable
Use advanced content management features for public Internet sites or portal intranet sites
Allow globally unique document IDs and document sets
Display and use InfoPath forms with a web client, using the Forms Service
Display Microsoft Excel spreadsheets and charts in a web part, using Excel Services
Display Microsoft Visio 2010 diagrams directly on a web page, using the Visio web part
Search, display, and edit content in external databases, such as SAP, Oracle, and Microsoft SQL, using the Business Connectivity Service
Give each SharePoint user a personal website, for both private and public use
Create dashboards with scorecards and key performance indicators
Currently rated 5.0 by 1 people

Content Editor Webpart not showing up in SharePoint Online ------------------------------------------------------------------------------...