Page 1 of 1

CG UserDirectory problem with uselike="1"

Posted: Thu Nov 04, 2010 11:08 am
by heffegg
Hi,
Can anyone help or have I found a bug?
If I put the following command in a page it works fine:

Code: Select all

{CGUserDirectory group="Producers" summarytemplate="Summary_Farm_Gate" prop="availability" propval="Farm Gate"}
BUT... Farm Gate is in a multiple select list so only Producers with a single selection "Farm Gate" are returned (approx 8 from 21 known entries)

When I change the code to:

Code: Select all

{CGUserDirectory group="Producers" summarytemplate="Summary_Farm_Gate" prop="availability" uselike="1" propval="Farm Gate%"}
A summary of all 21 users are found but the link to an individual producer's details no longer works.
I receive the following error:
Error 406 Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
An example of the URL created for the "detail" link is:

index.php?mact=CGUserDirectory,cntnt01,detail,0&cntnt01group=Producers&cntnt01summarytemplate=Summary_Farm_Gate&cntnt01prop=availability&cntnt01uselike=1&cntnt01propval=Farm Gate%25&cntnt01uid=58&cntnt01returnid=109

The URL is created by the following code in the summary template:

Code: Select all

<a href="{$oneuser.detail_url}" title="{$onepropvalue}">{$onepropvalue}</a>
Something is very wrong here.

CMSMS 1.8.1
FEU  1.10.1
CG UserDirectory 1.2.4

Any help or advice would be very much appreciated.

Re: CG UserDirectory problem with uselike="1"

Posted: Wed Nov 10, 2010 10:21 pm
by heffegg
Bump... anyone have an idea how to fix the URL being created when uselike is in use?

Re: CG UserDirectory problem with uselike="1"

Posted: Mon Nov 15, 2010 3:38 am
by heffegg
Can anyone show me an example of uselike="1" actually working?  My experiments work for returning data but fail on the link for more details every time.