• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

MG 2.0 How Insert specific template in xfmg_gallery_wrapper?

macroforum

Active member
#1
Hello,
i want insert template "xfmg_whats_new_media_comments" in template "xfmg_gallery_wrapper" because i don't like "new media comments" widget.
Now i customized template "xfmg_gallery_wrapper" adding two widget.
Clipboard01.jpg

How can i insert specific template in other template?
Thanks
Antonio
 
Last edited:

macroforum

Active member
#2
I added this code in xfmg_gallery_wrapper template:
<xf:include template="xfmg_whats_new_media_comments" />
but no new comments are displayed (I have one new comment)
 

Chris D

XenForo developer
Staff member
#3
You really just have to use the widget system for this, otherwise there's nothing to load the data that the template needs.

I'm not sure I totally follow your logic, however. You don't like the "New media comments" widget, but you're essentially trying to add that manually anyway.
 

macroforum

Active member
#4
You really just have to use the widget system for this, otherwise there's nothing to load the data that the template needs.

I'm not sure I totally follow your logic, however. You don't like the "New media comments" widget, but you're essentially trying to add that manually anyway.
The widget is ok for sidebar...but for my needs is not ok, not render image thumb... i want show new comments output template in gallery wrapper...
newcomments.jpg