Zum Inhalt springen

Neos page layout hinzufügen problem

Erstellt am 10. Januar 2014 · 2 Antworten · letzte Antwort am 20. Mai 2014

Tags: Frage

zabinetta ·

Hallo,
ich mach erste Versuche mit Neos; Hab das Demopackage genommen und will noch ein Alternativlayout hinzufügen, aber es taucht nicht auf in der Selectbox zum Zuweisen.
ich hab mich an diese Anleitung gehalten:
http://docs.typo3.org/neos/TYPO3NeosDocumentation/IntegratorsCookbook/SelectingPageTemplate.html

Packages/Sites/TYPO3.NeosDemoTypo3Org/Configuration/NodeTypes.yaml

'TYPO3.Neos.NodeTypes:Page':
  childNodes:
    'teaser':
      type: 'TYPO3.Neos:ContentCollection'
  properties:
    'layout':
      ui:
        inspector:
          editorOptions:
            values:
              'default':
                label: 'Default'
              'landingPage':
                label: 'Landing page'
              'sabinePage':
                label: 'Sabine test page'

Packages/Sites/TYPO3.NeosDemoTypo3Org/Private/Typoscripts/Library/Roots.ts2

//...
default < page

// Special page layout with less navigation components
landingPage < page
landingPage.body {
	// Hide breadcrumb on landing pages
	parts.breadcrumb >
	landingPage = ${true}
}

// Special page layout with less navigation components
sabinePage < page
sabinePage.body {
	// Hide breadcrumb on landing pages
	parts.breadcrumb >
}
//...

und als nix passiert ist hab ich auch schon das cache gelöscht:
./flow flow:cache:flush
und zur sicherheit noch
FLOW_CONTEXT=Production ./flow flow:cache:flush

Immer noch nichts.
Weiter unten in der Doku steht noch was von

The implementation internal of the layout rendering can be found in the file:

TYPO3.Neos/Resources/Private/TypoScript/DefaultTypoScript.ts2

The element root.layout is the one responsible for handling the layout. So when trying to change the layout handling this is the TypoScript object to manipulate.

aber ich kann die datei nirgends entdecken.

könnte jemand mir bitte kurz nen Tipp geben?

Unbekannter Benutzer ·

Hallo,

sieht soweit auf den ersten Blick gut aus.
Bist Du sicher, dass Du nur spaces verwendest und die Einrückung auch stimmt?

Wenn es im Backend nicht auftaucht ist es erstmal ein Problem im YAML.
Wäre natürlich auch noch wichtig ob du es auf einer Seite geguckt hast, die auch vom Typ "TYPO3.Neos.NodeTypes😛age" ist.

sasdts ·

Ich schäme mich für mein Deutsch, aber...

Ich hatte die gleiche problem und müsste ProductionConfigurations.php (\Data\Temporary\Production\Configuration\) und die cache löschen