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...Administration ...Administration ...DNN Member Directory Item TemplateDNN Member Directory Item Template
Previous
 
Next
New Post
9/10/2013 4:57 PM
 

Hi Guys!

I am setting up a membership directory for one of my clients, but I don't have a lot of experience. I've managed to fumble around enough to get everyone set up and automated, and I have all the proper configurations done to show all the data to the registered members. 

 

My problem is that I'm trying to customize the item template so that it will display the dang street address. Here is my code. I don't understand the syntax on this.. could any of you show me the line of code needed to pull the street adress?

 

<div class="mdMemberDetails" data-bind="css: {mdFriend: IsFriend(), mdFollowing: IsFollowing(), mdFollower: IsFollower() }">
        <div class="mdDisplayName"><h5><a href="" title="" class="mdMemberTitle" data-bind="attr: { title: DisplayName, href: ProfileUrl }, event: { mouseover: $parent.showPopUp }">
                <span data-bind="text: DisplayName"></span>
            </a></h5>
        </div>  
    <a href="" class="mdMemberImg" data-bind="attr: { title: DisplayName, href: ProfileUrl }">
        <span><img data-bind="attr: { src: getProfilePicture(200,200), title: DisplayName }" /></span>
    </a>
    <ul class="MdMemberInfo">
        <li class="mdTitle"><span data-bind="text: Title"></span></li>
        <li><strong><span data-bind="text: CityText">:</strong> <span data-bind="text: City()"></li>
        <li class="mdLocation"><strong>Location</strong>:<span data-bind="text: ProfileProperties().Region"></span> <span data-bind="text: Location()"></span></li>
        <li class="mdPhone"><strong>Phone</strong>: <span data-bind="text: Phone"></span></p></li>
<br>
    
<br>
        <li ><p><span data-bind="html: ProfileProperties().Biography"></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>


 

 
New Post
11/18/2013 4:41 AM
 
You could use the report module for this and have a select statement something like this:
SELECT
Username,
FirstName,
LastName,
unit,
Street
FROM
Users
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN Member Directory Item TemplateDNN Member Directory Item 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