Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MODX MIGX CMP for News filtering by TV
{
"formtabs":"",
"contextmenus":"",
"actionbuttons":"",
"columnbuttons":"",
"filters":[
{
"MIGX_id":1,
"name":"categorie",
"label":"Kategorie",
"emptytext":"Kategorie",
"type":"combobox",
"getlistwhere":"CONCAT('||', value, '||') LIKE '%||[[+categorie]]||%'",
"getcomboprocessor":"getTVcombo",
"combotextfield":"tag",
"comboidfield":"",
"combowhere":"",
"comboclassname":"",
"combopackagename":"",
"combo_use_custom_prefix":"0",
"comboprefix":"",
"combojoins":"",
"comboparent":"",
"default":""
},
{
"MIGX_id":2,
"name":"search",
"label":"Suche",
"emptytext":"Suche",
"type":"textbox",
"getlistwhere":"Resource.pagetitle LIKE '%[[+search]]%'",
"getcomboprocessor":"",
"combotextfield":"",
"comboidfield":"",
"combowhere":"",
"comboclassname":"",
"combopackagename":"",
"combo_use_custom_prefix":"0",
"comboprefix":"",
"combojoins":"",
"comboparent":"",
"default":""
}
],
"extended":{
"migx_add":"",
"disable_add_item":"",
"add_items_directly":"",
"formcaption":"",
"update_win_title":"",
"win_id":"news",
"maxRecords":"",
"addNewItemAt":"bottom",
"media_source_id":"",
"multiple_formtabs":"",
"multiple_formtabs_label":"",
"multiple_formtabs_field":"",
"multiple_formtabs_optionstext":"",
"multiple_formtabs_optionsvalue":"",
"actionbuttonsperrow":4,
"winbuttonslist":"",
"extrahandlers":"",
"filtersperrow":4,
"packageName":"modx",
"classname":"modTemplateVarResource",
"task":"",
"getlistsort":"Resource_id",
"getlistsortdir":"DESC",
"sortconfig":"",
"gridpagesize":"",
"use_custom_prefix":"0",
"prefix":"",
"grid":"",
"gridload_mode":1,
"check_resid":1,
"check_resid_TV":"",
"join_alias":"",
"has_jointable":"no",
"getlistwhere":[
{
"Resource.parent":69
},
{
"tmplvarid":10
}
],
"joins":[
{
"alias":"Resource"
}
],
"hooksnippets":"",
"cmpmaincaption":"Neuigkeiten",
"cmptabcaption":"\u00dcbersicht",
"cmptabdescription":"Neuigkeiten erstellen und bearbeiten.",
"cmptabcontroller":"",
"winbuttons":"",
"onsubmitsuccess":"",
"submitparams":""
},
"columns":[
{
"MIGX_id":13,
"header":"Kategorie",
"dataIndex":"value",
"width":150,
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"this.renderChunk",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"<span style=\"color:white;padding:2px 5px;background-color:#3697cd;border-radius:3px;\">\n [[+value:pdofield=`{\"class\":\"kitzscherNewsTags\",\"field\":\"name\"}`]]\n<\/span>",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":4,
"header":"Titel",
"dataIndex":"Resource_pagetitle",
"width":700,
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"this.renderChunk",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"[[+Resource_publishedon:date=`%a, %d. %b %Y`]]<br>\n<a href=\"\/pflege\/?a=resource\/update&id=[[+Resource_id]]\">\n <h3 style=\"margin:0\">[[+Resource_pagetitle]]<\/h3> [[+Resource_published:is=`1`:then=``:else=`(unver\u00f6ffentlicht)]]\n<\/a>",
"renderoptions":"",
"editor":""
}
],
"category":""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment