Wilr\GoogleSitemaps\Control\GoogleSitemapController
Controller for displaying the sitemap.xml. The module displays an index sitemap at the sitemap.xml level, then outputs the individual objects at a second level.
<code>
http://site.com/sitemap.xml/
http://site.com/sitemap.xml/sitemap/$ClassName-$Page.xml
</code>
Synopsis
class GoogleSitemapController
extends Controller
{
- // members
- private static array $allowed_actions = ;
- // methods
- public mixed index()
- public mixed sitemap()
- protected string unsanitiseClassName()
- public DBHTMLText styleSheetIndex()
- public DBHTMLText styleSheet()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $allowed_actions — array
Methods
protected
- unsanitiseClassName() — Unsanitise a namespaced class' name from a URL param
public
- index() — Default controller action for the sitemap.xml file. Renders a index file containing a list of links to sub sitemaps containing the data.
- sitemap() — Specific controller action for displaying a particular list of links for a class
- styleSheet() — Render the stylesheet for the sitemap
- styleSheetIndex() — Render the stylesheet for the sitemap index