==== &tvPhx : Set placeHolders for TV (template variables)
0 : disallow the feature
’tv:displayTV’ : set up placeholders for each TV (named tvName) linked to the documents found (default)
Placeholders for TVs are:
[+as.tvName+], [+as.tvNameShow+], [+as.tvNameClass+]
Where tvName is the MODx name of a TV
[+as.tvName+] is the HTML output of your TV
[+as.tvNameShow+] = 1 if the TV is not NULL
[+as.tvNameClass+] :
- ajaxSearch_resultTvName for the non ajax results (&tplResult)
- AS_ajax_resultTvName for the ajax window (&tplAjaxResult)
e.g: AS_ajax_resultAsTag1, a tv named "asTag1"
(take care, the first letter of tvName should be here an upper case)
displayTV is a provided ajaxSearch function which render the Modx TV output. Don’t change the name!
Other question: I want to search inside the TV ’Se-Description’. I looked at AjaxSearch Wiki documentation and In the Ajaxsearch snippet call I put parameter &whereseach=’content| tv:Se-Description’. But that throws an error... am I getting the syntax wrong?
displayTV is a provided ajaxSearch function which render the Modx TV output. Don’t change the name!Oops! That’s probably why I got an error yesterday...
&tvPhx=`tv:displayTV` see this demo page
==== &tvPhx : Set placeHolders for TV (template variables)
0 : disallow the feature
’tv:displayTV’ : set up placeholders for each TV (named tvName) linked to the documents found (default)
Placeholders for TVs are:
[+as.tvName+], [+as.tvNameShow+], [+as.tvNameClass+]
Where tvName is the MODx name of a TV
[+as.tvName+] is the HTML output of your TV
[+as.tvNameShow+] = 1 if the TV is not NULL
[+as.tvNameClass+] :
- ajaxSearch_resultTvName for the non ajax results (&tplResult)
- AS_ajax_resultTvName for the ajax window (&tplAjaxResult)
e.g: AS_ajax_resultAsTag1, a tv named "asTag1"
(take care, the first letter of tvName should be here an upper case)
displayTV is a provided ajaxSearch function which render the Modx TV output. Don’t change the name!