\RobotsTxtController
Controller for displaying a robots.txt file for each subsite.
<code>
http://site.com/robots.txt
</code>
Original inspiration from `silverstripe-multisites`
Synopsis
class RobotsTxtController
extends Controller
{
- // members
- private static array $allowed_actions = ;
- protected string $template = 'RobotsTxt';
- // methods
- public text index()
- public ArrayList getDisallowedFolderList()
- public array getFoldersFromOtherSubsites()
- public ArrayList getReducedFolderList()
- public string getTemplate()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions — array
protected
- $template — string
Methods
public
- getDisallowedFolderList() — Get list of disallowed folder for this subsite
- getFoldersFromOtherSubsites() — Get folders from other subsites
- getReducedFolderList() — Get list of folders reduced to common paths
- getTemplate() — Get template name
- index() — Get customised robots.txt