XF 2.2 XFMG Widget placed into forum_view_type_article page help please.

oO5 Dynasty

Well-known member
Code:
data-template="forum_view_type_article"
Code:
data-container-key="node-14"
Hey, So I started messing around with Article pages, and I wanted to add an XFMG Slider widget to the article page.
There is no option for this specific type of forum. So was just wondering how could this be achieved.

I was thinking of a slider at the top and a slider in the sidebar.
Web capture_15-12-2021_12150_user.oo5dynasty.com.webp

1639588647940.webp



Side note: This is new territory for me cause I'm used to there being an option for widgets. So please don't yell at me for not knowing this lol.
Baby Reaction GIF
:ROFLMAO:
 
Man, you are amazing.
1639590970505.webp
I do have another question.
Are we suppose to place the code
Code:
<xf:widget key="widget_key" />
in a specific place inside the template.
I just put it where I thought it should go, but then made sure to Relocate slider
Code:
.p-body-main
Code:
1639591208992.webp

Just want to make sure I am correctly editing these templates the right way.
Trying to not make mistakes, and cause errors.
 
Widgets can be added to templates manually using: <xf:widget key="widget_key" /> .

In general, yes.

It may require conditional statements if you only want it show based on certain crieria, and Less/HTML to modify the styling, etc.
I have a lot to learn lol.
My biggest problem is not understanding what the string of code is saying, and what it is actually doing.
Not anybody's fault but mine, and I'm a study up on this stuff. But again you are amazing...
Pretty sure ill need more help before the weeks out.
 
Top Bottom