4/28/2014

SharePoint 2013: RegistrationId List Template Type IDs Updated!

 

I have updated the "SharePoint: RegistrationId List Template Type IDs" article to include the new 2013 list types. This time, I used a PowerShell script to dump the SPListTemplateType enumeration. Note that there are many template IDs that are not in the SPListTemplateType enumeration and generally can only be found in investigations of the databases and other documentation.

The PowerShell script: (Works in both SP 2010 and 2013)

PS C:\> $SPtt = [Microsoft.SharePoint.SPListTemplateType]
PS C:\> [System.Enum]::GetNames($SPtt) |  select {$_}, {[int][System.Enum]::Parse($SPtt, $_)}

image

.

4/23/2014

Recent Changes to the SharePoint 2013 UI

 

About a month ago I wrote a little post about Office 365 / SharePoint–a Moving Target that included a mention about an April 9th update to the UI. Well, on April 21st the April 9th update finally appeared in one of my Office 365 subscriptions. (The update has not shown up in the other subscriptions yet.)

What are the changes? An updated "hero bar", or navigation bar has been added above the libraries. My favorite change here is the new "Manage" link. My least favorite change is the Share button… it currently seems to be broken!

One strange thing!  The "or drag file here" text is now gone. Drag and drop still works, but there's no longer a reminder for the users.

Here's the "before" navigation:

  image

Here's the "after" navigation:

  image

 

When the library is displayed in a web part the menu bar is shortened and no longer includes "sync" or "manage".

  image

 

Clicking "new" displays the same menu as before… except the "upload" link is now gone. (It's been moved to the new navigation bar.)

Here's the before and after of the "new" menu:

  image

Clicking the "upload" link displays the popup you would get from the Upload button in the ribbon, or the upload link in the old "new" menu.

  image

The "SYNC" button has been removed from the top of the page and is now in the new "hero bar".

image

The "edit" button opens the Office document in the client app (Word, Excel, etc.) on the local PC. (Not sure I like this as opening is Office Web Apps is nice.)

The "manage" button displays the old dropdown menu that you had to get to in 2013 using "…", "…".

  image

As far as the "share" button… both the new share button and the old "…","..." share button seem to be broken! They display all of the expected prompts, but do not actually break inheritance on the item or grant the requested permissions…
Sad smile

 

.

4/16/2014

Change the SharePoint 2013 Suite Bar Text

 

Hacking around with PowerShell always finds some new property or method that I would never have gone looking for! This time it is a SPWebApplication property that sets the text in the "Suite Bar".

The default text in the suite bar is "SharePoint" for on premises installs and "Office 365" plus an icon for the cloud versions. The actual HTML for the text is "<div class="ms-core-brandingText">SharePoint</div>".

Examples from on premises SharePoint and Office 365:

image

… but… I don't know how to get access to the SPWebApplication object in Office 365 from PowerShell! You can still change it using JavaScript. (See notes at the end of this article.)

 

Using PowerShell

The following PowerShell will list the Suite Bar text for each of your web applications:

PS C:\> Get-SPWebApplication | Select DisplayName, SuiteBarBrandingElementHtml

DisplayName               SuiteBarBrandingElementHtml
-----------               ---------------------------
My Sites - 82             <div class="ms-core-brandingText">SharePoint</div>
SharePoint Intranet - 80  <div class="ms-core-brandingText">SharePoint</div>
SharePoint Testing - 81   <div class="ms-core-brandingText">SharePoint</div>

To change the text, access your web application object (mine will be the 2nd in the list, so [1]), and set the SuiteBarBrandingElementHtml to your new text. You will probably want to include the default CSS class for consistency. Remember to do the .Update, or nothing will be saved!

PS C:\> (Get-SPWebApplication)[1].suitebarbrandingelementhtml = 
"MA<span style='color:#FF2020'>X</span> Technical Training" PS C:\> (Get-SPWebApplication)[1].update()

The above will change the text to:
image

If I include the DIV and class from the default text then is will look like this:
image

 

Can't use PowerShell?

You can use JavaScript or jQuery to change the Suite Bar title text in both on premises SharePoint and Office 365. All you need is some code to find the DIV with the class of ms-core-brandingText and change it's contents. When working with Office 365, be aware that the text is also a hyperlink to https://portal.microsoftonline.com/, so be careful not to break it!

In jQuery it might look like this:

$('.ms-core-brandingText').text('Your New Title Text');

Here's an article about changing the text in Office 365: http://sharepoint-community.net/profiles/blogs/changing-the-office-365-main-link-text

 

Have fun and don't break anything!

.

Note to spammers!

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.