SharePoint 2013 Javascript _spPageContextInfo

When coding in SharePoint using JavaScript, then _spPageContextInfo code comes really in handy. _spPageContextInfo is a code that contains information about the current context or details about the SharePoint site. Some of the main data able to retrieve from _spPageContextInfo:

  • Current Culture
  • Current Language
  • Layouts URL
  • SharePoint web page URL
  • SharePoint site or subsite URL
  • UserId of the person logged into SharePoint
  • SharePoint site title

Here is a image list of all properties within _spPageContextInfo:

1._spPageContextInfoProperties

2._spPageContextInfoProperties

2._spPageContextInfo Properties

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s