Hi,
MigX is really great to use, but I am having a little problem. I am using this call to getImageList:
[[!getImageList?
&tvname=`curriculos`
&tpl=`curriculosTpl`
&sort`{"sortby":"nome","sortdir":"ASC"}`
&where=`{"especialidade:=":"Psiquiatria"}`
]]
Everything is working fine, the filter is selecting, but I can't make the "sort" do it's job. What is wrong? Any idea?
Here is my configuration: I am using Modx 2.2.4 and MIGX 2.1.1 and
[{
"caption":"Curriculos",
"fields": [{
"field":"especialidade",
"caption":"Especialidade",
"inputTV":"fotosCV"
},{
"field":"nome",
"caption":"Nome"
},{
"field":"titulo",
"caption":"Título"
},{
"field":"texto",
"caption":"Texto",
"inputTV":"CVtexto"
},{
"field":"image",
"caption":"Foto",
"inputTV":"imageTV"
}]
}]
and
[
{"header": "Esp.", "width": "150", "sortable": "true", "dataIndex": "especialidade"},
{"header": "Nome", "width": "150", "sortable": "true", "dataIndex": "nome"},
{"header": "Titulo", "width": "100", "sortable": "true", "dataIndex": "titulo"},
{"header": "Foto", "width": "70", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
]
and
<li>
<h3>[[+nome]] - [[+titulo]]</h3>
<img src="imagens/[[+image]]" alt="[[+nome]]">
[[+texto]]
</li>
Thanks in advance.
[ed. note: sgobin last edited this post 11 years, 10 months ago.]