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

Rules page as a Page rather than a phrase?

Discussion in 'XenForo Questions and Support' started by RobParker, Jul 4, 2011.

  1. RobParker

    RobParker Well-Known Member

    As far as I can tell, the current Rules are simply a phrase you can edit in the ACP.

    I'd like to create a rules Page but then it wouldn't show up when registering would it? Is there anyway around this?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    When you create a Page, a corresponding template is created.

    So you could just include it in the register template using <xen:include template="_page_node.25" />
     
    RobParker likes this.
  3. RobParker

    RobParker Well-Known Member

    Ah cool, would that also work if I changed the rules phrase to <xen:include template="_page_node.25" /> or can you not include code within phrases like that?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    That won't work in a phrase.
     
  5. RobParker

    RobParker Well-Known Member

    But as the rules are a template themselves, can you remove the "terms_rules_text" phrase from the help_terms template and replace it with the template include you suggested.

    Code:
    <xen:title>{xen:phrase terms_of_service_and_rules}</xen:title>
    
    <div class="baseHtml">
    
    <xen:include template="_page_node.63"/>
    
    </div>
    That seems to work but any idea if it'll cause problems anywhere?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    You can do that.

    But why not just edit the phrase then?
     
  7. RobParker

    RobParker Well-Known Member

    Because I wanted it in the node tree which it wouldn't be then would it?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    So why not edit the phrase and just include that in the page node?

    Code:
    {xen:phrase terms_rules_text}
     
    RobParker likes this.
  9. RobParker

    RobParker Well-Known Member

    Didn't realise that'd work :)
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Page nodes support CSS, HTML and XenForo syntax :)
     
  11. Floris

    Floris Guest

    You can make a static rules.html, or a directory or a remote web site, or a thread, or a node: page, etc ..

    in the admin.php > options > you can SET where the rules point to, and it adapts to registration page, and the footer ..
     

Share This Page