It does appear that the outer Tpl is very limited in what it can process.
You can get around this by using showStart and a startItemTpl instead.
Unfortunately this doesn't work for the top-level resources, which makes sense as there wouldn't be anything to show as a "parent" for top-level items.
Perhaps you could use a getResourceField snippet there instead?
alias : [[!getResourceField? &id=`[[*id]]` &field=`alias`]] - display_style : [[!getResourceField? &id=`[[*id]]` &includeTVs=`1` &processTVs=`1` &field=`display_style`]]- [[+wf.wrapper]]
This sort of worked; I get a value of "Array" for the display_style TV field, and since the MODx documentation site is throwing "502 bad gateway" errors at the moment I can't do any further research on the problem. But at least it's getting close
Ahah! Finally got into the documentation (
http://rtfm.modx.com/display/ADDON/getResourceField ) and discovered the correct syntax for getting a TV field's value:
alias : [[!getResourceField? &id=`[[*id]]` &field=`alias`]] - display_style : [[!getResourceField? &id=`[[*id]]` &isTV=`1` &field=`display_style`]]- [[+wf.wrapper]]
[ed. note: sottwell last edited this post 11 years, 8 months ago.]
-
- 18 Posts
Hi Susan Thanks a lot
[ed. note: tulavu last edited this post 11 years, 8 months ago.]