@Cbaone
Yes, it works with the version 1.8 with the parameter &tvphx.
If your search find the correct document with the linked TV "widget_name" :
- create your own tplResultAjax template (or tplResult for non ajax mode) by copying the default template you use
- allow the displaying of TV in your snippet call by:
and use the appropriate placeholder in your new result template:
[+as.widget_name+], [+as.widget_nameShow+], [+as.widget_nameClass+]
[+as.widget_nameName+] is the HTML output of your TV
[+as.widget_nameShow+] = 1 if the TV is not NULL
[+as.widget_nameClass+] :
- ajaxSearch_resultWidget_name for the non ajax results (&tplResult)
- AS_ajax_resultWidget_name for the ajax window (&tplAjaxResult)
(take care, the first letter of "widget_name" should be here an upper case)
displayTV is a provided ajaxSearch function which render the Modx TV output. Don’t change the name!
In your case the main problem is not to display the content of the TV "widget_name" but to filter documents that could contains for instance "cro" in other fields (pagetitle, description, ...).
Let me few days and I will propose you a hack or may be an evolution for AS.