CGUserDirectory - Directory summary includes too many

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
mecken
Forum Members
Forum Members
Posts: 10
Joined: Mon Mar 30, 2009 9:04 pm

CGUserDirectory - Directory summary includes too many

Post 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
mecken
Forum Members
Forum Members
Posts: 10
Joined: Mon Mar 30, 2009 9:04 pm

Re: CGUserDirectory - Directory summary includes too many

Post 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?
Last edited by Dr.CSS on Wed Jun 24, 2015 9:45 pm, edited 3 times in total.
Reason: No code hacks allowed to be posted
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: CGUserDirectory - Directory summary includes too many

Post by velden »

Consider testing (in the tag):

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

Parameter values aren't always implemented in a consistent way.
mecken
Forum Members
Forum Members
Posts: 10
Joined: Mon Mar 30, 2009 9:04 pm

Re: CGUserDirectory - Directory summary includes too many

Post 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...
Locked

Return to “Modules/Add-Ons”