solved Image in Item List

elric
@elric
5 years ago
81 posts
Hello, I'm trying to add an image to the item list for Group Discussions. I've added the Image uploader in the Create/Update Discussion Forms. It is field "discuss_image"

I'm trying to add it into the template for discussion "item_list.tpl"

Here is the template code I'm trying:
{jrCore_module_function function="jrImage_display" module="jrGroupDiscuss" type="user_image" item_id=$item._discuss_image size="icon96" crop="auto" width=350 height=false _v=$item._updated}

Getting this error after cache reset and refreshing the page:
"jrImage_display: image item_id parameter required"

I'm sure it's sleep deprivation and missing simple parameter...

updated by @elric: 10/17/19 10:02:53AM
michael
@michael
5 years ago
7,714 posts
usually only _user and _profile start with an _. Try removing it.

--edit --
or try $item._item_id
what.jpg
what.jpg  •  168KB


updated by @michael: 04/24/19 06:40:40PM
paul
@paul
5 years ago
4,326 posts
Try this -

{jrCore_module_function function="jrImage_display" module="jrGroupDiscuss" type="discuss_image" item_id=$item._item_id size="icon96" crop="auto" width=350 height=false _v=$item._updated}



--
Paul Asher - JR Developer and System Import Specialist

Tags