Widget position above content

chojo

Customer
I try to put a widget above content and sidebar, right under the navigation bar, but I have no clue which position ID it is.

Anyone know?
 

Russ

Pixel Exit Staff
No spot for that. One easy method would be adding the widget key to a new ad spot (above top breadcrumb)

Code:
<xf:widget key="widget_key" />
 

chojo

Customer
No spot for that. One easy method would be adding the widget key to a new ad spot (above top breadcrumb)

Code:
<xf:widget key="widget_key" />
Do I need to create a template for that ad spot?

I did a quick template search and found nothing

1603506663804.png
 

Russ

Pixel Exit Staff
Sorry I wasn't clear. I meant go to Admin Panel -> setup advertising. Create an "ad" just with the widget key
 

chojo

Customer
Sorry I wasn't clear. I meant go to Admin Panel -> setup advertising. Create an "ad" just with the widget key
Well I used the Welcome Notice Banner to accomplish what I wanted and it worked. The ad method was more complicated.

I have another question regarding Widget location. I don't find how I can add a widget inside a specific node. I know I need to add a condition like the following $xf.reply.containerKey == 'node-7', but there no "discussion list" widget location?
 

Russ

Pixel Exit Staff
No spot for that, but it goes back to utilizing the ad space :D.


Screenshot_29.png


This code:

Code:
<xf:if is="$xf.reply.containerKey == 'node-7'">
    <xf:widget key="widget_key" />
</xf:if>

You grab the widget key from the widget page itself:
Screenshot_30.png
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.