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...Adding a Profile Property to the Social Groups ProfileAdding a Profile Property to the Social Groups Profile
Previous
 
Next
New Post
4/6/2015 10:21 PM
 

Hi,

I am using the Social Groups on my site and I need to add one of my custom profile properties to the profiles in the members directory. The existing code looks like this:

<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><p><span>I NEED TO ADD MY PROPERTY HERE</span></p></li>

        <li class="mdLocation"><p><span data-bind="text: Location()"></span></p></li>

 

    </ul>

    <ul class="mdHoverActions" data-bind="visible: !IsUser() && IsAuthenticated">

        <li class="mdFriendRequest" data-bind="visible: FriendStatus() == 0"><a href="" class="firstItem" data-bind="click: addFriend"><span data-bind="text: AddFriendText"></span></a></li>

        <li class="mdFriendPending" data-bind="visible: IsPending()"><p><span class="firstItem"><span data-bind="text: FriendPendingText"></span></span></p></li>

        <li class="mdFriendAccept" data-bind="visible: HasPendingRequest()"><a href="" class="firstItem" data-bind="click: acceptFriend"><span data-bind="text: AcceptFriendText"></span></a></li>

        <li class="mdFriendRemove" data-bind="visible: IsFriend()"><a href="" class="firstItem" data-bind="click: removeFriend"><span data-bind="text: RemoveFriendText"></span></a></li>

        <li class="mdFollow" data-bind="visible: !IsFollowing()"><a href="" title="" class="firstItem" data-bind="click: follow"><span data-bind="text: FollowText"></span></a></li>

        <li class="mdUnfollow" data-bind="visible: IsFollowing()"><a href="" title="" class="firstItem" data-bind="click: unFollow"><span data-bind="text: UnFollowText"></span></a></li>

        <li class="mdComposeMessage"><a href="" class="ComposeMessage"><span data-bind="text: SendMessageText"></span></a></li>

    </ul>

</div>

My Custom Property is called "BusinessType" and I need to add it in the bolded section above. I was able to add it to another section of the profile by entering [PROFILE: BusinessType] to make it show up but that doesn't work here. Anyone know what the code is to display this?

Thanks

 
New Post
4/7/2015 7:43 AM
 
it should just be something like <span data-bind="text: BusinessType()"></span>

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/7/2015 8:14 AM
 

Thanks Cathal but I tried this and then all of my profiles disappeared.

 
New Post
4/8/2015 9:02 AM
 
hmm, try loading the console window (F12 in most browsers) to see if it's a javascript issue - you should also be able to view the list of profile properties to check your new one is available.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/8/2015 10:05 PM
 

When I load it in the console, this is the error I get:

Uncaught ReferenceError: Unable to process binding "foreach: function (){return { data:Members,afterRender:handleAfterRender} }"

Message: Unable to process binding "text: function (){return BusinessType() }"

Message: BusinessType is not defined

 

Any ideas?

Thanks

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Adding a Profile Property to the Social Groups ProfileAdding a Profile Property to the Social Groups Profile


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