Start a conversation

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.

 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments