Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.18 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.18 KB

Description

Based on the core module directory

A simple phonebook with Ajax Search

I've developed it for my personal use.

First u have to change the fields displayed in the list -> u have to change it here:

$global_number = '+43xxx'; //change this to your needs
$label_field1 = 'Foto'; //change this to your needs
$label_field2 = 'Kürzel'; //change this to your needs
$label_field3 = 'Name'; //change this to your needs
$label_field4 = 'Festnetz'; //change this to your needs
$label_field5 = 'Handy'; //change this to your needs
$label_field6 = 'E-Mail'; //change this to your needs
$label_field7 = 'Position'; //change this to your needs
$label_field8 = 'Abteilung'; //change this to your needs

and here:

<?php $field1 = $user->getProfileImage()->getUrl(); ?>
<?php $field2 = Html::encode($user->profile->kuerzel); ?>
<?php $field3 = Html::encode($user->profile->lastname); ?>
<?php $field4 = Html::encode($user->profile->firstname); ?>
<?php $field5 = Html::encode($user->profile->festnetz); ?>
<?php $field6 = Html::encode($user->profile->handy); ?>
<?php $field7 = Html::encode($user->email); ?>
<?php $field8 = Html::encode($user->profile->title); ?>
<?php $field9 = UserGroupList::widget(['user' => $user]); ?>

The fields are located here: Administration -> Users -> Profiles -> select a Profile -> Internal Name

Screenshots:

https://github.com/bumrufus/humhub-modules-phonebook/blob/master/assets/screen1.jpg https://github.com/bumrufus/humhub-modules-phonebook/blob/master/assets/screen2.jpg

Sorry if it's not perfectly developed, but this is my first module :-)

TODOS:

  • cleanup the mess :-)
  • remove the css ans js from the view files
  • add translation
  • add sort by field option
  • load field titles directly from profile fields
  • add a admin settings page to allow users to change the displayed fields and to change the sort order and pagesize
  • add pagination option

Author: Samuel Havel @bumrufus