Create an own Router for this.Minor suggestion for the first post. I believe the Add-on ID should be ExternalPages without a space between words.
I like the idea of having pages which are not tied to the Forum tab. Is there a way to not have /en/ or any prefix at all? If I create a page called Schedule I just want the URL to be mysite.com/schedule.
Then you'll able to have something like http://ragtek.org/xenforo/info/impressum / http://ragtek.org/xenforo/info/privacy
- Create a route at the following URL:
/admin.php?route-prefixes/
Route Prefix: en
Route Type: Public
Route Class: ExternalPages_Route_Prefix_En
Use Class to Build Link: Always
Add-On: External Pages
Yes you can change the url in the code (in a few places) as its not a big modMy forum is installed in the root directory. My site url is www.terapvp.com. My forum url is www.terapvp.com/forum
I want all the pages I create with this add-on to be referenced from my site's root. So a page named "Gallery" would have a URL of terapvp.com/gallery.
Is that possible?
Well he would get the idea on classes and that but aye that will doNo, that tutorial doesn't contain that.
I think this should be better http://xenforo.com/community/threads/guide-hello-world-plugin.5607/
I would like to add various pages to my XF site. The content on the pages will vary of course. They will contain HTML, JS, and include xen templates such as side bar blocks. It is my understanding that is what this add-on can do.Do you want a blank white page? Is that what you're trying to accomplish here?
I desire the pages to be located in the URL immediately after the root. www.mysite.com/hereSorry I still haven't had time to relook at the files. But I have an additional question, what do you mean by one level deeper?
Create a route at the following URL:
/admin.php?route-prefixes/
Route Prefix: en
Route Type: Public
Route Class: ExternalPages_Route_Prefix_En
Use Class to Build Link: Always
Add-On: External Pages
So you just want a blank page?No.
No prefix. That is the entire point.
The current URL to the pages are www.example.com/page1.html. I need THAT EXACT URL to be maintained with XF installed on the site, otherwise all the old links break.
I would like to "upgrade" the links to improve the appearance by removing the file extension, but that's it.
I have shared this exact information repeatedly, and explained in great detail. No prefix.
<?php
class Gallery_Route_Prefix implements XenForo_Route_Interface
{
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
{
return $router->getRouteMatch('Gallery_ControllerPublic', 'index', 'gallery/', $routePath);
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.