A Andy R Member Oct 9, 2025 #1 Is there any conditional in a template that can be used to detect if the user is on the contact page or registration page?
Is there any conditional in a template that can be used to detect if the user is on the contact page or registration page?
philmckrackon Well-known member Oct 9, 2025 #2 Adjust as necessary. Code: <xf:if is="$template == 'template name"> Show content... </xf:if Great XF conditional page. https://xenforo.com/community/resources/conditional-statements-for-xenforo-2.5795/ Upvote 0 Downvote
Adjust as necessary. Code: <xf:if is="$template == 'template name"> Show content... </xf:if Great XF conditional page. https://xenforo.com/community/resources/conditional-statements-for-xenforo-2.5795/
AndyB Well-known member Oct 10, 2025 #3 Also if you want to know the template name for the page you are on, look at the HTML source, it will say right up top: Upvote 0 Downvote
Also if you want to know the template name for the page you are on, look at the HTML source, it will say right up top: