Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How do you create an email link in the Member Directory?How do you create an email link in the Member Directory?
Previous
 
Next
New Post
3/12/2013 2:41 PM
 

I haven't tried that, but there's nothing keeping you from putting the a href="mailto:" code in the template itself if you wanted. Give that a shot and see if it works. I hope to be able to try it here shortly.

 
New Post
3/12/2013 2:57 PM
 

I put in this code:

<li class="mdEmail"><a href="mailto:"><span data-bind="text: Email"></span></a></li>

Now, when I click on the email address, it opens up a blank message window in Outlook, but the person's email address isn't in the To field. I've tried to make an educated guess as to what to put after "mailto:" to make it populate with the member's email address, but haven't been successful.

 
New Post
12/9/2013 6:53 PM
 

Did you ever find an answer or figure this out? I'm looking to accomplish exactly this. I get the mailto: link to run and open in Outlook but the email address is blank.

Regards,

Kyle

 
New Post
12/11/2013 6:03 PM
 

The member directory is frustrating when you get into customizing it. I got my mailto links to work in the user profile page with custom profile properties but the profile cards are something completely different. 

Profile Template Code for Custom OfficeEmail Field

<li data-bind="visible: OfficeEmail().length > 0"><span><strong>Office Email: </strong></span><a href="mailto:[PROFILE:OFFICEEMAIL]" class="profOfficeEmail" data-bind="attr: { title: OfficeEmail(), mailto:OfficeEmail() }" ><span data-bind="text: OfficeEmail()"></span></a></li>

...this works for a user's profile page.

My Member Directory Code for Email Field (the pesky profile cards)

<li class="mdEmail">
<a href="mailto:[OfficeEmail]" class="mdEmail" ">
<span data-bind="text: ProfileProperties().OfficeEmail"></span></li>
</a>

It opens in Outlook but the email does not come through. 

I see how the href links to a user profile page like this...

<a href="" class="mdMemberImg" data-bind="attr: { title: DisplayName, href: ProfileUrl }">

Now if I want to build an email link, one would think to do it like this.

<a href="" class="mdOfficeEmail" data-bind="attr: { title: OfficeEmail, mailto: OfficeEmail }">

Yes...no? Can somebody shed some light on how to simply include a email link in the member profile card?

 
New Post
12/13/2013 5:02 PM
 

In the profile cards, Admin or host can only see a user's Email address with the following code below. Logged in usersjust can't see email in the profile cards. This is frustrating. Why is it that Host and Admin can see Email() and not registered/ logged in users?

<li class="mdEmail">

<a data-bind="attr: { href: 'mailto:' + Email(), title: Email }, text : Email">

<span data-bind="text: Email"></span></a>

 </li> 

I would like to replace Email() with a custom profile property I've created that works on the users's profile page such as OfficeEmail() but that only breaks the profile card template resulting in an empty directory. How can I inject a custom profile property replacing Email() with OfficeEmail() below?

Now for the user's profile page I have two custom email fields to appear with a mailto: link with the following:

<li data-bind="visible: OfficeEmail().length > 0"><span><strong>Office Email: </strong></span><a href="mailto:[PROFILE:OFFICEEMAIL]" class="profOfficeEmail" data-bind="attr: { title: OfficeEmail(), mailto:OfficeEmail() }" ><span data-bind="text: OfficeEmail()"></span></a></li>

<li data-bind="visible: AlternateEmail().length > 0"><span><strong>AlternateEmail: </strong></span><a href="mailto:[PROFILE:ALTERNATEEMAIL]" class="profAlternateEmail" data-bind="attr: { title: AlternateEmail(), mailto:AlternateEmail() }" ><span data-bind="text: AlternateEmail()"></span></a></li>

Hope this helps for anybody working with membership and profile properties. Any break throughs with the profile cards, please, please let me know.

Regards,

Kyle

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How do you create an email link in the Member Directory?How do you create an email link in the Member Directory?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out