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

XF 2.0 Home Page with xenforo 2.0

#1
good morning, with xenforo 2.0 will there be a chance to create a home page where to highlight some discussions and media wordpress style?
Thank you
 

Mike

XenForo developer
Staff member
#2
There are some advanced behaviors you can do with widgets and a custom page node (set as the index route). However, to do things like picking the content to display, you may still need an add-on.
 
#3
There are some advanced behaviors you can do with widgets and a custom page node (set as the index route). However, to do things like picking the content to display, you may still need an add-on.
Are you already xen 2.0 add-ins to create your home?
 

AndyB

Well-known member
#4
There are some advanced behaviors you can do with widgets and a custom page node (set as the index route).

If we have the XenForo software in a folder called forums, like this:
Code:
https://www.domain.com/forums/

can we have the Home tab bring up a XenForo page with this URL?
Code:
https://www.domain.com/
 

AndyB

Well-known member
#6
No, URLs can only be within the location where you install XenForo. You would install XF into the root in this situation.
Too bad we can't do that as it would make organizing the server directories much better. Having a bunch of files in the web root is messy.

Isn't there any way to over come this issue in the future? Somehow expose the page outside the location where XenForo is installed.
 

Kirby

Well-known member
#7
You can cheat a bit ...

Assuming that the XF installation is in /forums, you are using Apache with full friendly URLs and your desired homepage has the url home, placing the following wrapper as index.php in / might work (for XF 1.5 and 2.0):

PHP:
$_SERVER['REQUEST_URI'] = '/forum/pages/home/';
$_SERVER['SCRIPT_NAME'] = '/forum/index.php';
$_SERVER['PHP_SELF'] = '/forum/index.php';
require('./forum/index.php');