Set up sitemap XML

In order to make your booking objects available in a sitemap.xml, carry out the following steps:

  1. Install EXT: seo (if you haven't already done so) and add the static TypoScript template XML Sitemap to your root template.
  2. Configure the route enhancer for the sitemap.xml URL extension:
    RouteEnhancers:
      PageTypeSuffix:
        map:
          sitemap.xml: 1533906435
  3. Apply the static TypoScript template Bookings - Sitemap.xml configuration to your root template.
  4. Make sure that the {$themes.configuration.pages.bookings.details}TypoScript constant is set and pointing to your details page.
  5. Make sure that the {$themes.configuration.container.bookings}TypoScript constant is set and points to your data container.
  6. Configure robots.txt via your site configuration. A simple configuration looks as follows:
    User-agent: *
    Disallow: /typo3/
    Disallow: /typo3_src/
    Allow: /typo3/sysext/frontend/Resources/Public/*

    In your site configuration

    routes:
      -
        route: robots.txt
        type: staticText
        content: "User-agent: *\r\nDisallow: /typo3/\r\nDisallow: /typo3_src/\r\nAllow: /typo3/sysext/frontend/Resources/Public/*\r\n"
  7. At the bottom of this file add the Bookings Sitemap.xml with the following line: Sitemap: https: //bookings.typo3-demos.de/sitemap.xml? Sitemap = bookings
  8. All done: your sitemap.xml with booking objects should be available at https://bookings.typo3-demos.de/sitemap.xml?sitemap=bookings.