MG 2.0 How Insert specific template in xfmg_gallery_wrapper?

macroforum

Active member
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.webp

How can i insert specific template in other template?
Thanks
Antonio
 
Last edited:
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)
 
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.
 
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.webp
 
Back
Top Bottom