Quote from: exside at Apr 20, 2013, 05:17 PMIs it possible to display TV values in a renderChunk? I have setup based on the childresources tutorial and I would like to show a cross/tick if a TV field is empty of not, tried to add chunk renderer as follows:
[[+content-link:isnot=``:then=`
<img title="verlinkt" alt="" src="/assets/components/migx/style/images/tick.png">
`:else=`
<img title="nicht verlinkt" alt="" src="/assets/components/migx/style/images/cross.png">
`]]
while content-img is the TV, this always shows the cross, so I just tried the naked [[+content-link]] placeholder, but it doesn't output anything, also tried [[+tv.content-link]] and [[+tv_content-link]], but no success =)...so is this possible at all? If I edit the childresources via the migxdb grid, the link has some text in it...
stuck on the same thing...
I'm also working on the base of the childresources tutorial.
Now i have a migx-grid with list of resources and the ids are displayed.
I tried renderChunk to display the pagetitle instead, but I can't get it to work.
The grid doesn't save any values anymore, the db says just
[].
But rhe same renderer, with the same chunk is working fine on another (but nested) grid. May this be the problem? Does this only work on nested grids?
Chunk "makePagetitle":
[[!getResourceField? &id=`[[+resource]]` &field=`pagetitle`]]
Migx--column-config:
[{"MIGX_id":"1","header":"Artikel","dataIndex":"resource","width":"","sortable":"false","show_in_grid":"1","renderer":"this.renderChunk","clickaction":"","selectorconfig":"","renderoptions":"[{\"MIGX_id\":\"1\",\"name\":\"makePagetitle\",\"value\":\"articleId\",\"clickaction\":\"\",\"handler\":\"\",\"image\":\"\"}]"}]
any idea?
thanks,
janein