XF 2.1 Create Custom page - need pointing in right direction

Robert

Active member
Ok so I created a page in the node tree. I don't have any call backs.

I want to add html example with similar structure to the page.

<html>
<head>
Meta Data
my Css Files
my Java Files
</head>
<body>

the guts of my project.

</body>
</html>

But have it wrapped in the xenforo style, but have the data pull from a root/mydomain.com/path/to above js, css, etc.

Whats the best way to go about doing this so it looks nice in Xenforo as a custom page?
 
Put everything within the <body> in the node html. Do not include the <body> tags. For CSS, just add your css to extra.less and you should be good to go. For JS, add <xf:js src="your/js/file.js" /> inside your node html. You will need to upload your .js file to your js folder.
 
That is the easiest way. You can also create new templates for the css and include them individually on the node template, assuming it is only that page that needs that specific CSS.
 
Back
Top Bottom