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

Legal footer & xenOptions

Discussion in 'XenForo Questions and Support' started by Ryan Kent, Mar 1, 2011.

  1. Ryan Kent

    Ryan Kent Well-Known Member

    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?

    <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>
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Remove the if statement and change the variable to a URL and it will work fine.

    For example:
    <li><a href="url_to_page">{xen:phrase legal}</a></li>
    Oracle likes this.
  3. Ryan Kent

    Ryan Kent Well-Known Member

    worked perfect! Thx as always Brogan. I'd hate to think of where we'd all be without you!

Share This Page