title: Typo3 Fluid Templates - How to set up different templates for different pages
body: <p>I'm trying to build from scratch a website with typo3 9.5 and setting up different template files for different pages. How do I achieve this?</p>
  
  <p>I'm following the tutorial from <a href="https://docs.typo3.org/m/typo3/tutorial-sitepackage/master/en-us/TypoScriptConfiguration/Index.html" rel="nofollow noreferrer">https://docs.typo3.org/m/typo3/tutorial-sitepackage/master/en-us/TypoScriptConfiguration/Index.html</a> and also tried the solution with no success provided at <a href="https://stackoverflow.com/questions/52354030/typo3-fluid-templates-how-to-add-multiple-templates">Typo3 Fluid Templates How to add multiple templates</a></p>
  
  <p>Now all pages load the Default template and if I set the default cObject to Alternative, it loads the Alternative.html to all pages, even when the TCA at Typo3 is set correctly for each page:</p>
  
  <ul>
  <li>All Pages Back-end Layout to [Default]</li>
  <li>Contact set to [Alternative].</li>
  </ul>
  
  <p>_</p>
  
  <pre><code>page = PAGE
  page {
     typeNum = 0
  
     // Part 1: Fluid template section
     10 = FLUIDTEMPLATE
     10 {
        templateName = TEXT
        templateName.stdWrap.cObject = CASE
        templateName.stdWrap.cObject {
          key.data = pagelayout
  
          pagets__default = TEXT
          pagets__default.value = Default
  
          default = TEXT
          default.value = Default
  
          pagets__alternative = TEXT
          pagets__alternative.value = Alternative
  
          alternative = TEXT
          alternative.value = Alternative
  
        }
  
  
        templateRootPaths {
           0 = EXT:photo/Resources/Private/Templates/Page/
           1 = {$page.fluidtemplate.templateRootPath}
        }
        partialRootPaths {
           0 = EXT:photo/Resources/Private/Partials/Page/
           1 = {$page.fluidtemplate.partialRootPath}
        }
        layoutRootPaths {
           0 = EXT:photo/Resources/Private/Layouts/Page/
           1 = {$page.fluidtemplate.layoutRootPath}
        }
        dataProcessing {
        10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
        10 {
           levels = 1
           includeSpacer = 1
           as = mainnavigation
           }
        }
     }
  </code></pre>
  
  <p>I want to use for instance a default.html template for all pages except contact page, which will have it's own template ( site_template/Resources/Private/Templates/Page/Alternative.html ).</p>