Customizing the Member Directory module with custom fields

Overview

This article provides instructions to add custom fields to the Member Directory Module.

 

Prerequisites

  • DNN Evoq Engage 9+

 

Solution

In this example, the module will have added a field for the user's place. Follow these instructions to implement this change:

  1. Load the Member Directory Module that you want to update.
  2. Replace the code line highlighted in bold below, in the relevant Templates that are in use.
    <li class="mdTitle"><p><span data-bind="text: Title"></span></p></li>
    <li class="mdLocation"><p><span data-bind="text: Location()"></span></p></li>
    <li class="mdLocation"><p><span data-bind="text: Phone"></span></p></li>
    <li class="mdLocation"><p><span data-bind="text: Place"></span></p></li>

    With this code: 

    <li class="mdLocation"><p><span data-bind="text: $rawData.ProfileProperties().Place"></span></p></li>
  3. Click the Update button to save the changes.

Testing 

The template should now include more information from the member in the module.

 

Comments

0 comments

Please sign in to leave a comment.