Monday, May 26, 2014

Footers in SharePoint Workflow Email

A very common workflow task is “send email”. It can be a challenge to identify which workflow is sending the email when the time comes to edit that workflow generated email.

To make that easier, I like to include a “Workflow ID (WF-ID)” in the footer of my email.

I use the name of the Workflow as my “Workflow ID” and that way, when I am asked to make a change to the email message, it is very easy to locate the Workflow that contains that email message. It’s a simple idea – but it saves me time and comes in handy!

Read More

Thursday, May 1, 2014

HTML Title Tag Manipulation in SharePoint with Jquery

Suppose you have a dynamic page that is displaying records from a SharePoint list. The HTML <title> tag will only be able to display the single title of the page for every record.

You can use Jquery to read a unique title from the list record and display it as the HTML <title> tag.

The following is accomplished with the SharePoint HTML Form webpart and SharePoint Designer.

First, look at your page in the browser with a developer tool such as Firebug. The list column “title” is what we want to use as the HTML title tag. We need to wrap the table row tag with a class.

Switch to SharePoint Designer, open your page, and find the table detail that contains the Title value.

Create a span tag with a class and a meaningful name.  In my case, this is what I used:
<span class="resourcetitle">Title…..</span>

With a class created around your title tag, you can now use the following script in a webpart on your page.

Edit your SharePoint page in the browser and insert an HTML form webpart.

Open the source editor of the Webpart and replace the default text with this script:
<script type="text/javascript" src="</script>
$(document).ready(function () {
var strTitle = $('.resourcetitle').text();
$(document).attr('title', strTitle);

Remember to set your webpart chrome to none and click ok.

Preview your page and you should now have the list item title in the browser tab and the html title tag.

Read More
Designed ByBlogger Templates