Page 1 of 1

CGUserDirectory - Directory summary includes too many

Posted: Thu Jun 11, 2015 6:02 pm
by mecken
Hi,
Are on CMSMS 1.12 and the latest versions of CGUserDirectory and FEU.
Trying to use the directory using a property "full_name".

The alphabetic list seems to populate correctly on the first letter in the "full_name" property, BUT when I select one letter, the summary list received includes not only the records where the first letter match, but ALL records where the selected letter is included, ie it is using the "like" logic to include all records that contains the selected letter.

But I want only that the records should be selected where the FIRST letter matches the alphabetic list.
Have tried the uselike="0", parameter but that has no effect.

Here is my statement: {CGUserDirectory action="directory" group="Medlem" prop="full_name" uselike="0" sortby="username" sparse="1"}

Hope someone could direct me which parameter/setting to change so I receive results based on the FIRST letter only in the prop field.

Many thanks

Re: CGUserDirectory - Directory summary includes too many

Posted: Fri Jun 12, 2015 5:56 am
by mecken
Sinced I found no setting changed that worked, I tested by changing the code in ...modules/CGUserDirectory/action.directory.php

[REMOVED by moderator. We do not allow posting of code 'hacks']


This had a big impact on the result, it made no records at all populated on the appropriate directory letter (however the directory letter itself was presented).

So, this change was not good.

Anyone has a clue where to change?

Re: CGUserDirectory - Directory summary includes too many

Posted: Fri Jun 12, 2015 7:16 am
by velden
Consider testing (in the tag):

..uselike=0..
..uselike=false..
..uselike="false"..

Parameter values aren't always implemented in a consistent way.

Re: CGUserDirectory - Directory summary includes too many

Posted: Fri Jun 12, 2015 8:41 am
by mecken
Tested, but none gives the desired result. Seems like I am unable to change the parameter from the tag.

When hovering in the browser over a directory letter, the "uselike" statement is displayed as ...uselike=1
whatever I put in the tag. The only way to force a change to ...uselike=0 is to put uselike="0" in the code... but even then, the only result is that no records are selected...