Rules page as a Page rather than a phrase?

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?
 

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

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?
 

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?
 

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}
 
F

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 ..
 
Top