• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Legal footer & xenOptions

Ryan Kent

Well-known member
#1
I would like to add a "Legal" next to "Terms and Rules". I've successfully added Privacy Policy in the past but it seems XF had xen.Options already set up for that particular footer link. I tried adding the same style of code for "legal" but it isn't working.

Where can I view/add xenOptions.legal to make this code work?


Code:
<ul class="footerLinks">
            <xen:hook name="footer_links">
                <xen:hook name="footer_links_legal">
                    <xen:if is="{$xenOptions.legalUrl}"><li><a href="{$xenOptions.legal}">{xen:phrase legal}</a></li></xen:if>
                    <xen:if is="{$tosUrl}"><li><a href="{$tosUrl}">{xen:phrase terms_and_rules}</a></li></xen:if>
                    <xen:if is="{$xenOptions.privacyPolicyUrl}"><li><a href="{$xenOptions.privacyPolicyUrl}">{xen:phrase privacy_policy}</a></li></xen:if>
 

Brogan

XenForo moderator
Staff member
#2
Remove the if statement and change the variable to a URL and it will work fine.

For example:
Code:
<li><a href="url_to_page">{xen:phrase legal}</a></li>