Check your HTML5 document outline

Need to quickly be able to check your document outline for your html5 documents? Use the “HTML5 outliner” bookmarklet. I’m not sure who created it, but here’s the link: http://code.google.com/p/h5o/

I use the bookmarklet as a shortcut on my bookmark toolbar. It will check live sites, as well as anything you are developing locally for your html5 document outline.

你好北京!New Beijing Sharepoint User Group

I couldn’t find one out there, so here’s the brand new Beijing Sharepoint User Group! Join, discuss, and search for Sharepoint related stuff.

http://www.beijingsug.com

Put MySite link of creator in CQWP using itemstyle.xsl

This will show you how to correctly link the creator of an item to their mysite in a Content Query WebPart.

Step 1:
Declare the variable “authormysite” and the author string of “UserLookup”. We pull the “Login” parameter, because the username is what is appended on the mysite link out of the box.

<xsl:variable name="authormysite">
<xsl:value-of select="ddwrt:UserLookup(string(@Author) ,'Login')" />
</xsl:variable>

Step 2:
Create the link to the mysite page, appending the new variable’s value that you just created.

< a href="https://m.isb.bj.edu.cn/Person.aspx?accountname={$authormysite}" ></ a>

Step 3:
Within the link, you want to declare the value of @Author to get their full display name.

<xsl:value-of select="@Author" />

Final code:

<xsl:template name="mysitelink" match="Row[@Style='mysitelink']" mode="itemstyle">
<xsl:variable name="authormysite">
<xsl:value-of select="ddwrt:UserLookup(string(@Author) ,'Login')" />
</xsl:variable>

< a href="https://m.isb.bj.edu.cn/Person.aspx?accountname={$authormysite}">
<xsl:value-of select="@Author" />
</ a>

</xsl:template>

Display first name in Sharepoint workflow

Here is how you obtain JUST the first name (or whatever you want) from a user profile in a workflow:

Select the “User Profiles” data source. The next field, “field from source”, will allow you to choose the “first name” field.

Thanks to this site for pointing me in the right direction.

Disable Ribbon for Anonymous Access

This was so simple it blew my mind. I haven’t completely tested it out yet. And haven’t had time to test it on the iPad, but we’ll see!

Step 1
Go to your master page. Find the div with the id “s4-ribbonrow”. Add a style=”display:none” to the div tag.

Step 2
After the ribbon tag, create a new css style that re-displays the ribbonrow based on permissions using the following code:

<Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages">
    <script type="text/javascript">
        document.getElementById("s4-ribbonrow").style.display = "block";
    </script>
</Sharepoint:SPSecurityTrimmedControl>

How to Add a Custom Event Title to a Sharepoint Calendar

This tutorial will show you how I’ve taken 2 columns and combined them into one title to display on my Sharepoint calendar.

Step 1: Create your columns
In my example I’ve created:

  • Grade Level (choice)
  • Subject (text)

Step 2: Create a Calculated Column
In the calculated column (named “Event Title”), I’ve put a calculation that concatenates two of my columns to one field

=[Grade Level]&" - "&[Subject]

Note: This cannot be done with a multiple-select field (checkboxes)

Step 3: Modify your calendar view
In the view modification screen, go to the third option, “Calendar Columns” and change the “Month View Title”, “Week View Title”, and “Day View Title” to “Event Title”. You can leave location as is.

Now your calendar should display the concatenated, calculated column as its main title.

Enjoy!

A quick note about my webhost

I have to give a quick shout-out to my host, WebHostingHub.com. They are amazing. Here are some of the features I have, for about $6/month:

  • Unlimited domains on my hosting account
  • Unlimited bandwidth
  • Unlimited storage space
  • Easy wordpress installations
  • 24/7 tech support chat. It’s brilliant.
  • They aren’t blocked in China!

Consider it. And if you go through this link, it’ll help pay for my hosting!