Categories

Page as portal homepage

You are here:
< All Topics

With XF2 it’s really simple to add a Page as the homepage and populate it with widgets to create a “portal” page.

As a few people have asked how to do it I thought I’d post this quick guide.

Go to admin.php?nodes/ and click Add a Node

Select Page as the node type:

Screen Shot 2017-09-17 at 15.11.16.png

Set up the Page node and add any widgets you want to the template:

Screen Shot 2017-09-17 at 15.13.17.png

Navigation Section: Home (sets the page to the home tab).

I usedCode:

 <xf:h1 hidden="true" />

to hide the page node title on the page itself.

I also use this at the bottom of the template to hide the breadcrumb bar:

Code:

<xf:css>
.p-breadcrumbs {
display:none
}</xf:css>

Then it’s a simple case of adding widgets to the template.

Go to admin.php?widgets/ to see what widgets you have available:

Screen Shot 2017-09-17 at 15.17.43.png

Any of those can be added into the template (as shown above) using the widget key (which you can see above).

The final step is to go to admin.php?options/groups/basicBoard/ and set the Page created above as the homepage using the page url portion you set above.

Screen Shot 2017-09-17 at 15.19.42.png

That’s basically it. You can create extra widgets and add them to the homepage. I’m using https://xenforo.com/community/resources/dl6-widget-new-threads-with-prefix-limit.5587/ to display the contents of latest posts with our “Featured” prefix.

Table of Contents