Hello
I have used Bob Ray's Class Extender to extend modUser. I would like to incorporate data from the fields I have added into results from the Simple Search extra.
I have tried following the guide here:
https://rtfm.modx.com/extras/revo/simplesearch/simplesearch.simplesearch
But I am unable to specify the correct information in the place of the example below.
className:fieldName(s):packageName:packagePath:joinCriteria||class2Name:fieldName(s):package2Name:package2Path:join2Criteria
Class Extender is installed in its default location.
Custom (class extender) fields containing some data I want to search are:
profileOne
profileTwo
I have a (class extender) field that contains the resource number of the users profile. This is called:
userPageNumber
My Search is as follows
[[!SimpleSearch?
&toPlaceholder=`sisea.results`
&perPage=`10`
&customPackages=`ext_user_data:profileTwo:extendeduser:{core_path}components/classextender/model/:profileTwo.resource = userPageNumber`
]]
<h2>Search Results</h2>
[[+sisea.results]]
Unsurprisingly this does not work and results in an error log that reads
2016-02-12 18:41:37] (ERROR @ /index.php) Could not load class: ext_user_data from mysql.ext_user_data.
[2016-02-12 18:41:37] (ERROR @ /index.php) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'ext_user_data.profileTwo' in 'where clause'
)
If anyone is able to help I would be very grateful.
Andy