cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Users search

luxman99
Champ in-the-making
Champ in-the-making
I want to customize the users search ( particularly when assigning a user in a workflow ) to let the user serach by groups. First, he selects the group, after that, he chooses a user which belongs to the group selected.
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
Check this component u need to customize this one

C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\people-finder

luxman99
Champ in-the-making
Champ in-the-making
And what is the best way to customize it. I am a beginner Alfresco developer and i've found in this folder too many files.

zladuric
Champ on-the-rise
Champ on-the-rise
Hi,

This is a process of several steps. You can start by augmenting the markup, ie. add an input element and a label to search for groups. It's done in the *ftl file.
Then you can alter the behavior of client-side javascript, which will:
- hide the person finder and unhide the group finder input element
- when user searches for a group, do a call to backend, it is similar to the people search, just slightly different param. Check this in group-finder.js file.
- when you get back this group and select it, do another ajax call to backend to get all people in this group, and put these as a data source for input element, and unhide the people search element now.

This would be done in client side component, somewhere in /share/components/people-finder/people-finder.js

Try looking at those files and ask for help once you figure out your next question.

luxman99
Champ in-the-making
Champ in-the-making
Thank you. I will try to follow these steps.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.