Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Email functionality in the discussion thread context menu

  Asked By: Tara    Date: Feb 07    Category: Sharepoint    Views: 27809

Discussion Database
URL : sharepoint.bilsimser.com/template32/default.aspx

I also implemented the same Email functionality in the discussion thread context menu. Is there a way to show email image before each thread.
Or, second idea : For Example, thread
Big Brother House (Email)
Here (Email) is just a text in every thread. Just to let user know that email functionality is available.



3 Answers Found

Answer #1    Answered By: Peter Peterson     Answered On: Feb 07

Not sure if I understand the question or not.

You want to show  an email  image in the web part? Or show (email) after the title? Maybe with a link to sending the thread  via email?

You might be able to add an image  by converting the web part to a DataView Web part, but there’s so much DHTML in there for collapsing and expanding the thread, it would probably be messy.

Answer #2    Answered By: Kalyan Pujari     Answered On: Feb 07

If a small email  image will be messy just before the title of every thread, is this possible.

Right now the situation is users doesn't know that email this thread  option is available unless they click on the context  menu. It's kinda hidden right now. So just after the subject/title of the thread completes, can we add a text  saying (Email) For example.

This is a new thread (Email)

Now user  will try to click this email, which is just a text not a hyperlink and it will open up the context menu.

Where do I need to modify to add (Email) in ows.js file.

Answer #3    Answered By: Laura Walker     Answered On: Feb 07

Still not sure what you’re asking but here goes.

The team site template you see is available as a download from MS and has some enhancements. The menu  is one of them as it adds a new menu item “Send Email for Review” by adding this javascript to the list:

<script language="javascript">

function Custom_AddListMenuItems(m, ctx)
var strDisplayText = "Send Email Link For Review";
var strAction;
var strImagePath = "";
// parse the URL out of the itemTable
var URL = "";
var index = itemTable.innerHTML.indexOf("href=");
if (index > 0)
var str = itemTable.innerHTML.substr(index + 6);
index = str.indexOf('"');
if (index > 0)
URL = str.substr(0, index);
if (URL != "")
strAction = 'window.navigate("mailto:%20?subject=Please review...&body=%0A%0A%0A<' + URL + '>")';
// Add menu item
CAMOpt(m, strDisplayText, strAction, strImagePath);
// add a separator to the menu
return false;


You could certainly add that to a Content Editor Web Part and drop it onto a page with a normal discussion  board.

I personally wouldn’t add “Send Email” to every thread  as it would just look crazy trying to read the threads. Instead you could direct people to use the menu item that you add (with the javascript above) and tell them to use that if they want to send a link. You can’t really create this as a single link as it’s dependent on the context  of the thread so that’s why it’s added as a menu option.

Didn't find what you were looking for? Find more on Email functionality in the discussion thread context menu Or get search suggestion and latest updates.