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...Member Directory TemplateMember Directory Template
Previous
 
Next
New Post
6/13/2012 1:51 PM
 

I'm working with the new Member Directory module trying to add some custom profile properties to the item templates.   I've gathered that Knockout is being used (new to me) and I'm assuming they need to be added to the MemberDirectory.js script file to be usable.

Any ideas how to get these fields on there?  The two properties I'm trying to add are Company and Position

 
New Post
6/13/2012 6:50 PM
 

the profile page automatically generates a knockout model for all available (and viewable) profile properties, so if you have added a property called "Company" then knockout model will have 2 (observable) properties, one called "Company" which contains the value and one called "CompanyText" which contains the field name. To display them you just set the data-bind attribute to the model property e.g. in the following example I have a property called "Company" with text of "Company Name" and a value of "DotNetNuke" and it will display "Company Name: DotNetNuke"

<li><strong><span data-bind="text: CompanyText">:</strong> <span data-bind="text: Company()"></li>


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/14/2012 1:29 AM
 

Hi,

I use Form & List on a page to display members with a link to the profile page. The links are looking OK:

h_ttp://.../UserProfile/tabid/43/userId/11/Default.aspx
h_ttp://.../UserProfile/tabid/43/userId/33/Default.aspx
h_ttp://.../UserProfile/tabid/43/userId/13/Default.aspx
etc.

When I'm logged in it always redirects me to my own profile page. When not logged in, it works fine and the correct profile page is displayed.

Any ideas?

Also: When I'm not logged in and change the userId parameter in the address to 1 or 2, I get the Host or Admin profile respectively. Can I avoid this?

I also tried this using the member directory module - same effect.

(Using DNN 6.2.0)

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
6/14/2012 1:35 AM
 
Another question: Is it possible to filter the members by role in any way?

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
6/14/2012 7:49 AM
 

Hmm... I tried that.  When I add the following to my template, I get a blanked out membership directory:

<div class="mdMemberDetails" data-bind="css: {mdFriend: IsFriend(), mdFollowing: IsFollowing(), mdFollower: IsFollower() }">
    <a href="" class="mdMemberImg" data-bind="attr: { title: DisplayName, href: ProfileUrl }">
        <span><img data-bind="attr: { src: getProfilePicture(50,50), title: DisplayName }" /></span>
    </a>
    <ul class="MdMemberInfo">
        <li class="mdDisplayName">
             <a href="" title="" class="mdMemberTitle" data-bind="attr: { title: DisplayName, href: ProfileUrl }, event: { mouseover: $parent.showPopUp }">
                <span data-bind="text: DisplayName"></span>
            </a>
        </li>  
        <li class="mdTitle"><p><span data-bind="text: Title"></span></p></li>
        <li class="mdCompany"><p><span data-bind="text: Company()"></span></p></li>
<li class="mdPhone"><p><span data-bind="text: Phone"></span></p></li>
        <li class="mdEmail"><a href="#"><span data-bind="text: Email"></span></a></li>
        <li class="mdLocation"><p><span data-bind="text: Location()"></span></p></li>
    </ul>
    <ul class="mdHoverActions" data-bind="visible: !IsUser() && IsAuthenticated">
        <li class="mdComposeMessage"><a href="" class="ComposeMessage"><span data-bind="text: SendMessageText"></span></a></li>
    </ul>
</div>

What am I doing wrong?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Member Directory TemplateMember Directory Template


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