Staff

Staff

Readme

If you are interested to know how the staff-list on our site works, and/or want to use it yourself, you can read this information.

The script uses the Peoplepages-API to fetch a list of people from peoplepages. It can grab a full department, or a selection of it (see example for this research-group), and can also filter selections in various ways (eg. to not show PhD students, or show only PhD students).

  1. To use the script, create a rtd-document first (New Empty file, Rich text document) (it is also possible to use it in an HTML document, in that case you can skip the next step).
  2. Insert an RAW HTML code object into the document (click on the icon {..} )
  3. Insert the code below into the object:
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.6/handlebars.js"></script>
    <script id="peoplescript" src="https://www.utwente.nl/en/et/dpm/staff/people.js"></script>
    <link href="//fast.fonts.net/cssapi/17aa6b5c-3057-47ef-8a83-1783a2c28c80.css" rel="stylesheet"/>
    <link href="https://www.utwente.nl/en/et/dpm/staff/people.css" media="screen" rel="stylesheet"/>
    <script>
    organizationSel="ET-BW";
    phdfilter=false;
    </script>
    
  4. On the last lines starting with <script> you can change some variables. For instance, to select people from one or more organizations, you can use organizationSel. In the example above, people from ET-BW will be shown and the phd-filter will not be used (see result here).
    You may use a comma-separated list at organizationSel to select multiple organizations. For example, a selection for MS3 could look like:
    organizationSel="ET-OPMTR,ET-OPMPT,ET-ETE,ET-TM,ET-TMMVV";
    (see result here, this is a rather large selection, so phdfilter=true was set also).

More settings

The example below uses an other selection, which can be used to select a limited set of people from an organisation. In this example only one person is selected: (me).

peopleSel="Slooten,%20F.%20van";

This selection can also contain multiple persons, using a comma as a separator. To search for a full name which includes spaces, you must replace the spaces by %20. As this is not a very nice way to make selections, we hope to improve this in the future, by making selections based on tags.

The script has a lot more possibilities which are not documented yet, like changing the url (eg. if somebody has a personal webpage) or changing how things are displayed (using a different template).

More information

Contact me for more information. My details are: