• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
How to create a Page node

How to create a Page node

Add basic HTML pages to your installation.

Brogan

XenForo moderator
Staff member
#1
Brogan submitted a new resource:

How to create a Page node (version 1.0) - Add basic HTML pages to your installation.

To create a new page go to ACP -> Applications -> Create New Page

Select the various tabs and configure the fields.
  • Enter a URL (e.g. example-page) – this will be the URL of the page, for example: https://xenforo.com/community/pages/example-page/
  • Enter the title, e.g. Welcome To My Forum
  • Enter a description – this is optional and will appear as muted text below the title (see the screenshots below)
  • Select the Parent Node – this can be the root, a category, forum or...
Read more about this resource...
 

GofD

Well-known member
#3
I think this is pretty straightforward! Thanks for putting it together, Brogan. :D

Any other tips and tricks on putting together pages?
 

gldtn

Well-known member
#4
Brogan, would you happen to know of any guides on how to pull the rss feeds per forum into these pages? This would be great to build my own home page
 

Brogan

XenForo moderator
Staff member
#7
They support HTML and PHP.

I've got pages on my site using JavaScript and some of Google's API's.
I've seen others on here who have developed mini PHP applications.
 

gordy

Well-known member
#8
They support HTML and PHP.

I've got pages on my site using JavaScript and some of Google's API's.
So it's plausible they can be used as static or dynamic pages non-forum pages that match the look and feel of one's forum theme/skin? Can they exist outside of the forum root dir ?
 
#10
So it's plausible they can be used as static or dynamic pages non-forum pages that match the look and feel of one's forum theme/skin? Can they exist outside of the forum root dir ?
yes, no
examples:
http://www.fps.net.nz/community/pages/servers/
uses some custom written php to query tf2 server and return an array per server. I then have a custom template which does all the display. Uses PageCallBack

http://www.fps.net.nz/community/pages/Home/
does some custom php to get steam stats. Does some custom php to get the latest post from a forum section (latest give away), does some custom php to query a forum and get a list of threads (previous give aways). Uses PageCallBack

http://www.fps.net.nz/community/pages/thanks-for-donating/
boring old html typed into a box

No they cannot exist outside of the forum structure.
For my home page I have a customer php page that simply redirects to correct url
 

erich37

Well-known member
#16
Enter your markup (HTML/CSS code) in the Template HTML field
- is there an example of how the html would look like ?
- how to get the "Sidebar" into a page?

the strange thing with "Pages" is, that the navigation-Tab "Forums" is still showing as active.
This looks a bit confusing as when looking at the page, I am actually not in the Forum.
 

Brogan

XenForo moderator
Staff member
#17
- is there an example of how the html would look like ?
- how to get the "Sidebar" into a page?
Every page is different.
You enter the html you want for your page.

the strange thing with "Pages" is, that the navigation-Tab "Forums" is still showing as active.
This looks a bit confusing as when looking at the page, I am actually not in the Forum.
This is the designed behaviour.
 

erich37

Well-known member
#18
I know that every page is different, which is the reason I was asking for an example.

Anyway, the designed structure of having the Forum-Tab active at a "Page" does not look very professional IMHO.
It would be better if there would be a Main-Tab named "Pages" or something like that.