CG UserDirectory problem with uselike="1"

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
heffegg
Forum Members
Forum Members
Posts: 43
Joined: Sat Mar 08, 2008 2:10 am

CG UserDirectory problem with uselike="1"

Post 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.
heffegg
Forum Members
Forum Members
Posts: 43
Joined: Sat Mar 08, 2008 2:10 am

Re: CG UserDirectory problem with uselike="1"

Post by heffegg »

Bump... anyone have an idea how to fix the URL being created when uselike is in use?
Last edited by heffegg on Mon Nov 15, 2010 3:36 am, edited 1 time in total.
heffegg
Forum Members
Forum Members
Posts: 43
Joined: Sat Mar 08, 2008 2:10 am

Re: CG UserDirectory problem with uselike="1"

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

Return to “Modules/Add-Ons”