Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Satrabel.DnnUsers data source Order of Users #230

Open
Timo-Breumelhof opened this issue Feb 12, 2024 · 1 comment
Open

Satrabel.DnnUsers data source Order of Users #230

Timo-Breumelhof opened this issue Feb 12, 2024 · 1 comment
Assignees

Comments

@Timo-Breumelhof
Copy link
Collaborator

The Datasource currently returns the users in order of UserName,

It would be nice if we could somehow change that to LastName or another field to order the users

@sachatrauwaen
Copy link
Owner

sachatrauwaen commented May 2, 2024

if you use clientside jplist then use this

<!-- sort dropdown -->
 <div class="dropdown"
      data-control-type="boot-sort-drop-down"
      data-control-name="bootstrap-sort-dropdown-demo"
      data-control-action="sort"
      data-datetime-format="{month}/{day}/{year}">
     <!-- {year}, {month}, {day}, {hour}, {min}, {sec} -->

     <button class="btn btn-default dropdown-toggle"
             type="button"
             id="dropdown-menu-1"
             data-toggle="dropdown"
             aria-expanded="true">
         <span data-type="selected-text">Sort by</span>
         <span class="caret"></span>
     </button>

     <ul class="dropdown-menu" role="menu" aria-labelledby="dropdown-menu-1">

         <li role="presentation">
             <a role="menuitem" tabindex="-1" href="#" data-path=".user-name" data-order="asc" data-type="text" data-default="true">Username A-Z</a>
         </li>

         <li role="presentation">
             <a role="menuitem" tabindex="-1" href="#" data-path=".user-name" data-order="desc" data-type="text">Username Z-A</a>
         </li>

         <li role="presentation" class="divider"></li>

         <li role="presentation">
             <a role="menuitem" tabindex="-1" href="#" data-path=".user-email" data-order="asc" data-type="text">Email A-Z</a>
         </li>

         <li role="presentation">
             <a role="menuitem" tabindex="-1" href="#" data-path=".user-email" data-order="desc" data-type="text">Email Z-A</a>
         </li>

        

     </ul>

 </div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants