Quote from: sottwell at Apr 11, 2008, 07:56 AM
Can you share?
hi susan, as you asked so nicely ... see attached for the snippet
on this particular site the staff profiles are displayed in various ways:
- department drop down in the footer
- free name search in the footer
- first char of lastname
- each "service area" under "meet the team"
the profiles are held in modx as documents with several TVs to indicate primary & secondary departments, whether person is a partner or an "practice area leader", among other custom fields.
my snippet "doPeopleSearch" takes the inputs from all the different areas, and basically formats a ditto call.
i customised ditto in order to allow case-insensitive filtering for the free name search and also to allow searching by the first char of a staff member’s last name (pagetitle field used as "lastname, firstname"). i also changed the Ditto functionality to allow the altTemplate to be used at a specified interval rather than every other iteration, so my profile thumbnails wrapped nicely at 3 or 4 to a row depending on the page displaying them.
the custom ditto filtering is documented here (although this is now included in Ditto 2.1)
http://modxcms.com/forums/index.php/topic,18865.msg117966.html#msg117966
the custom altTemplate interval functionality is documented here:
http://modxcms.com/forums/index.php/topic,19510.msg121280.html#msg121280
i hope this all makes sense and i include my snippet as it appears on the live site (i haven’t removed or changed anything)
also attached is my snippet for showing the A-Z list but only making a link out of the letters that have profiles.