XF 2.1 Correct variable to check data-container-key conditionally?

entelechy

Active member
I'm using <xf:if is="$template == 'page_view'"> currently, but I'd like to check against "data-container-key" instead.

I tried <xf:if is="$data-container-key == 'node-125'"> but that doesn't work.

What's the correct variable to add here in order to conditionally check against data-container-key?
 
This thread might help you. Not sure but it looks similar. Let me know if that's what your looking for:

 
Back
Top Bottom